LinuxQuestions.org
Review your favorite Linux distribution.
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 04-27-2011, 09:20 AM   #1
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
Problem to connect to headless Virtualbox 4.0.6 with rdesktop: Connection refused


I am currently trying to learn how to run VMs on a headless machine and connect to them with rdesktop.
For a first test I installed Virtualbox 4.0.6 (latest version, from the oracle website) on a Slackware -current 32 bit machine that doesn't run headless, so that I can test the VM in the "normal" mode. Installation went fine, no problems here.

After installation I created a VM (for use with Puppy Linux as a test) with the following commands:
Code:
VBoxManage createvm --name "Puppy" --ostype "Linux26" --register
VBoxManage modifyvm "Puppy" --memory 256 --acpi on --boot1 dvd --nic1 nat
VBoxManage storagectl "Puppy" --name "IDE Controller" --add ide --controller PIIX4
VBoxManage storageattach "Puppy" --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium /home/tobi/lupu-520.iso
VBoxManage modifyvm "Puppy" --vrdeauthtype none
All commands worked I had no error-messages.
Running the VM from the host (means not in headless mode) works flawlessly.

I then started the VM in headless mode with
Code:
VBoxHeadless --startvm "Puppy"
Here also no error messages, the output was:
Code:
Oracle VM VirtualBox Headless Interface 4.0.6
(C) 2008-2011 Oracle Corporation
All rights reserved.
and if I start the GUI of Virtualbox it shows a running Puppy Linux in the preview window.

I then tried to connect to the machine with
Code:
rdesktop -a 16 -N localhost
rdesktop -a 16 -N localhost:3389
from the host. I also tried it with
Code:
rdesktop -a 16 -N dragon
rdesktop -a 16 -N dragon:3389
from a remote machine (Slackware64 -current).

All I get every time is
Code:
ERROR: connect: Connection refused
I also tried it with KRDC and all I get is a blue window, no error messages.

I looked at the settings of the VM using the Virtualbox GUI and set the port manually to 3389, because the port was not specified there. That didn't help.

I am somewhat stuck here, I googled for that problem and searched on this forum, but I didn't find a solution.

May be someone had the same problem and can point me to a solution.

Thanks in advance.
 
Old 04-28-2011, 08:59 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148

Original Poster
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Sometimes I am really dumb. Even though it is clearly stated in the users manual of Virtualbox that the extension pack has to be installed to work with headless servers I just forgot that.
Silly me.
 
Old 04-29-2011, 08:25 AM   #3
thinmintaddict
LQ Newbie
 
Registered: Apr 2011
Location: Austin, TX
Distribution: Arch Linux
Posts: 12

Rep: Reputation: 6
glad you got it figured out :-). If you're planning on running headless, look into phpVirtualBox, its a WebGUI for VB, makes a lot of common tasks easier.
 
1 members found this post helpful.
Old 04-29-2011, 09:14 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148

Original Poster
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Thanks for that hint, I will have a look at it.
 
  


Reply

Tags
connection, error, headless, virtualbox


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
i am getting problem to connect ftp.connection refused is showing san_singh97 Linux - Newbie 1 08-01-2008 01:20 AM
rdesktop shows refused connection on Ubuntu 7.10 kmiyasar Linux - Software 1 05-26-2008 06:47 AM
rdesktop stopped working - ERROR: connect: Connection refused donraja Linux - Software 6 02-26-2008 07:39 PM
DNS Problem - rndc: connect failed: connection refused krishvij Linux - Newbie 2 04-25-2005 07:40 AM
rdesktop connection refused SlipAway172 Linux - Software 1 12-15-2004 04:03 PM

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

All times are GMT -5. The time now is 12:59 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