Unable to install Guest Additions

Discussions related to using VirtualBox on Windows hosts.
Post Reply
jcdammeyer
Posts: 6
Joined: 20. Apr 2015, 18:33

Unable to install Guest Additions

Post by jcdammeyer »

I'm running Windows 7 on a laptop. I have VirtualBox 5.02 installed and I am running a Debian 64 version of Linux. I've attached 3 screen grabs that show my problem. Although the Guest Additions .iso file is mounted and readable and the auto run shell starts it crashes with a file not found error.

What do I need to do to get it to run? Is there a log file with a clue?
Thanks
John
Attachments
And the file not found error.
And the file not found error.
FlipperDebian2.jpg (28 KiB) Viewed 5958 times
results of Autorun.sh on mounted drive with VBOX Guest Addition
results of Autorun.sh on mounted drive with VBOX Guest Addition
FlipperDebian1.jpg (38.22 KiB) Viewed 5958 times
WIN7 VM VirtualBox Manager showing Debian 64 version running on laptop Flipper.
WIN7 VM VirtualBox Manager showing Debian 64 version running on laptop Flipper.
VirtualBox1.jpg (67.75 KiB) Viewed 5958 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Unable to install Guest Additions

Post by mpack »

Please provide a VM log file: with the VM fully shut down, right click it, save "VBox.log" (ONLY) to a zip, and attach the zip here.
jcdammeyer
Posts: 6
Joined: 20. Apr 2015, 18:33

Re: Unable to install Guest Additions

Post by jcdammeyer »

Thank you. Attached is the zip.
Attachments
FlipperDebianVBoxLog.zip
VBox.log Where guest additions won't load.
(24 KiB) Downloaded 20 times
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Unable to install Guest Additions

Post by noteirak »

In the guest, what is the output of the following commands:

Code: Select all

cat /etc/issue
cat /etc/debian_version
uname -a
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Unable to install Guest Additions

Post by Perryg »

Code: Select all

00:02:29.610313 supR3HardenedErrorV: supR3HardenedScreenImage/LdrLoadDll: rc=VERR_LDRVI_NOT_SIGNED fImage=1 fProtect=0x0 fAccess=0x0 \Device\HarddiskVolume3\Program Files (x86)\ASUS\WebStorage Sync Agent\1.1.18.159\AsusWSShellExt64.dll: Not signed.
You should ask asus to sign their file, but I don't suspect this being your issue.

Open a terminal in the guest and install the guest additions from there. Run as su/sudo.
jcdammeyer
Posts: 6
Joined: 20. Apr 2015, 18:33

Re: Unable to install Guest Additions

Post by jcdammeyer »

This problem seems to have gotten more complicated. On my workstation in the past I have been able to set the VBGuestEditions.iso file in Devices|Optical Drives. When I do that it ran and worked fine for installing. At least no errors reported. And from my workstation I can access my windows network.
However today, it fails in the same manner as the laptop. I can still access the windows network but I get the same not found error when I mount the .iso. And cut and paste between the VM Guest and the host doesn't work either.

/etc/debian_version == 8.1
/etc/issue == Debian GNU/Linux 8 \n \l

How exactly would I run the VMGuestEditions?
See attached screen shot. I can Run Software VBoxLinuxEditions.run and I get the same initial dialog asking am I sure and then the program not found.
From the command line as the root user in /media/cdrom0 ./VboxLinuxAdditions.run I get a permission denied.

I'm guessing I've done something fundamentally wrong. On the workstation I can mount one of my windows machines and drag files from /home to the smb://corsair/projects/beaglebone
On the laptop I can't even access the windows network. Both machines are WIN7 Pro. Both used the same set of install files and VM images.

Code: Select all

