Page 1 of 1

headless Debain lenny

Posted: 2. Jun 2009, 10:55
by marmellata
I installe VB and now I have 2 guest server. When I log in to the host server via ssh and run VBoxHeadless --startvm "server3" I cant use the shell no more, is there any way to start guest server but then still use host server's shell?
the second question is I have 2 guest server right but I cant run both with port 3389, so I changed server2 port to 3387, but then I cant log in to that server, from host server:
ssh 10.146.26.9
ssh: connect to host 10.146.26.9 port 22: No route to host
ssh and openssh-server are installed on server2

Re: headless Debain lenny

Posted: 2. Jun 2009, 11:04
by Sasquatch
The command to run a VM in headless mode has been given here before, use VBoxManage startvm -type vrdp, or similar. Just browse a few topics down the list, should come up.

As for your access, VRDP is not the same as SSH. So changing the VRDP port is nice and all, but you need an RDP program to be able to connect to the VM that way. If you want to SSH to it, you have to either forward the correct port as described in the Manual when using NAT, or change the network settings of the Guest to use Bridged, which will make the VM act like a normal machine on the network.

Re: headless Debain lenny

Posted: 2. Jun 2009, 12:01
by marmellata
thanks for thee first answer :)
about the second one actually I already have all guest in bridge mode. If I set 3389 port to server2 and stop server3 I can login to server2 via ssh.

Re: headless Debain lenny

Posted: 2. Jun 2009, 12:28
by Sasquatch
That shouldn't be possible. Especially with Bridged, all VMs have their own IP address. The port you set is for VRDP, which you use to connect to using the Host IP.

Re: headless Debain lenny

Posted: 2. Jun 2009, 12:43
by marmellata
you are right.. now everything works fine :mrgreen: , I didnt know how rdp works.
Thanks