Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save veretennikovalexey/5c54094f6d8d785c8e280cfae80728e7 to your computer and use it in GitHub Desktop.
Save veretennikovalexey/5c54094f6d8d785c8e280cfae80728e7 to your computer and use it in GitHub Desktop.
Install VirtualBox Guest Additions
# Installing the virtualbox guest additions
VBOX_VERSION=$(cat /etc/vagabond/vbox_version)
cd /tmp
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
mount -o loop,ro VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
sh /mnt/VBoxLinuxAdditions.run --nox11
umount /mnt
rm VBoxGuestAdditions_$VBOX_VERSION.iso
unset VBOX_VERSION
#VBOX_VERSION=$(cat /etc/vagabond_vbox_version)
#wget http://download.virtualbox.org/virtualbox/4.1.8/VBoxGuestAdditions_4.1.8.iso
#wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
#mount -o loop,ro VBoxGuestAdditions_4.1.8.iso
#mount -o loop,ro VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
#sh /mnt/VBoxLinuxAdditions.run
#umount /mnt
#rm VBoxGuestAdditions_4.1.8.iso
#rm VBoxGuestAdditions_$VBOX_VERSION.iso
#unset VBOX_VERSION
sudo mount /dev/cdrom /media/cdrom
sudo /media/cdrom/VBoxLinuxAdditions.run --nox11
sudo mkdir /var/projects
sudo mount.vboxsf Projects /var/projects
# vboxmanage guestcontrol updateadditions "vbox_name" --source /usr/share/virtualbox/VBoxGuestAdditions.iso --verbose
# vboxmanage sharedfolder add "vbox_name" --name install --hostpath /install --automount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment