LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-15-2010, 10:37 AM   #1
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Rep: Reputation: 30
How to RDP into virtualbox when no network cable is plugged in?


Hello, I have a kubuntu 10.04 box and it runs virtualbox with windows 2000. For the most part, the network cable will be plugged in and i should be able to rdp into my windows 2000 install just fine, however, for testing purposes and for backup server testing, I will not have the cable plugged in all of the time.

How would I rdp into that windows 2k install on the same machine if no cable is plugged into the ethernet port?

I have both the kubuntu install and the windows 2k install setup with static ip's, but it is not working.
-Thanks
 
Old 12-15-2010, 11:03 AM   #2
thesnow
Member
 
Registered: Nov 2010
Location: Minneapolis, MN
Distribution: Ubuntu, Red Hat, Mint
Posts: 172

Rep: Reputation: 56
Why do you want to RDP to it if it's already running a console window?

And do you mean the network cable to the Kubuntu machine is unplugged, or the "cable" in the guest OS?
 
Old 12-15-2010, 11:16 AM   #3
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
Well, the vm is not run in a window, it's run automatically when the kubuntu machine starts up and the only way to access it is via rdp'ing in.

It's started with a boot script using this command: VBoxVRDP -startvm "win2k"

This way i can fire up the kubuntu machine and the vm will start automatically without me logging into kubuntu.

I could always open it up via the virtualbox gui but i'd have to kill the win2k's vm process to close it and then i'd be able to open it from the gui.

The cable is unplugged from the kubuntu machine, physically.
 
Old 12-15-2010, 12:16 PM   #4
thesnow
Member
 
Registered: Nov 2010
Location: Minneapolis, MN
Distribution: Ubuntu, Red Hat, Mint
Posts: 172

Rep: Reputation: 56
I can't speak with certainty how it is configured on Linux, but in Windows the same is accomplished by specifying VRDP "on" and the port number to run VRDP on (e.g. 12345), then connecting to that port on the localhost:

Code:
vboxheadless -s "10.10 Server" -v on -p 12345
Then open up your RDP client and use localhost:12345 to connect. It does not seem to care if the network cable is unplugged or not.
 
Old 12-15-2010, 02:29 PM   #5
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
Connecting via localhost works with the cable plugged in, but not with it unplugged

Any other ideas?
 
Old 12-15-2010, 03:37 PM   #6
thesnow
Member
 
Registered: Nov 2010
Location: Minneapolis, MN
Distribution: Ubuntu, Red Hat, Mint
Posts: 172

Rep: Reputation: 56
Is RDP listening on the IP tied to the cable? I started one up in linux and it was listening on 0.0.0.0:12345, and that's what I had to use to connect (localhost did not work), but it still worked fine whether or not the cable was plugged in.
 
Old 12-15-2010, 03:39 PM   #7
thesnow
Member
 
Registered: Nov 2010
Location: Minneapolis, MN
Distribution: Ubuntu, Red Hat, Mint
Posts: 172

Rep: Reputation: 56
How do you have the guest networking configured in Virtual Box settings (NAT, Internal, Host-only, etc.)?
 
Old 12-15-2010, 04:45 PM   #8
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
It's setup via bridged and has it's own ip address. Could that be the issue?

Localhost, etc don't work when the cable is unplugged.
 
Old 12-16-2010, 10:08 AM   #9
thesnow
Member
 
Registered: Nov 2010
Location: Minneapolis, MN
Distribution: Ubuntu, Red Hat, Mint
Posts: 172

Rep: Reputation: 56
Yes, that could be the issue. Try changing it to NAT and see if that makes a difference.
 
Old 12-16-2010, 10:20 AM   #10
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
Hmm, that probably won't work. I need to have it bridged so that it appears on the network with an ip address just like all the other computers on the network.
 
Old 12-16-2010, 10:38 PM   #11
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by xmrkite View Post
Hmm, that probably won't work. I need to have it bridged so that it appears on the network with an ip address just like all the other computers on the network.
Then configure the VM with two network adapters.
 
Old 12-17-2010, 11:47 AM   #12
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
If there is only one adapter in the physical machine, can that be done? Or do i need to install a second network adapter?
 
Old 12-17-2010, 03:12 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
Set to local and get any other live cd running on a similar vm and access it that way.
 
Old 12-17-2010, 09:46 PM   #14
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by xmrkite View Post
If there is only one adapter in the physical machine, can that be done? Or do i need to install a second network adapter?
VirtualBox allows up to four virtual network adapters to be defined per VM regardless of the number of real adapters.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Network doesn't work if cable is plugged in at boot (Debian Lenny) Blue Horseshoe Linux - Networking 1 01-20-2010 05:18 AM
Detect network cable being plugged in Vgui Slackware 7 01-03-2009 06:22 AM
Will not connect to the network with the cable plugged in after a reboot accpilot Linux - Networking 8 11-13-2008 06:41 AM
What happens when a network cable is plugged in ? balajipriya Linux - Networking 1 08-12-2004 09:10 AM
dhcpcd, no network cable plugged in meyert Slackware 3 04-28-2004 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:51 PM.

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