Browse files

properly remove virtualbox-ose-guest-* and vboxguest kernel module; t…

…his will allow to properly install the correct version of VBoxGuestAdditions
  • Loading branch information...
1 parent 7312148 commit 27cfc597bb825c90c0a9be73d567ab38bb2bb260 @mdxp committed Jun 29, 2011
View
5 templates/Debian-6.0.1a-amd64-netboot/postinstall.sh
@@ -30,8 +30,9 @@ wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys
chown -R vagrant /home/vagrant/.ssh
#the netboot install the virtualbox stuff so we have to remove it
-apt-get -y remove virtualbox-ose-guest-dkms
-apt-get -y remove virtualbox-ose-guest-utils
+/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
#Installing the virtualbox guest additions
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
View
5 templates/Debian-6.0.1a-i386-netboot/postinstall.sh
@@ -42,8 +42,9 @@ echo 'UseDNS no' >> /etc/ssh/sshd_config
echo 'Welcome to your Vagrant-built virtual machine.' > /var/run/motd
# The netboot installs the VirtualBox support (old) so we have to remove it
-apt-get -y remove virtualbox-ose-guest-dkms
-apt-get -y remove virtualbox-ose-guest-utils
+/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)

0 comments on commit 27cfc59

Please sign in to comment.