VirtualBox is required for certain nodes in this project, especially for MS Windows nodes where LXD is not an option. You can install it on Ubuntu with the following commands:
sudo apt-get install virtualbox virtualbox-guest-utils virtualbox-guest-x11
Allowing Any IP Addresses
To enable VMs to use network ranges other than
192.168.56.0/21, create a file
sudo mkdir /etc/vbox
sudo nano /etc/vbox/networks.conf
Add the following line. For more details, refer to the 6.7. Host-Only Networking .
* 0.0.0.0/0 ::/0
==> c2d-iis1: Clearing any previously set network interfaces...
The IP address configured for the host-only network is not within the
allowed ranges. Please update the address used to be within the allowed
ranges and run the command again.
Valid ranges can be modified in the /etc/vbox/networks.conf file. For
more information including valid format see:
Configuring Synced Folders
On Ubuntu 22.04, ensure that “synced folders” work correctly by adding the
following line to your
Vagrant is currently configured to create VirtualBox synced folders with
the `SharedFoldersEnableSymlinksCreate` option enabled. If the Vagrant
guest is not trusted, you may want to disable this option. For more
information on this option, please refer to the VirtualBox manual:
This option can be disabled globally with an environment variable:
or on a per folder basis within the Vagrantfile:
config.vm.synced_folder '/host/path', '/guest/path', SharedFoldersEnableSymlinksCreate: false
For better performance and usability, consider installing
VirtualBox Guest Additions
based on VirtualBox images. If you’re using a project like
where the box
is used, VirtualBox Guest Additions are already installed.
If VirtualBox Guest Additions are installed, you can enable the shared clipboard by installing the VirtualBox Extension Pack with the following commands:
sudo wget https://download.virtualbox.org/virtualbox/6.1.38/Oracle_VM_VirtualBox_Extension_Pack-6.1.38.vbox-extpack
sudo VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.38.vbox-extpack
sudo systemctl restart virtualbox.service
To enable shared clipboard functionality, follow these steps:
- Stop the VM(s) by running
- Open VirtualBox Manager and navigate to File → Preferences → Extensions.
- If you have the Oracle VM VirtualBox Extension Pack installed, select it and uninstall it.
- Select Add New Package and locate the extension file at
/opt/Oracle_VM_VirtualBox_Extension_Pack-6.1.38.vbox-extpack, then install it.
- Start the VM(s).
Warning!These steps need to be repeated each time you create a new VM. For a newly created VM, drag-and-drop functionality will work, but the shared clipboard won’t. This behavior has been observed with VirtualBox version 6.1.38 on Ubuntu 22.04.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.