Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Install virtualbox guest additions
Browse files Browse the repository at this point in the history
  • Loading branch information
hanikesn committed Jun 15, 2017
1 parent 9a736fb commit 4c8d498
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 0 additions & 2 deletions test/Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Vagrant.configure(2) do |config|
config.vm.box = "vagrant-kubernetes"

config.vm.synced_folder ".", "/vagrant", type: "rsync"

# Disabled VirtualBox Guest updates
if Vagrant.has_plugin?("vagrant-vbguest")
config.vbguest.auto_update = false
Expand Down
4 changes: 0 additions & 4 deletions vg-00-kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ systemctl mask docker

apt-get --quiet update
apt-get --quiet --yes dist-upgrade
echo 'deb http://http.us.debian.org/debian sid main non-free contrib' > /etc/apt/sources.list.d/unstable.list
# Install bridge-utils first, so that we can get the bridget for docker up
apt-get --quiet --yes --no-install-recommends install \
bridge-utils ethtool htop vim curl \
Expand Down Expand Up @@ -149,6 +148,3 @@ chown vagrant /sock/
#echo 'ln $SSH_AUTH_SOCK /sock/sock' >> /home/vagrant/.bashrc

systemctl unmask docker

# cleanup
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/*
13 changes: 13 additions & 0 deletions vg-01-repartition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ until $(kubectl --namespace=kube-system get pods | grep -q '^kube-dns.*3/3.*$');
done
set -euv

# Install additions after reboot, so we have the correct running kernel
VBOX_VERSION=5.1.22
apt-get install -yq --no-install-recommends linux-headers-$(uname -r)
wget http://download.virtualbox.org/virtualbox/${VBOX_VERSION}/VBoxGuestAdditions_${VBOX_VERSION}.iso -qO vbox.iso
mount -o loop vbox.iso /mnt
/mnt/VBoxLinuxAdditions.run --nox11
umount /mnt
rm vbox.iso
apt-get -y remove linux-headers-$(uname -r)

# cleanup
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/*

swapoff /dev/sda5

SWAPUUID=$(blkid /dev/sda5 -s UUID | cut -f 2 -d '=' | tr -d '"' )
Expand Down

0 comments on commit 4c8d498

Please sign in to comment.