Skip to content

VirtualBox

Thomas Mangin edited this page May 1, 2020 · 2 revisions

VirtualBox

This solution was initially designed with VirtualBox, but due to the lack of support for KVM a genuine Linux server or VM is recommended. When using VirtualBox, you will not be able to build, but not test VyOS ISOs.

If you are running VirtualBox, you could also perform the following installation:

Add the guest additions

Download VboxGuestAditions.iso on your mac and mount it on the VM CDROM

latest=$( curl https://download.virtualbox.org/virtualbox/LATEST.TXT )
curl https://download.virtualbox.org/virtualbox/$latest/VBoxGuestAdditions_$latest.iso -o VBoxGuestAdditions.iso
sudo apt install build-essential dkms linux-headers-$(uname -r)
mount /media/cdrom
sudo /mnt/media/VBoxLinuxAdditions.run
reboot

Drive mapping

Create a "Shared Folder" called VyOS mapping ~/vyos (on your machine) to /vyos (on the VM)

Then have the system automount the folder

echo "vyos  /vyos   vboxsf   rw,dev,uid=1000,gid=1000   0   0" >> /etc/fstab
Clone this wiki locally