total 51011
dr-xr-xr-x 6 root root     2048 Aug 13 09:32 .
drwxr-xr-x 3 root root     4096 Aug 15 16:35 ..
dr-xr-xr-x 2 root root     2048 Aug 13 09:32 32Bit
dr-xr-xr-x 2 root root     2048 Aug 13 09:32 64Bit
-r-xr-xr-x 1 root root      647 Sep  2  2014 AUTORUN.INF
-r-xr-xr-x 1 root root     6964 Aug 13 10:29 autorun.sh
dr-xr-xr-x 2 root root     2048 Aug 13 09:32 cert
dr-xr-xr-x 2 root root     2048 Aug 13 09:32 OS2
-r-xr-xr-x 1 root root     5519 Aug 13 10:29 runasroot.sh
-r-xr-xr-x 1 root root  7505343 Aug 13 10:29 VBoxLinuxAdditions.run
-r-xr-xr-x 1 root root 17315840 Aug 13 10:30 VBoxSolarisAdditions.pkg
-r-xr-xr-x 1 root root 16891568 Aug 13 10:30 VBoxWindowsAdditions-amd64.exe
-r-xr-xr-x 1 root root   312384 Aug 13 10:27 VBoxWindowsAdditions.exe
-r-xr-xr-x 1 root root 10180352 Aug 13 10:28 VBoxWindowsAdditions-x86.exe
Attachments
Optical Drive with VMGuestAdditions programs and folders.
Optical Drive with VMGuestAdditions programs and folders.
VBOXADDITIONS_5.0.2_102096.png (123.34 KiB) Viewed 5879 times
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Unable to install Guest Additions

Post by noteirak »

open a terminal, cd to the mounted folder for the CD and then type:

Code: Select all

sudo sh VBoxLinuxAdditions.run
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
jcdammeyer
Posts: 6
Joined: 20. Apr 2015, 18:33

Re: Unable to install Guest Additions

Post by jcdammeyer »

Almost but not quite there yet.
My Debian doesn't like sudo.
So instead I su root and login. Below is what follows:

Code: Select all

root@debianFlipper:/media/cdrom0# sh VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.2 Guest Additions for Linux............
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.16 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the the Window System (or just restart the guest system)
to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.
root@debianFlipper:/media/cdrom0# 
And here is /var/log/vboxadd-install.log

Code: Select all

/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
So to install guest additions I have to have the OS source installed? A bit of google work brings up this link. https://www.garron.me/en/go2linux/how-i ... buntu.html

As always I'm hesitant to start pressing buttons so to speak in hopes that it will work.
Thanks
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Unable to install Guest Additions

Post by noteirak »

Just have a look at our dedicated HowTo on the forum.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
jcdammeyer
Posts: 6
Joined: 20. Apr 2015, 18:33

Re: Unable to install Guest Additions

Post by jcdammeyer »

My solution so far.
1. Start over and install new downloaded copy of debian-8.1.0-amd64-netinst.iso
2. The point of this whole exercise is to be able to cross compile for the ARM on the BeaglBone Black sohttp://exploringbeaglebone.com/chapter3/ has a set of instructions on installing guest additions;
su - doesn't work since I have a password set up for root. Easier to su root, enter password, cd ~ I mounted the Guest Additions .iso on the cdrom and as before that failed. I then did the following from the Chapter 3 page.

Code: Select all

molloyd@debian:~$ su -
root@debian:~# apt-get update
root@debian:~# apt-get install build-essential module-assistant
root@debian:~# m-a prepare
root@debian:~# cd /media/cdrom
root@debian:~# sh ./VBoxLinuxAdditions.run
root@debian:~# reboot
4. To test if it worked I first shutdown both Linux and then VM. Started it all up. Set the flags for cut and paste and drag and drop. Shut it all down and restarted.
5. Under VM Devices|SharedFolders|Shared Folders Settings... I no longer get the message that Guest Additions isn't installed. I can cut and paste in both directions from WIndows to Debian and back.
6. I then followed the instructions and installed the Cairo-Dock which installed without issues and is enabled in Startup.

So thanks everyone for trying to help.

Final problem where the laptop is different from the works station is in access to the Windows Network. I can set up shares by adding smb://Coarsair/ which is how I dragged and dropped a screen capture. But it won't bring up a map of the network. So odd that on one system the behavior is different from another one. Odds are it's something at the Windows Network level that's different. Any suggestions are welcome.
John
Attachments
Can't directly access Windows network
Can't directly access Windows network
DebianOnFlipper.jpg (63.02 KiB) Viewed 5851 times
Post Reply