Can't install guest additions.

Discussions about using Linux guests in VirtualBox.
rkb
Posts: 66
Joined: 22. Aug 2012, 20:41

Can't install guest additions.

Post by rkb »

I have a Windows 7 host with a Linux VM (Ubuntu 12.10 Server). I would like to share files between the two systems an I understand that in order to do that I need the guest additions. I don't even know where to start. All of the documentation that I see has various menu items that I don't see and installation options that I don't have. Is there a definitive step by step guide?
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: Can't install guest additions.

Post by mpack »

Detailed instructions for Linux guests can be found in the user manual. I don't think I can improve on them.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't install guest additions.

Post by Perryg »

In this case (guest being a Linux server) the normal installation will lead you to havoc.

You will need to install them manually and with specific flags.
First you need to install (on the guest)

Code: Select all

sudo apt-get install dkms build-essential linux-headers-$(uname -r)
Mount the guest additions ISO and install the proper GAs (use the amd64 for 64-bit)
then run (from terminal) with the flag --nox11 at the end.

Reboot and setup your shared folders. You can add your manual mounts to the /etc/rc.local to make them permanent.

Note: I find it much better to *NOT* use the auto-mount. Also use the -o rw,uid=<your id),gid=<your id> in your mount statement for better permission control.
rkb
Posts: 66
Joined: 22. Aug 2012, 20:41

Re: Can't install guest additions.

Post by rkb »

Perryg wrote:In this case (guest being a Linux server) the normal installation will lead you to havoc.

Mount the guest additions ISO and install the proper GAs (use the amd64 for 64-bit)
then run (from terminal) with the flag --nox11 at the end.
Note: I find it much better to *NOT* use the auto-mount. Also use the -o rw,uid=<your id),gid=<your id> in your mount statement for better permission control.
Thank you very much. I am in the middle of havoc. Where do I get the guest additions ISO? This whole step I am not clear on. the -nox11 flag is a flag to what command? This is on the guest?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't install guest additions.

Post by Perryg »

The guest additions are included with your Windows VirtualBox install. You click on the devices tab at the top and select install guest additions. This will make them available to you in the guest.

Next step is to mount the CD and then run the following (All commands are run from the guest.):

Code: Select all

sudo VBoxLinuxAdditions.run --nox11
You will get errors about missing Xorg, but that is normal since you don't have any and way the flag is necessary.
rkb
Posts: 66
Joined: 22. Aug 2012, 20:41

Re: Can't install guest additions.

Post by rkb »

mpack wrote:Detailed instructions for Linux guests can be found in the user manual. I don't think I can improve on them.
The manual states:

/etc/init.d/vboxadd setup

But there is not vboxadd in the init.d folder.

Also it states:

Insert the VBoxGuestAdditions.iso CD file into your Linux guest's virtual CD-ROM drive, exactly the same way as described for a Windows guest in Section 4.2.1.1, “Installation”.

I don't see a virtual CD-ROM drive on my VM. Where do I get VBoxGuesAdditions.iso? Is it supposed to come with the apt-get? If so that part didn't work.

The documentation also states:

In the "Devices" menu in the virtual machine's menu bar, VirtualBox has a handy menu item named "Install guest additions", which mounts the Guest Additions ISO file inside your virtual machine. A Windows guest should then automatically start the Guest Additions installer, which installs the Guest Additions into your Windows guest. Other guest operating systems (or if automatic start of software on CD is disabled) need manual start of the installer.

I don't see a menu anywhere on the virtual machine's "box". Where is this menu?
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: Can't install guest additions.

Post by mpack »

It's there on your VM window.
Attachments
Image1.png
Image1.png (40.79 KiB) Viewed 3711 times
rkb
Posts: 66
Joined: 22. Aug 2012, 20:41

Re: Can't install guest additions.

Post by rkb »

Perryg wrote:The guest additions are included with your Windows VirtualBox install. You click on the devices tab at the top and select install guest additions. This will make them available to you in the guest.

Next step is to mount the CD and then run the following (All commands are run from the guest.):

Code: Select all

sudo VBoxLinuxAdditions.run --nox11
You will get errors about missing Xorg, but that is normal since you don't have any and way the flag is necessary.
What is the command to mount from the guest? As I see it I don't have a CD-ROM on my VM.

There is no command called VBoxLinuxAdditions.run on my machine.
rkb
Posts: 66
Joined: 22. Aug 2012, 20:41

Re: Can't install guest additions.

Post by rkb »

mpack wrote:It's there on your VM window.
I don't have this menu on my VM.

I can send you a screenshot of what I see but I am not sure how to do that.
Last edited by rkb on 7. Feb 2013, 17:57, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Can't install guest additions.

Post by Perryg »

Oh my. From the sounds of it you don't really know Linux or their commands. I don't mind helping you but what is the purpose? Would you be more comfortable with the graphical version of Linux?
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: Can't install guest additions.

Post by mpack »

AFAIK, the only way the menu bar will be invisible is if you are running in fullscreen or seamless modes, or if you used the VBoxManage setextradata noMenuBar option described in the user manual. But if you created this VM then you ought to know if you did any of that, and if so you haven't mentioned it above.
rkb
Posts: 66
Joined: 22. Aug 2012, 20:41

Re: Can't install guest additions.

Post by rkb »

mpack wrote:AFAIK, the only way the menu bar will be invisible is if you are running in fullscreen or seamless modes, or if you used the VBoxManage setextradata noMenuBar option described in the user manual. But if you created this VM then you ought to know if you did any of that, and if so you haven't mentioned it above.
Found the "advanced" settings and got the menu back. But when I click on "Install Guest Additions" I get an error that "Unable to mount the CD/DVD on image C:. . . . ."
Last edited by rkb on 7. Feb 2013, 18:08, edited 1 time in total.
rkb
Posts: 66
Joined: 22. Aug 2012, 20:41

Re: Can't install guest additions.

Post by rkb »

Perryg wrote:Oh my. From the sounds of it you don't really know Linux or their commands. I don't mind helping you but what is the purpose? Would you be more comfortable with the graphical version of Linux?
I know the commands but the device is not there.
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: Can't install guest additions.

Post by mpack »

rkb wrote:So given that it is gone. How do I get it back?
If running in fullscreen or seamless mode then the aforesaid Devices menu is available on the mini toolbar (bring VM window to foreground and hover over gray line at bottom). Or you can use the host+F or host+L commands to come out of fullscreen/seamless modes. If you used setextradata then you'll need set it again, without the noMenuBar option.

I had a feeling of deja vu. I see you have had at least one previous thread about installing guest additions, apparantly you were able to do it before?
rkb
Posts: 66
Joined: 22. Aug 2012, 20:41

Re: Can't install guest additions.

Post by rkb »

mpack wrote:If running in fullscreen or seamless mode then the aforesaid menu is available in the mini toolbar (bring VM window to foreground and hover over gray line at bottom). If you used setextradata then you'll need set it again, without the noMenuBar option.

I had a feeling of deja vu. I see you have had at least one previous thread about installing guest additions, apparantly you were able to do it before?
I recreated a new image and I cannot do it again.
Post Reply