How to install Virtualbox Guest Additions in Ubuntu
Over the past few weeks I’ve been writing a a guide to installing Ubuntu. The last post in my series wraps up the Virtualbox installation from last month, how to install guest additions. Installing guest additions really completes your virtual XP installation and gives you better display integration (higher screen resolution) and better integration with simple processes like copy and paste, and mouse actions between your two environments. It also allows a “seamless mode” which layers your XP interface over the top of Ubuntu and makes it even easier to switch between the two environments.
How to install guest additions
Once you have your guest Windows operating system installed and running in your Virtualbox console, click Devices>Install Guest Additions

You’ll get this message. Click yes to download the CD image from the internet.

The download takes only a few minutes (depending on your internet connection) and you should see a progress bar down in the bottom right hand corner of your virtualbox console.

Once the image has been downloaded, virtualbox will ask if you’d like to register the cd image on the guest machine’s virtual CD drive. Click mount.

The setup should automatically run. Follow the prompts, and setup will begin.

Agree to the licence agreement and continue.

Seems Microsoft hasn’t passed the Vbox additions graphics driver through it’s compatibility testing… Don’t worry it should work perfectly well. Click continue.

You’re all done. Click finish and restart your machine.
When you restart your virtual machine, go straight to the display properties and sort that screen resolution out!

Guest additions will give you some pretty cool new tricks. For one, you can now run your machine in fullscreen mode. Combined with compiz 3d, you’ll be able to switch between the interfaces very easily.
I have set up full screen mode by pressing my host button (F12) and “F”. You can choose your own host button and it just helps switch between Ubuntu and XP, unless you’re running in seamless mode. Seamless mode can be activated by pressing host>L
Have fun!


