-   Linux - Virtualization and Cloud (
-   -   Can't access virtual box (

Timothy.u 09-25-2012 07:41 AM

Can't access virtual box
Hi everyone,

I just made a new virtualbox, attached hard disks and other stuff, the problem is, I'm doing it on server only with CLI and I can't seem to be able to connect to my new machine.

Can someone tell me is it possible to set an IP for damn machine that I can RDP to it from another computer?...

And no, this didn't help:
VBoxManage modifyvm $VM_name --vrde on --vrdeport 5012 --vrdeaddress preffered_ip

TobiSGD 09-25-2012 08:03 AM

If you use RDP to connect to the machine you have to connect to the host, not the guest. You don't have to set an IP for the host beforehand.

Timothy.u 09-25-2012 08:38 AM

I figured it out later, yes, I need to set a hosts IP, but it didn;t work yet. So the situation looks like this:

My interface [Machine on which I'm trying to run new VM]:

eth0.200:0 Link encap:Ethernet HWaddr 50:e5:49:c6:b4:9b
inet addr: Bcast: Mask:

Reply from another local machine:

PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=64 time=0.081 ms

So, the connection is established. It's just for check, I'm gonna try RDP from local machine, that reply was to check if connection is good.

So, what do I do, i set vrde ON like this with my hosts macine IP:

VBoxManage modifyvm webdev --vrde on --vrdeaddress

Then with showvminfo check further:

NIC 1: MAC: 080027A67F23, Attachment: Bridged Interface 'eth0.200', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny
VRDE: enabled (Address, Ports 3389, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled

Then, when I start VM i should be able to RDP to it, and that's what I get:

VBoxManage startvm webdev --type headless
Waiting for VM "webdev" to power on...
VM "" has been successfully started.
timothy@Noriko ~ $ rdesktop -a 16 -N
Autoselected keyboard map en-us
ERROR: unable to connect
timothy@Noriko ~ $

So how come I can't connect to it?.. I feel like I'm missing something, on Virtualbox man pages chapter 7 I feel running in circles, it makes me thing i need to install some kind of VRDP package on host for vms, in that chapter is said:

"For maximum flexibility, starting with VirtualBox 4.0, VirtualBox implements remote machine display through a generic extension interface, the VirtualBox Remote Desktop Extension (VRDE). The base open-source VirtualBox package only provides this interface, while implementations can be supplied by third parties with VirtualBox extension packages, which must be installed separately from the base package. See the section called “Installing VirtualBox and extension packs” for more information."

Than i click on a link where info about package should be, and that's what I find:

"VirtualBox Remote Desktop Protocol (VRDP) support; see the section called “Remote display (VRDP support)”." - And that section link, links exactly back from where the link was suggested...

i feel lost and don;t know what to do, please help :))

TobiSGD 09-25-2012 09:30 AM

Do you have the Virtualbox extensions installed?
Assuming that you have the latest version of Virtualbox (4.2) you can download and install it with

VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.0-80737.vbox-extpack

You need to be root to install the extension pack.

Timothy.u 09-26-2012 12:09 AM

Hi, thnx for reply, my version is 4.0. something, so I found right package, and when I try to install it:

"VBoxManage: error: Failed to install "/root/data/Oracle_VM_VirtualBox_Extension_Pack-4.0.16-75491.vbox-extpack": Extension pack 'Oracle VM VirtualBox Extension Pack' is already installed. In case of a reinstallation, please uninstall it first"

So it appears the problem isn't the extra stuff package... what else could it be?

Timothy.u 09-26-2012 12:17 AM

Sorry to quick reply, it seems i have version mismatch, my ext pack is version 4.2 when vb only 4.0, I'll try to fix this first then post the reply did it help or not :)

Timothy.u 09-26-2012 12:32 AM

Yep, that was the problem, thank U for your help :)

So, if someone ever encounters this kind of problem (and probably will, because I've got mismatched extension together with vb without separate installation)

Check your VB version:

$VBoxManage -v

Check extensions:

$VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 4.2.0
Revision: 80737
Description: USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support.
Usable: false
Why unusable: VBoxExtPackRegister returned VERR_VERSION_MISMATCH, pReg=0000000000000000 ErrInfo='VirtualBox version mismatch - expected 4.2 got 4.0'

uninstall bad package:

$VBoxManage extpack uninstall 'Oracle VM VirtualBox Extension Pack'

go here -> find your version of vb, in version folder find extension pack, copy its link and then wget it and install it:

$VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.0.10-72436.vbox-extpack

Reboot, and U'r ready to go

P.S. I probably need to mention it was on Debian distro :)

TobiSGD 09-26-2012 06:40 AM

Nice to hear that you figured it out and thanks for posting back the solution.

All times are GMT -5. The time now is 10:18 AM.