[Solved]How to you install guest additions on a headless VM?

Discussions about using Windows guests in VirtualBox.
Post Reply
ToddAndMargo
Posts: 306
Joined: 6. Aug 2007, 02:24

[Solved]How to you install guest additions on a headless VM?

Post by ToddAndMargo »

Hi All,

Guest: Windows server 2003
Host: CentOS 5.4 (Linux)

I have an rdesktop (Linux rdp connector) connection to a headless Windows 2003 Server at one of my customer's sites. I want to upgrade the Guest Additions. How do I do this?

Many thanks,
-T
Last edited by ToddAndMargo on 22. Nov 2009, 05:38, edited 1 time in total.
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: How to you install guest additions on a headless VM?

Post by MarkCranness »

Attach the Guest Additions ISO to the VM before starting it and then, in the VM, navigate to the DVD drive letter and manually run the setup program.

Or (on the host) extract all files from the Guest Additions ISO to a Shared Folders or network share folder visible to the VM and manually run the install exe.
(The ISO is in the same folder as the VirtualBox executables on the host, and 7-Zip will open it like a ZIP file, or probably you can mount the ISO in CentOS.)
ToddAndMargo
Posts: 306
Joined: 6. Aug 2007, 02:24

Re: How to you install guest additions on a headless VM?

Post by ToddAndMargo »

MarkCranness wrote:Attach the Guest Additions ISO to the VM before starting it and then, in the VM, navigate to the DVD drive letter and manually run the setup program.

Or (on the host) extract all files from the Guest Additions ISO to a Shared Folders or network share folder visible to the VM and manually run the install exe.
(The ISO is in the same folder as the VirtualBox executables on the host, and 7-Zip will open it like a ZIP file, or probably you can mount the ISO in CentOS.)
I was afraid you were going to say that. I do not have remote access to the host and I will not be on site for two weeks (Thanksgiving holiday and all).

Thank you for the excellent directions.

-T
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: How to you install guest additions on a headless VM?

Post by MarkCranness »

If you have the ISO where you are now (you could always install VirtualBox locally to get the ISO), could you extract the files from it locally, upload them to rapidshare (or similar) then download them to the guest OS from rapidshare to a temp folder then run them?

Using 7-Zip to look inside the ISO now, it seems likely you would only need to upload/download one EXE file... <6MB.
With standard 10MB email size limits, you may be able to ZIP and email the EXE to an account that the guest OS can access.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to you install guest additions on a headless VM?

Post by Sasquatch »

Or, grab the ISO from http://download.virtualbox.org/virtualbox from the Guest itself, extract the file you need and install it. No need to upload anything or email it to yourself.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
MarkCranness
Volunteer
Posts: 875
Joined: 10. Oct 2009, 06:27
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows Server 2008 R2; Ubuntu 11.04; Windows 2000 Server; Windows XP

Re: How to you install guest additions on a headless VM?

Post by MarkCranness »

Sasquatch's suggestion is likely the best, but I've been thinking of alternatives... (my head has exploded :shock:)

Are you connecting to the RDP server built into VirtualBox on the guest, or are you connecting to the RDP server built-in to Windows Server 2003?

If the latter, and the server is configured to allow it, then you can (probably...) add a local folder to rdesktop as a redirected network share that should then be available on the guest.

Code: Select all

rdesktop -r disk:<sharename>=<path> ... 
... on the server, map a drive to a share named: <sharename>
ToddAndMargo
Posts: 306
Joined: 6. Aug 2007, 02:24

Re: How to you install guest additions on a headless VM?

Post by ToddAndMargo »

MarkCranness wrote:

Code: Select all

rdesktop -r disk:<sharename>=<path> ... 
... on the server, map a drive to a share named: <sharename>
Hi All,

Got it done. Mark got me to thinking. Actually, Mark gave me one of those "duh" moments. I have several Windows VM's running on my local machine, so I went into Virtual XP, found the Windows guest additions .exe and copied it to my rdesktop shared folder on my host. I have a folder share set up on my host to use with rdesktop, shared the way Mark pointed out. I share a printer that way too. Then I rdesktop'ed to my customer's Terminal Server (TS) (also a VBox VM). I proceeded to copy a simple jpeg to the TS' desktop. (You have to copy from your local rdesktop share to a local drive on the TS the first time you copy, or you loose your shared drive connection. It is a bug in rdesktop. After you do that once, you can copy however you want.) So I copied the guest addition .exe from my rdesktop shared folder on my machine to the customer's "drivers" network drive on the TS. Now the guest additions was available the both VM's at my customer's site. From my rdesktop session, I VLNC'ed to the other server and installed the guest additions from the "drivers" share. And, I finished by installing the guest additions on the TS.

I made this all harder in my mind then I had to. Thank you all for helping me think this through. :-)

-T
Post Reply