From 7c3a43f7a48f26ba1995936f83bf59e6bf57a2fa Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 30 Oct 2012 15:13:11 -0400 Subject: Add README.md and minimal wheezy definition --- wheezy/virtualbox.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 wheezy/virtualbox.sh (limited to 'wheezy/virtualbox.sh') diff --git a/wheezy/virtualbox.sh b/wheezy/virtualbox.sh new file mode 100644 index 0000000..e4afe25 --- /dev/null +++ b/wheezy/virtualbox.sh @@ -0,0 +1,13 @@ +if test -f .vbox_version ; then + # The netboot installs the VirtualBox support (old) so we have to remove it + /etc/init.d/virtualbox-ose-guest-utils stop + rmmod vboxguest + aptitude -y purge virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms virtualbox-ose-guest-utils + + # Install the VirtualBox guest additions + VBOX_VERSION=$(cat /home/vagrant/.vbox_version) + VBOX_ISO=VBoxGuestAdditions_$VBOX_VERSION.iso + mount -o loop $VBOX_ISO /mnt + yes|sh /mnt/VBoxLinuxAdditions.run + umount /mnt +fi -- cgit v1.2.3