Headless VirtualBox

Posted by Omer Osman on January 3, 2010

I’m currently laying out a DSP/FPGA board to interface to the MUSAMP board below for real-time signal processing. I’m laying out the schematics and PCB layout using gEDA (GPL Electronic Design Automation) tools. I originally started working on gEDA through a SuSE VirtualBox virtual machine on a Mac OSX host.

The Mac OSX host is on a Macbook Pro, which is naturally somewhat limited in resources compared to desktops. In addition, I tend to have my spec sheets open through spaces. Zooming in and out in gschem and flipping between spec sheets wasn’t as responsive as I hoped.

After some trouble migrating the VirtualBox ‘Appliance’ to my Windows 7 desktop (required an NTFS partition), I started using ‘Headless’ mode in VirtualBox. ‘Headless’ starts the virtual machine in the background, which can then be accessed using Windows’ RDP protocol (the standard windows remote desktop software).

A few things of note, Windows 7 uses port 3389 for remote desktop, which is the same as the default port in VirtualBox. Change the port, and make sure your firewall lets the chosen port (in TCP) through.

Execute in command prompt

%VirtualBox Installation%/VBoxHeadless –startvm “VirtualMachineNameHere” –vrdp=config

Choose a remote desktop client for your remote computer (TSclientX is the only Mac OSX client that worked with VirtualBox, CoRD worked only for getting to Windows 7).

If it works, make a shortcut to the above command with cmd.exe as a prefix.

 

EDIT #1: make sure to install VBoxGuestAdditions. You can then change the resolution from your RDP client by

$ sudo /opt/VBoxGuestAdditions-3.x.x/bin/VBoxControl guestproperty set /VirtualBox/GuestAdd/Vbgl/Video/SavedMode 848x480x32

Google Buzz

Comments (4)

  • Headless mode or not, doesn’t the gEDA suite support X11 for its gui applications? If that is the case, couldn’t you just use ssh+x11 to run the software in OSX?

  • sure, but my host computer is Windows 7. I would still need the virtual machine; native or remote X11, is a matter of choice.

  • I need to educate you on the finer points of using a linux based desktop (unbuntu) for everything.

    My workshop runs Windows7 because Corel / Epilog only have windows based support for now :/

    Ril3y

  • actually, the ‘server’ is my brother’s watercooled gaming box. i liberated a processor for the masses.

    no hickups when compiling in the vbox and him playing a racing game. =)

Do you have anything to say?

Powered by Wordpress and Stripes Theme Entries (RSS) | Comments (RSS)

Bad Behavior has blocked 88 access attempts in the last 7 days.