Page 1 of 2

Unable to intall Guest Additions

Posted: 9. Nov 2015, 08:02
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

Re: Unable to intall Guest Additions

Posted: 9. Nov 2015, 14:55
by Perryg
Eject the virtual CD/DVD from inside the guest, or while shut down use the remove CD/DVD in the guests settings.

Re: Unable to intall Guest Additions

Posted: 11. Nov 2015, 07:27
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

Re: Unable to intall Guest Additions

Posted: 11. Nov 2015, 13:58
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

Re: Unable to intall Guest Additions

Posted: 13. Nov 2015, 18:07
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

Re: Unable to intall Guest Additions

Posted: 13. Nov 2015, 18:41
by Perryg
bzip2: command not found
Looks like you do not have bzip installed. That would be the first place to start.

Re: Unable to intall Guest Additions

Posted: 13. Nov 2015, 19:07
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

Re: Unable to intall Guest Additions

Posted: 13. Nov 2015, 19:22
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.

Re: Unable to intall Guest Additions

Posted: 13. Nov 2015, 19:34
by AAnandharaj
Hi
Thanks for the update.

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

Best Regards
AAnandharaj

Re: Unable to intall Guest Additions

Posted: 13. Nov 2015, 19:55
by Perryg

Re: Unable to intall Guest Additions

Posted: 16. Nov 2015, 10:15
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

Re: Unable to intall Guest Additions

Posted: 16. Nov 2015, 15:21
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.

Re: Unable to install Guest Additions

Posted: 19. Nov 2015, 15:55
by AAnandharaj
Hello Perry,

I have attached the logs.

Please suggest.

Best Regards
AAnandharaj

Re: Unable to intall Guest Additions

Posted: 19. Nov 2015, 16:15
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

Re: Unable to intall Guest Additions

Posted: 19. Nov 2015, 17:09
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