34 Responses to “How to install Virtualbox Guest Additions in Ubuntu”
Leave a commentWhen I click install guest additions nothing happens. Also my mouse and keyboard are not working in the virtual machine. What am I doing wrong?
Hi Stuart – do you have a USB keyboard / Mouse? That’ll be why (maybe). Take a look at this: http://seogadget.co.uk/enable-usb-support-virtualbox/ – hope that’s useful!
Thanks for this guide. It helped me get through the guest additions piece of this. I run virtualbox (xp pro) inside a ubuntu 8.04 system. The machine is dual boot and I still have most of my files back on my old Windows partition. I can access these just fine in Ubuntu but I can’t mount or figure out how to access these files on my real C: drive. In Ubuntu the location would be: /media/disk
Can I mount this as a drive somehow or at least as a shared folder in virtualbox?
pw
@Paul, Thanks for the comments, I’ll write a post on sharing drives in Virtualbox in the next day or so and ping you a mail (if you left me your address). Right now I’m installing and testing Intrepid Ibex!
Yes, i have the same Problem. In VirtualBox 2.0.4 isn’t any possibility to klick “Devices”. So I will install the GA’s manually.
Heinz
I’m new to Ubuntu Linux but have successfully used Virtualbox on Mac OS X Leopard. Installation of Windows XP inside VB (running in Ubuntu 8.10) was OK but I ran into trouble with the Guest Additions because the download kept timing out. I solved the problem by following the weblink and manually downloading the Guest Additions disk image. I then used ‘CD/DVD mount’ from Virtualbox’s Devices menu to mount the disk image. When I tried the guest additions installation this time it worked (well, actually it worked on the second attempt so was I just lucky?).
I earlier extracted the files/folders from the Guest Additions disk image and tried to manually move them to the lib folder where Virtualbox was searching. I was completely fooled by the permissions for this folder that said I was not the owner even though I am the system administrator. Doubtless I’ll find out why as I explore Ubuntu!
Hi Keith, sounds like you’re getting on very well! Good luck in your Ubuntu journey!
Hi, thanks for the tutorial.
How can I mount the vdi using regular mount command?
Hi there. I’m new to linux and this winxp virtual machine sounds cool. What I’d like to know is if the programs running in this virtual machine work as well as in a normal winxp installation. I know winehq is a good solution for running windows applications on linux but the performances aren’t very good and they don’t work as smooth as in windows.
Thanks.
@pluxon IMO, Wine is ok for lighter apps but at the time of writing this post, I needed a perfect Windows XP environment to run my favourite Windows tools. As far as I’m concerned, Vbox is excellent and i’m always amazed at how quickly it runs! If I were you, I’d test both options and make a decision on which is best for you…
I’m kind of at a loss of what to do. I could not download the guest additions automatically so I clicked the link and downloaded the image file to my desktop. I moved the image file to .VirtualBox as it would have gone to if it had downloaded automatically. I mounted the image file instead of the cdrom. Windows starts up exactly the same as always. I click on devices > Install Guest Additions. Nothing happens. I really can’t think of what to do next.
Solved….
I read in the user manual http://download.virtualbox.org/virtualbox/2.0.2/UserManual.pdf that if the guest additions don’t begin to install after mounting, then you have to go to the guests CD drive and run them from there.
Hi Rebecca, thanks for adding the solution! Happy Vboxing!
I’ve been using Ubuntu for about 6 months now, just recently updated to Ibex. I’ve got a dual boot AMD machine with XP pro and Ibex. I just installed the latest VBox (2.1 I think), and got XP Pro working just fine. I’m in the (long and tediuos) process of updating the virtual Windows. I’ve got guest additions working, it’s great. I had no problem with any of the installs so far. The guest additions was part to the package when I got the VBox software. I’m really happy with how things are working out.
OH yeah….with Ibex and the latest VBox, the tutorial above doesn’t match what I did for guest additions.
thanks great advice spot on (XP on xVMVB on ubuntu 8.04)
@Scott – thanks for the heads up Scott! I’ll take a look at this when I get some time and update the “how to” ready for Ibex.
@Keith The download fails because the server cant connect to the Vbox running in 8.10 (Version im using.) You will have to click the blue link in the error message that appears and DL it from there. Good luck
Hi there!
Great News!
After a great headache about installing Guest Additions for Windows on Linux Virtualbox,
I figured it out.
In some cases you will not be prompted with the installer of the Guest Additions.
But…
Good Luck, your suffering has gone!
Do the very same process:
1 –> Devices
2 –> Mount CD/DVD ROM
3 –> CD/DVD ROM
4 –> Click VBoxGuestAdditions.iso
5 –> Click Select
*note: Perhaps an error is prompt, continue clicking ok
At this point the problem is that nothing happens because the autorunner isn’t working.
So, let’s do it by keyboard
6 –> Press Windows + E to open the Explorer or Go to it by clicking Window key than navigate with help of arrows to My Computer.
*This done, you will see a virtual driver called “Virtual Guest Additions”.
So go ahead and with help of tab key focus on it and click Enter.
Now using tab key, Accept the Terms bla bla bla and go on, reboot and after this you will see all the addition s available
Hope You had help with it!
Hi,
i followed the tutorial.
im running windows xp under virtualbox 2.1.4 on ubuntu.
after the guest additions were installed succesfully, i still dont get the resolution right. it stays at 800X640 and with 8 bit colors.
i tried reinstalling the additions but i get the same effect.
Hi snipercup – you should be able to adjust the screen resolution normally via the Windows display properties. Does that work?
Using Ubuntu 9.04 host and Windows XP sp 2 guest on VBox 3.0.2
Installed guest additions 3.0.2 and nothing changed.
I can see only the little box near the clock in XP.
“Test Direct3D” button in DirectX 9c is stil inactive
How can I activate Direct3D and OpenGL funcions on guest XP?
Hmm. I don't think Direct X works with the VBox guest additions
Thank you so much, you are the hero for beginners in linux
Thx heaps for these great guides.
http://seogadget.co.uk/how-to-install-virtualbox/
http://seogadget.co.uk/how-to-install-virtualbox-...
they helped me through the lot..
just wondering, Is it possible(or worth it) to install the drivers under winxp…?
i wanta install motherboard and graphics card
oh and another thing if i mount a cd/dvd it shows up in win(virtual) but it doesnt auto play or even install?
Hi There – guest additions should alleviate the need for you to install the motherboard / video card drivers. Don't forget, you're working on a virtual machine inside Ubuntu. That means that the host OS has already taken care of the hardware drivers – where guest additions allows Windows XP to access those resources as if WinXP had its own hardware.
As for the CD thing, I'm not sure what you're trying to do? More info please!
Hope that's useful?
how to make usb drive work in windows running on virtual box?
seems to me that win xp doesn’t access the video resources of the host machine. what it seems to do is, emulate an hardware device: Virtualbox Graphics Adapter. It’s a VGA that also is a VGA. lol…
tho i activated support for Direct3d and hardware acceleration it doesn’t allow Directx applications to run correctly (games for instance). just hope that VBox can evolve in this area!
That’s exactly right Quimkaos – hardware emulation through and through. It’s not quite as powerful although I’m sure there are people out there who do a lot of VM gaming.
that’s what i wanted… doing some VM gaming. but the one i was going for crashes due to directx. Tho VM addictions makes my VM faster and smother!
Hi! I have a problem: when i install guest addition windows xp crash when the desktop appear….
I tryed with 2 different version of windows xp, does anyone else have this problem?
Thanks
I had to install the Virtualbox Guest Additions on my OSX (host) ubuntu (guest) setup. The guest additions come with an auto-run app, which installs the necessary packages, but it doesn’t clearly state that you have to restart the guest OS in order for them to take affect. Keep restarting after each step – you’ll get there in the end
I am new to VirtualBox – I comes with a “Guest Additionas.iso” and I have loaded this.
Is your product different?? How is it different?
My main concern is easy adjustable screen size/resolution.
For example NEW VirtualPC in WIN7 Pro is really seamless – Make any size you like – all tracks// scales. NO side bars to see the “boarder icons” etc. Just can install linux in the new one – tried severl linux distro all the same, shuts down before completion.
does you Guest Additions address this issue well – differently etc.. etc.
Thanks for this. Does anyone know what is the easiest way to mount the windows partition to /media/windows so that I can easily exchange files between windows and linux? I am running Virtual box on Windows and running Ubuntu inside Virtual Box. Thanks. – Arunabh Das