Page 1 of 2

not able to mount the Guest Additions CD

Posted: 17. Sep 2012, 14:12
by redy007
Hello all,

I have a problem with mount of Guest Additions CD to centOS 6.3 - 2.6.32-297.e16.x84_64. I tired to mount the Guest Additions CD by selecting Devices -> Install Guest Additions. But nothing appeard in /media/*.

The iso image I tried to mount manually with same result.

Could you tell me what I am duing wrong or which prerequisites wasn't done?

Thanks for help and your time.

Re: not able to mount the Guest Additions CD

Posted: 17. Sep 2012, 14:44
by mpack
Did you include a CD/DVD drive in your VM recipe?

Re: not able to mount the Guest Additions CD

Posted: 18. Sep 2012, 16:33
by LeonG
i am having the same issue with v 4.2 of VirtualBox. I install the extension pack for 4.2, but when I open my Windows Guest and try to "Install Guest Additions" from the Device menu -- nothing happens. I do not get the dialog to install. When I hit my Host+D keys nothing happens. this is with an upgrade to 4.2 from 4.1.22. All works OK with 4.1.22,but not with the upgrade. Any ideas?

Re: not able to mount the Guest Additions CD

Posted: 18. Sep 2012, 16:34
by mpack
LeonG wrote:Any ideas?
Sure, if auto-run isn't working then just run the setup program manually.

Re: not able to mount the Guest Additions CD

Posted: 18. Sep 2012, 18:30
by LeonG
mpack wrote: Sure, if auto-run isn't working then just run the setup program manually.
Thank you. Got it and it worked. :)

Re: not able to mount the Guest Additions CD

Posted: 18. Sep 2012, 18:43
by mpack
Well, since you have a Windows guest and this is the "Linux Guests" forum there is a limit to how much detail I can provide. So all I can say is: browse inside the guest to the virtual CD drive and run VBoxWindowsAdditions.exe.

Both Windows and Linux guest users should read chapter 4 of the user manual, but it's especially important for Linux guests.

Re: not able to mount the Guest Additions CD

Posted: 18. Sep 2012, 18:46
by LeonG
Got it. Done

Re: not able to mount the Guest Additions CD

Posted: 19. Mar 2013, 21:51
by midpeter444
I am having the same problem and don't understand the solution of "Sure, if auto-run isn't working then just run the setup program manually."

I am running a Windows 7 host with VBox 4.2.10 and the guest is 64-bit Centos 6.4. I have installed dkms and all the other instructions that I can find about getting this setup, but when I do "Devices > Install Guest Additions" nothing happens and I don't know how to find the CD manually from within the guest. I have done with this with Ubuntu guests in the past, but don't know the RedHat/Centos side as well.

How does one "setup the program manually"?

Re: not able to mount the Guest Additions CD

Posted: 20. Mar 2013, 11:33
by mpack
midpeter444 wrote:How does one "setup the program manually"?
You browse to the CD root folder and run the Linux guest executable. Details for how to properly install guest additions in a Linux Guest can be found in the user manual, chapter 4. For details on how to operate Linux itself I suggest the Ubuntu forums or similar.

Re: not able to mount the Guest Additions CD

Posted: 20. Mar 2013, 15:35
by midpeter444
> Details for how to properly install guest additions in a Linux Guest can be found in the user manual, chapter 4.
I've read chapter 4 many times already and tried to follow all the steps for RedHat/Centos.

> You browse to the CD root folder and run the Linux guest executable.
This would have to be on the Linux guest right? If so, I can't find the CD on the guest. I just did sudo find / -name "VBox*" and it returns nothing.

When I try to mount with sudo mount -t iso9660 /dev/cdrom1 /mnt it fails with message "wrong fs type, bad option, bad superblock on /dev/sr0".

Ideas?

I just remembered that I am using a 32-bit version of Virtualbox installed on Windows, but I'm trying to install a 64-bit Centos system in it - would that be the problem? Last year I installed 32-bit Centos 6.2 on an earlier version of Virtualbox and installed guest additions with no problem. Can I only install 32-bit guests into a 32-bit Virtualbox system?

Re: not able to mount the Guest Additions CD

Posted: 20. Mar 2013, 16:18
by mpack
midpeter444 wrote:> You browse to the CD root folder and run the Linux guest executable.
This would have to be on the Linux guest right? If so, I can't find the CD on the guest.
You mounted it first right? By selecting Devices|Install Guest Additions... ?

No, I doubt if it matters than your guest is 64bit. And if it's already installed and running then you presumably installed it from a virtual CD, which proves that that works too.

Re: not able to mount the Guest Additions CD

Posted: 20. Mar 2013, 17:09
by Perryg
This should help Howto: Install Linux Guest Additions

sudo mount /dev/sr0 /mnt
will get the drive mounted. (although you should use a different approach once you have learned more about Linux)
you then do cd /mnt to get to the location of the cd contents and run the install that fits your OS as sudo.

The reboot after the GA install will remove this temporary mount

Note: if you are not in the sudo'ers list you will need to use su to switch to elevated privileges

Re: not able to mount the Guest Additions CD

Posted: 20. Mar 2013, 18:53
by midpeter444
Thanks for everyone trying to help, but still no joy.
mpack wrote:
midpeter444 wrote:> You browse to the CD root folder and run the Linux guest executable.
This would have to be on the Linux guest right? If so, I can't find the CD on the guest.
You mounted it first right? By selecting Devices|Install Guest Additions... ?
Yes, I have tried Devices|Install Guest Additions... with the Centos guest many times and nothing happens, which is why I then tried manual mounting.

So now I just tried installing Xubuntu-12.10 (also 64bit) as a guest into the same Windows 7 VirtualBox host, I installed the virtualbox-guest-additions package according to the instructions suggested by the other poster and an askubuntu forum post that I have used before with no problem (this forum won't let me post URLs, which is rather annoying I must say).

Then I did Devices|Install Guest Additions... and I get the error message: "Unable to mount the CD/DVD image C:\Program Files\VirtualBox\VBoxGuestAdditions.iso on the machine Xubuntu, followed by "Could not mount the CD "C:\Program Files\VirtualBox\VBoxGuestAdditions.iso" (VERR_PDM_MEDIA_LOCKED).

So I unmounted the drive using the little CD icon at the bottom of the VirtualBox window choosing "Remove disk from virtual drive". Then did Devices|Install Guest Additions... again. Again nothing happens.

When I run sudo find / -name "VBox*" | grep -i add, I get one file in /usr/share/virtualbox/VBoxGuestAdditions.iso, but I don't know what to do with it. When I try the mount commands (such as sudo mount -t iso9660 /dev/sr0 /media) I get the "wrong fs type, bad option, bad superblock" error message on Xubuntu just as I did on Centos.


So it has failed on two guest installs. I've been using VirtualBox on Windows and Linux for over a year now and not had this problem until now on this machine with these versions.

Suggestions? Should I reinstall the VirtualBox on the host?

Re: not able to mount the Guest Additions CD

Posted: 20. Mar 2013, 21:06
by wearyofallthiscrap
Mounting the guest additions ISO image inside a running Linux guest almost never works for me. Dunno why; there's zero feedback provided or logged when it fails.

What perry advised me to do, last time I asked about this, was:

- shutdown the guest
- fire up the VB Manager
- in the guest's settings, go under the Storage group, and add the ISO file directly. If you've already used the Manager to find the guest additions, the correct .iso will be in with the rest of the VB software (e.g., Windows puts it under C:\Program Files\Oracle\VirtualBox).
- save settings, start up guest
- do the appropriate mount command. The raw device will depend on where you added it in the storage options, e.g., I used the IDE primary master, so it showed up as /dev/sr0

Once mounted, you can run the installer shell script. You can umount the CD afterwards, but it will still remain "in the disc drive" since you can't undo that part on the fly. Next time you happen to shutdown the guest, go back into Storage and remove the ISO image.

Worked for me like a charm, then and now.

Re: not able to mount the Guest Additions CD

Posted: 21. Mar 2013, 00:43
by midpeter444
wearyofallthiscrap wrote:Mounting the guest additions ISO image inside a running Linux guest almost never works for me.
- shutdown the guest
- fire up the VB Manager
- in the guest's settings, go under the Storage group, and add the ISO file directly. If you've already used the Manager to find the guest additions, the correct .iso will be in with the rest of the VB software (e.g., Windows puts it under C:\Program Files\Oracle\VirtualBox).
- save settings, start up guest
- do the appropriate mount command. The raw device will depend on where you added it in the storage options, e.g., I used the IDE primary master, so it showed up as /dev/sr0
I already had the VBoxGuestAdditions.iso in the VB Settings as the default IDE drive. Still won't mount and doing sudo mount /dev/sr0 fails as before. I tried adding /dev/cdrom to /etc/fstab, but didn't help.

On Xubuntu, what finally worked was this:
sudo mount -t iso9660 /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt/cdrom

Since for some reason that iso shows up in the Xubuntu filesystem.

Now I finally have VBoxLinuxAdditions.run file to run, but it fails to install the extensions to the X Window system due to "unknown version of X", which is another problem that means I still don't have a Linux guest working the way I want.

What I really want is to have Centos running with Guest Additions. But I can't find the VBoxGuestAdditions.iso anywhere on the Centos file system to manually mount it as I did with the Xubuntu install. Can one just download the VBoxGuestAdditions.iso directly onto the guest and mount it and run it that way? Why does it have to be mounted from the host?

At this point after 3 days of trying, needless to say, I'm rather frustrated. Anybody have any other ideas of how to get this working with a Centos guest?