| 1 | philip@banana:~$ sudo sh -x /opt/VBoxGuestAdditions-5.0.7/init/vboxadd setup
|
|---|
| 2 | + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/bin:/sbin:/usr/sbin
|
|---|
| 3 | + PACKAGE=VBoxGuestAdditions
|
|---|
| 4 | + LOG=/var/log/vboxadd-install.log
|
|---|
| 5 | + MODPROBE=/sbin/modprobe
|
|---|
| 6 | + OLDMODULES=vboxguest vboxadd vboxsf vboxvfs vboxvideo
|
|---|
| 7 | + + grep -q ^allow_unsupported_modules *0
|
|---|
| 8 | /sbin/modprobe -c
|
|---|
| 9 | + uname -m
|
|---|
| 10 | + cpu=x86_64
|
|---|
| 11 | + cpu=amd64
|
|---|
| 12 | + lib_candidates=/usr/lib/x86_64-linux-gnu /usr/lib64 /usr/lib /lib64 /lib
|
|---|
| 13 | + test -d /usr/lib/x86_64-linux-gnu/VBoxGuestAdditions
|
|---|
| 14 | + lib_path=/usr/lib/x86_64-linux-gnu
|
|---|
| 15 | + break
|
|---|
| 16 | + [ -f /etc/redhat-release ]
|
|---|
| 17 | + [ -f /etc/SuSE-release ]
|
|---|
| 18 | + [ -f /etc/gentoo-release ]
|
|---|
| 19 | + [ -f /etc/lfs-release -a -d /etc/rc.d/init.d ]
|
|---|
| 20 | + system=other
|
|---|
| 21 | + [ other = redhat ]
|
|---|
| 22 | + [ other = suse ]
|
|---|
| 23 | + [ other = gentoo ]
|
|---|
| 24 | + [ other = lfs ]
|
|---|
| 25 | + [ other = other ]
|
|---|
| 26 | + dev=/dev/vboxguest
|
|---|
| 27 | + userdev=/dev/vboxuser
|
|---|
| 28 | + config=/var/lib/VBoxGuestAdditions/config
|
|---|
| 29 | + owner=vboxadd
|
|---|
| 30 | + group=1
|
|---|
| 31 | + setup
|
|---|
| 32 | + test -r /var/lib/VBoxGuestAdditions/config
|
|---|
| 33 | + . /var/lib/VBoxGuestAdditions/config
|
|---|
| 34 | + INSTALL_DIR=/opt/VBoxGuestAdditions-5.0.7
|
|---|
| 35 | + INSTALL_MODULES_DIR=/opt/VBoxGuestAdditions-5.0.7/installer/
|
|---|
| 36 | + INSTALL_MODULES_LIST=
|
|---|
| 37 | + UNINSTALLER=uninstall.sh
|
|---|
| 38 | + INSTALL_VER=5.0.7
|
|---|
| 39 | + INSTALL_REV=103368
|
|---|
| 40 | + BUILD_TYPE=release
|
|---|
| 41 | + USERNAME=vbox
|
|---|
| 42 | + test -n /opt/VBoxGuestAdditions-5.0.7 -a -n 5.0.7
|
|---|
| 43 | + export BUILD_TYPE
|
|---|
| 44 | + export USERNAME
|
|---|
| 45 | + MODULE_SRC=/opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7
|
|---|
| 46 | + BUILDINTMP=/opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7/build_in_tmp
|
|---|
| 47 | + DODKMS=/opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7/do_dkms
|
|---|
| 48 | + chcon -t bin_t /opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7/build_in_tmp
|
|---|
| 49 | + chcon -t bin_t /opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7/do_dkms
|
|---|
| 50 | + setup_modules
|
|---|
| 51 | + cleanup_modules
|
|---|
| 52 | + which dkms
|
|---|
| 53 | + [ -n ]
|
|---|
| 54 | + begin Removing existing VirtualBox non-DKMS kernel modules
|
|---|
| 55 | + echo -n Removing existing VirtualBox non-DKMS kernel modules
|
|---|
| 56 | Removing existing VirtualBox non-DKMS kernel modules+ + xargs rmfind
|
|---|
| 57 | /lib/modules -name vboxguest*
|
|---|
| 58 | + + xargs rm
|
|---|
| 59 | find /lib/modules -name vboxadd*
|
|---|
| 60 | + + find /lib/modules -name vboxsf*
|
|---|
| 61 | xargs rm
|
|---|
| 62 | + + xargs rm
|
|---|
| 63 | find /lib/modules -name vboxvfs*
|
|---|
| 64 | + + xargs rm
|
|---|
| 65 | find /lib/modules -name vboxvideo*
|
|---|
| 66 | + succ_msg
|
|---|
| 67 | + echo ...done.
|
|---|
| 68 | ...done.
|
|---|
| 69 | + begin Building the VirtualBox Guest Additions kernel modules
|
|---|
| 70 | + echo -n Building the VirtualBox Guest Additions kernel modules
|
|---|
| 71 | Building the VirtualBox Guest Additions kernel modules+ which dkms
|
|---|
| 72 | + [ -n ]
|
|---|
| 73 | + test_for_gcc_and_make
|
|---|
| 74 | + which make
|
|---|
| 75 | + which gcc
|
|---|
| 76 | + test_sane_kernel_dir
|
|---|
| 77 | + uname -r
|
|---|
| 78 | + KERN_VER=3.16.0-44-generic
|
|---|
| 79 | + KERN_DIR=/lib/modules/3.16.0-44-generic/build
|
|---|
| 80 | + [ -d /lib/modules/3.16.0-44-generic/build ]
|
|---|
| 81 | + make -sC /lib/modules/3.16.0-44-generic/build --no-print-directory kernelrelease
|
|---|
| 82 | + KERN_REL=3.16.7-ckt14
|
|---|
| 83 | + [ -z 3.16.7-ckt14 -o x3.16.7-ckt14 = x3.16.0-44-generic ]
|
|---|
| 84 | + printf \nThe headers for the current running kernel were not found. If the following\nmodule compilation fails then this could be the reason.\n
|
|---|
| 85 |
|
|---|
| 86 | The headers for the current running kernel were not found. If the following
|
|---|
| 87 | module compilation fails then this could be the reason.
|
|---|
| 88 | + [ other = redhat ]
|
|---|
| 89 | + [ other = suse ]
|
|---|
| 90 | + [ other = debian ]
|
|---|
| 91 | + echo
|
|---|
| 92 |
|
|---|
| 93 | + begin Building the main Guest Additions module
|
|---|
| 94 | + echo -n Building the main Guest Additions module
|
|---|
| 95 | Building the main Guest Additions module+ /opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7/build_in_tmp --save-module-symvers /tmp/vboxguest-Module.symvers --module-source /opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7/vboxguest --no-print-directory install
|
|---|
| 96 | + succ_msg
|
|---|
| 97 | + echo ...done.
|
|---|
| 98 | ...done.
|
|---|
| 99 | + begin Building the shared folder support module
|
|---|
| 100 | + echo -n Building the shared folder support module
|
|---|
| 101 | Building the shared folder support module+ /opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7/build_in_tmp --use-module-symvers /tmp/vboxguest-Module.symvers --module-source /opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7/vboxsf --no-print-directory install
|
|---|
| 102 | + succ_msg
|
|---|
| 103 | + echo ...done.
|
|---|
| 104 | ...done.
|
|---|
| 105 | + uname -r
|
|---|
| 106 | + expr 3.16.0-44-generic < 2.6.27
|
|---|
| 107 | + begin Building the OpenGL support module
|
|---|
| 108 | + echo -n Building the OpenGL support module
|
|---|
| 109 | Building the OpenGL support module+ /opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7/build_in_tmp --use-module-symvers /tmp/vboxguest-Module.symvers --module-source /opt/VBoxGuestAdditions-5.0.7/src/vboxguest-5.0.7/vboxvideo --no-print-directory install
|
|---|
| 110 | + succ_msg
|
|---|
| 111 | + echo ...done.
|
|---|
| 112 | ...done.
|
|---|
| 113 | + depmod
|
|---|
| 114 | + return 0
|
|---|
| 115 | + mod_succ=0
|
|---|
| 116 | + extra_setup
|
|---|
| 117 | + begin Doing non-kernel setup of the Guest Additions
|
|---|
| 118 | + echo -n Doing non-kernel setup of the Guest Additions
|
|---|
| 119 | Doing non-kernel setup of the Guest Additions+ echo Creating user for the Guest Additions.
|
|---|
| 120 | + useradd -d /var/run/vboxadd -g 1 -r -s /bin/false vboxadd
|
|---|
| 121 | + useradd -d /var/run/vboxadd -g 1 -u 501 -o -s /bin/false vboxadd
|
|---|
| 122 | + groupadd -r -f vboxsf
|
|---|
| 123 | + [ -d /etc/udev/rules.d ]
|
|---|
| 124 | + echo Creating udev rule for the Guest Additions kernel module.
|
|---|
| 125 | + udev_call=
|
|---|
| 126 | + which udevadm
|
|---|
| 127 | + udev_app=/sbin/udevadm
|
|---|
| 128 | + [ 0 -eq 0 ]
|
|---|
| 129 | + udev_call=/sbin/udevadm version 2> /dev/null
|
|---|
| 130 | + udev_fix==
|
|---|
| 131 | + [ /sbin/udevadm version 2> /dev/null != ]
|
|---|
| 132 | + /sbin/udevadm version 2> /dev/null
|
|---|
| 133 | + udev_out=208
|
|---|
| 134 | + expr 208 : [^0-9]*\([0-9]*\)
|
|---|
| 135 | + udev_ver=208
|
|---|
| 136 | + [ 208 = -o 208 -lt 55 ]
|
|---|
| 137 | + echo KERNEL=="vboxguest", NAME="vboxguest", OWNER="vboxadd", MODE="0660"
|
|---|
| 138 | + echo KERNEL=="vboxuser", NAME="vboxuser", OWNER="vboxadd", MODE="0666"
|
|---|
| 139 | + ln -sf /usr/lib/x86_64-linux-gnu/VBoxGuestAdditions/mount.vboxsf /sbin
|
|---|
| 140 | + ln -sf /usr/lib/x86_64-linux-gnu/VBoxGuestAdditions/vboxadd /sbin/rcvboxadd
|
|---|
| 141 | + ln -sf /usr/lib/x86_64-linux-gnu/VBoxGuestAdditions/vboxadd-x11 /sbin/rcvboxadd-x11
|
|---|
| 142 | + chcon -u system_u -t mount_exec_t /usr/lib/x86_64-linux-gnu/VBoxGuestAdditions/mount.vboxsf
|
|---|
| 143 | + cat /etc/redhat-release
|
|---|
| 144 | + redhat_release=
|
|---|
| 145 | + succ_msg
|
|---|
| 146 | + echo ...done.
|
|---|
| 147 | ...done.
|
|---|
| 148 | + [ 0 -eq 0 ]
|
|---|
| 149 | + running_vboxguest
|
|---|
| 150 | + + lsmod
|
|---|
| 151 | grep -q vboxguest[^_-]
|
|---|
| 152 | + printf You should restart your guest to make sure the new modules are actually used\n\n
|
|---|
| 153 | You should restart your guest to make sure the new modules are actually used
|
|---|
| 154 |
|
|---|
| 155 | + exit
|
|---|