Unable to intall Guest Additions

Discussions related to using VirtualBox on Windows hosts.
AAnandharaj
Posts: 10
Joined: 9. Nov 2015, 06:47

Unable to intall Guest Additions

Post by AAnandharaj »

Hello

Host: Windows 8
VBox: 5.0.8
Guest: Oracle Linux 7.1

When

Unable to insert the virtual optical disk

Error Details
Could not mount the media/drive 'C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso' (VERR_PDM_MEDIA_LOCKED).
Result Code:
E_FAIL (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
Callee:
IMachine {f30138d4-e5ea-4b3a-8858-a059de4c93fd}

Tried forceUnmount, but nothing happened.

Error log attached.

Please suggest.

//AAnandharaj
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 intall Guest Additions

Post by Perryg »

Eject the virtual CD/DVD from inside the guest, or while shut down use the remove CD/DVD in the guests settings.
AAnandharaj
Posts: 10
Joined: 9. Nov 2015, 06:47

Re: Unable to intall Guest Additions

Post by AAnandharaj »

Hello Perryg,

As suggested, I tried the following but nothing happened.
Eject the virtual CD/DVD from inside the guest, or while shut down use the remove CD/DVD in the guests settings. - Nothing happened.

Attached the log. Please look into.
Please help me to install the Guest Additions.

The Guest Additions iso file is located in 'C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso'

Best Regards
//AAnandharaj
Attachments
VBox - 2.zip
(24.57 KiB) Downloaded 349 times
VBox.log -1.zip
(26.68 KiB) Downloaded 218 times
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 intall Guest Additions

Post by Perryg »

The log shows that you have the guest additions in the virtual CD/DVD drive. Now you just need to mount it and run the install from the guests terminal.

This should help Howto: Install Linux Guest Additions
AAnandharaj
Posts: 10
Joined: 9. Nov 2015, 06:47

Re: Unable to intall Guest Additions

Post by AAnandharaj »

Hi
Thanks for the update,

I have done the following:
1) cd /media
2) mkdir cdrom
3) mount /dev/sr0 /media/cdrom -- completed

4) sh ./VBoxLinuxAdditions.run -- While running this command,
The following error occurred:

Copying additional in modules ...
./install.sh: line 345: bzip2: command not found
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
./install.sh line 358: bzip2: command not found
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

Please suggest.

Best Regards
AAnandharaj
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 intall Guest Additions

Post by Perryg »

bzip2: command not found
Looks like you do not have bzip installed. That would be the first place to start.
AAnandharaj
Posts: 10
Joined: 9. Nov 2015, 06:47

Re: Unable to intall Guest Additions

Post by AAnandharaj »

Hi,
I have installed bzip2 and installed the GA.
5) yum install bzip2

6) sh ./VBoxLinuxAdditions.run -- While running this command,

Copying additional in modules ...
Installing additional modules ...
building the VirtualBox Guest Additions kernel modules
building the main Guest Additions module [ OK ]
Building the shared foder support module [ OK ]
Building the OpenGL support module [ OK ]
Doing the non-kernel setup of the Guest Additions [ OK ]
Starting the Virtual Box Guest Additions [ OK ]

Installing the Windows System drivers
Could not find the X.Org or Xfree86 Windows system.

7) I have rebooted the Guest OS - Oracle Linux 7.1, but Guest Addition options are not enabled... still the screen is small. I mean GUI is not started.

Please suggest.

Best Regards
AAnandharaj
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 intall Guest Additions

Post by Perryg »

Could not find the X.Org or Xfree86 Windows system.
Do you have a desktop installed? Xorg and some desktop is required. Other than that you are running in command line and the guest additions will not help there.
AAnandharaj
Posts: 10
Joined: 9. Nov 2015, 06:47

Re: Unable to intall Guest Additions

Post by AAnandharaj »

Hi
Thanks for the update.

Can you pls provide steps for - how to install Desktop?

Best Regards
AAnandharaj
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 intall Guest Additions

Post by Perryg »

AAnandharaj
Posts: 10
Joined: 9. Nov 2015, 06:47

Re: Unable to intall Guest Additions

Post by AAnandharaj »

Hello Perry

Thanks for the update

I have done the following.

6) How to install GNOME GUI Desktop
====================================
[root@localhost ]# prompt, done the following
6.1) yum group list
6.2) yum groupinstall 'Server with GUI'
6.3) systemctl enable graphical.target --force
6.4) Rebooted the Guest OS Oracle Linux 7.1
6.5) gnome-shell --version
6.6) Successfully installed GNOME GUI Desktop, Got the big screen

7) "Share folder" to copy the files from Windows to Guest OS Oracle Linux 7.1
==================================================================
[root@localhost]# mount -t vboxsf OracleSoftware /mnt
==>here OracleSoftware is sharename

I was able to get the share folder and did the copy .


But, After the reboot, I am unable to see the files in share folder from Guest OS.
so tried to mount again and getting the following error.

[root@rac1 / ]# mount -t vboxsf OracleSoftware /mnt
/sbin/mount.vboxsf: mounting failed with the error: No such device


[root@rac1 / ]# mount -t vboxsf OracleSoftware /media/sf
/sbin/mount.vboxsf: mounting failed with the error: No such device


Can you pls suggest.

Best Regards
AAnandharaj
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 intall Guest Additions

Post by Perryg »

Post the guests log file ( as an attachment ). Right click on the guest in the Main Manager then click show log. Save and post as an attachment. Compress if it is too large to post.
AAnandharaj
Posts: 10
Joined: 9. Nov 2015, 06:47

Re: Unable to install Guest Additions

Post by AAnandharaj »

Hello Perry,

I have attached the logs.

Please suggest.

Best Regards
AAnandharaj
Attachments
VBox_Logs.zip
(42.73 KiB) Downloaded 133 times
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 intall Guest Additions

Post by Perryg »

00:00:07.055897 Host path 'C:\Software_Dump\OracleSoftware', map name 'OracleSoftware', writable, automount=true, create_symlinks=false, missing=false
You have set your share to automount and this is what is causing you issues. Automount is a special mount that requires you to have your guest user name in the vboxsf group. As such it is mounted as a media device and not a normal users mount.

I would suggest that you remove the automount and then create a standard permanent mount instead. Follow the direction in the following post.
Linux guest shared folders
AAnandharaj
Posts: 10
Joined: 9. Nov 2015, 06:47

Re: Unable to intall Guest Additions

Post by AAnandharaj »

Hello Perry,

Thanks for the update.

As your suggestion, I have removed the old share-name and created new share-name as share1 with permanent mount option (checkbox clicked) and auto-mount - checkbox - UNCHECKed.

and then rebooted the Guest OS Oracle 7.1 and then entered the following command to mount the share folder.

and getting the same error.


[root@rac1 / ]# mount -t vboxsf share1 /mnt
/sbin/mount.vboxsf: mounting failed with the error: No such device

again tried...

[root@rac1 / ]# mount -t vboxsf share1 /media/share1
/sbin/mount.vboxsf: mounting failed with the error: No such device


and also attached the latest log. Please suggest.

Best Regards
AAnandharaj
Attachments
VBox_Logs2.zip
(66 KiB) Downloaded 126 times
Post Reply