LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 09-25-2012, 07:41 AM   #1
Timothy.u
Member
 
Registered: Aug 2011
Location: Lithuania
Distribution: Slackware, Debian, Archlinux
Posts: 44

Rep: Reputation: Disabled
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
 
Old 09-25-2012, 08:03 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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.
 
Old 09-25-2012, 08:38 AM   #3
Timothy.u
Member
 
Registered: Aug 2011
Location: Lithuania
Distribution: Slackware, Debian, Archlinux
Posts: 44

Original Poster
Rep: Reputation: Disabled
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:192.168.1.13 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1


Reply from another local machine:

PING 192.168.1.13 (192.168.1.13) 56(84) bytes of data.
64 bytes from 192.168.1.13: 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 192.168.1.13

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 192.168.1.13, 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 "webdev.svako.lt" has been successfully started.
timothy@Noriko ~ $ rdesktop -a 16 -N 192.168.1.13:3389
Autoselected keyboard map en-us
ERROR: 192.168.1.13: 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 )
 
Old 09-25-2012, 09:30 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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
Code:
wget http://download.virtualbox.org/virtualbox/4.2.0/Oracle_VM_VirtualBox_Extension_Pack-4.2.0-80737.vbox-extpack
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-4.2.0-80737.vbox-extpack
You need to be root to install the extension pack.
 
Old 09-26-2012, 12:09 AM   #5
Timothy.u
Member
 
Registered: Aug 2011
Location: Lithuania
Distribution: Slackware, Debian, Archlinux
Posts: 44

Original Poster
Rep: Reputation: Disabled
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?
 
Old 09-26-2012, 12:17 AM   #6
Timothy.u
Member
 
Registered: Aug 2011
Location: Lithuania
Distribution: Slackware, Debian, Archlinux
Posts: 44

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-26-2012, 12:32 AM   #7
Timothy.u
Member
 
Registered: Aug 2011
Location: Lithuania
Distribution: Slackware, Debian, Archlinux
Posts: 44

Original Poster
Rep: Reputation: Disabled
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
4.0.10_Debianr72436


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.
VRDE Module: VBoxVRDP
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 -> http://download.virtualbox.org/virtualbox/ find your version of vb, in version folder find extension pack, copy its link and then wget it and install it:


$wget http://download.virtualbox.org/virtu...6.vbox-extpack
$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
 
1 members found this post helpful.
Old 09-26-2012, 06:40 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Virtual Box Centos 6.2 x86 Internet Access Issue. dailyoliver Linux - Server 15 03-11-2013 03:19 AM
Access Virtual Box on Local LAN PCs jitenderana Linux - Software 4 03-23-2012 01:04 PM
access virtual box serial port from host wykthorr Linux - Virtualization and Cloud 2 04-05-2010 11:42 PM
can not access usb in virtual box devrieshh Ubuntu 1 05-30-2008 06:53 AM
Virtual Box USB Access Ordinary12 Ubuntu 2 03-01-2008 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration