Linux guest additions problem on Mint 17.3 guest
Posted: 6. Jun 2016, 23:49
I have the strangest error when I attempt to update guest additions on Linux Mint 17.3 guest (on Windows 10 Home host.) I get permission denied when I execute ./VBoxLinuxAddtions.run as root user. (See my attachment screenshot.) I thought maybe since the folder /media/cdrom/ is mounted as read-only, maybe that was causing the problem. But I changed directory to /root and ran it again, and got the same error.
Using VirtualBox 5.0.20 r 106931 on Windows 10 Home (64bit) host
Linux guest is Linux Mint 17.3 64-bit
I insert guest additions from the devices menu (in the guest window.) that mounts the .iso to /media/cdrom/ in my environment.
I open a terminal and type "sudo su -" to become the root user.
I change directory (cd /media/cdrom)
I execute the .run file (./VBoxLinuxAddtions.run) and get permission denied error. ( o.0 ) as root!?
The .run file has the following permissions:
-r-xr-xr-x 1 root root 7996878 Apr 28 09:22 VBoxLinuxAdditions.run*
So, I copy the .run file to /root, chmod to 777 and execute. And it works. It starts installing. Here's the output:
Even though I got it to install, I'd still like to understand the permission denied errors. I suspect the bash code is attempting to 'su' at some point during the script execution, but I don't want to wander through someone else's bash code to figure it out.
OH, this is the best part. Now that I've updated guest additions to 5.0.20 and rebooted the guest -- I get a blank screen after I log in. Just black. And of course I DID NOT take a snapshot before I upgraded the guest additions. That would've been smart of me. And VirtualBox is all locked up - can't task switch to it. Can't kill the guest. Real nice.
UPDATE: I guess I should have halted (instead of restarted) the guest. After I killed the guest process using Windows Task Manager, and re-started the guest a few times, I got it to come back. Phew!
Using VirtualBox 5.0.20 r 106931 on Windows 10 Home (64bit) host
Linux guest is Linux Mint 17.3 64-bit
I insert guest additions from the devices menu (in the guest window.) that mounts the .iso to /media/cdrom/ in my environment.
I open a terminal and type "sudo su -" to become the root user.
I change directory (cd /media/cdrom)
I execute the .run file (./VBoxLinuxAddtions.run) and get permission denied error. ( o.0 ) as root!?
The .run file has the following permissions:
-r-xr-xr-x 1 root root 7996878 Apr 28 09:22 VBoxLinuxAdditions.run*
So, I copy the .run file to /root, chmod to 777 and execute. And it works. It starts installing. Here's the output:
Code: Select all
nightmarevm ~ # ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.20 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.16 of VirtualBox Guest Additions...
Stopping VirtualBox Additions ...fail!
(Cannot unload module vboxguest)
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
nightmarevm ~ # pwd
/root
OH, this is the best part. Now that I've updated guest additions to 5.0.20 and rebooted the guest -- I get a blank screen after I log in. Just black. And of course I DID NOT take a snapshot before I upgraded the guest additions. That would've been smart of me. And VirtualBox is all locked up - can't task switch to it. Can't kill the guest. Real nice.
UPDATE: I guess I should have halted (instead of restarted) the guest. After I killed the guest process using Windows Task Manager, and re-started the guest a few times, I got it to come back. Phew!