#henrik

development and technology stuff

VirtualBox 3.0.8 - Windows 7 64bit Host

I had a strange behavior when I migrated VirtualBox to Windows 7. A 32 bit linux guest (CentOS, Ubuntu) started on Windows 7 resulted in a high CPU load when the guest was just idling around --> 30 to 40 % CPU utilization. The solution for my problem was to enable a second CPU for the guests. This simple change resulted in a much lower CPU utilization when the guest was idle --> 3 to 5 % CPU.

Filed under  //   Linux   VirtualBox  

VirtualBox > tunneling SSH

VirtualBox has a number of networking options, default is NAT. Unlike with VMWare you cannot access the guest network ports. A possible solution is to use briged networking - the guest acts like a new node on your network. This was not the way I wanted it - I was looking for a way to achieve the VMWare-like behavior. I found Marco's "My.Debian.": There is a VBoxManage command to enable port forwarding to your running guest. You can find the details here. Basically you have to define the HostPort

VBoxManage setextradata 
 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222

the GuestPort

VBoxManage setextradata 
 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22

and the protocol used:

VBoxManage setextradata 
 "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP

The settings are stored in the XML definition of your vm.

Ready to go - using SSH you can tunnel all the required ports from your guest!

Filed under  //   Development   Linux   VirtualBox  
Posted June 21, 2009