Discussion:
using rdp or other considerations...
jdd
2013-08-30 13:01:41 UTC
Permalink
Hello :-)

I'm building a server with VirtualBox. I'm a long time VirtualBox
user, but still have some problems. I try to document my work here:

http://dodin.org/wiki/index.php?n=Doc.OpenSUSE-small-ThirdEdition

For now I have a working host and a working guest, the two of them
openSUSE 12.3

I can discuss with the guest through ssh.

* If I log to the host with "ssh -X -C" and run VirtualBox, I get the
GUI, and then the guest with xfce, all this perfectly visible on my
home desktop. For configuration purpose it's the best way to work.
But... If I log off from ssh, the server is killed.

* I can use the vboxes init script -or it's systemd counterpart- to
launch the virtual server, but then no way to connect to the xfce gui
(ssh works)

* I can use the various VBoxManage commands (see my page to see the
one I use http://dodin.org/wiki/index.php?n=Doc.VirtualBoxHost) to
start the server or stop it

* some years ago I tryed VNC or Freenix, but connecting to a virtual
machine through virtual interface have several drawbacks (character
set, hot keys...), I would prefere to stay with X11 forwarding

* I can launch the server with VBoxManage, connect to it with ssh -X
-C and use various GUI software (YaST2, for example), but I can't
launch xfce it self. I get error messages and only the taskbar opens,
not the desktop (kde on the home desktop).

By the way the standard way seems to be rdp. But I can't make it work.
krdc ask for user (root), passwd, then do not display anything. Of
course vrdp is activated.

any idea?

thanks
jdd
--
http://www.dodin.org
Matthias Guth
2013-08-30 13:06:03 UTC
Permalink
Hi jdd,
Post by jdd
Hello :-)
I'm building a server with VirtualBox. I'm a long time VirtualBox
http://dodin.org/wiki/index.php?n=Doc.OpenSUSE-small-ThirdEdition
For now I have a working host and a working guest, the two of them
openSUSE 12.3
I can discuss with the guest through ssh.
* If I log to the host with "ssh -X -C" and run VirtualBox, I get the
GUI, and then the guest with xfce, all this perfectly visible on my
home desktop. For configuration purpose it's the best way to work.
But... If I log off from ssh, the server is killed.
* I can use the vboxes init script -or it's systemd counterpart- to
launch the virtual server, but then no way to connect to the xfce gui
(ssh works)
* I can use the various VBoxManage commands (see my page to see the
one I use http://dodin.org/wiki/index.php?n=Doc.VirtualBoxHost) to
start the server or stop it
* some years ago I tryed VNC or Freenix, but connecting to a virtual
machine through virtual interface have several drawbacks (character
set, hot keys...), I would prefere to stay with X11 forwarding
* I can launch the server with VBoxManage, connect to it with ssh -X
-C and use various GUI software (YaST2, for example), but I can't
launch xfce it self. I get error messages and only the taskbar opens,
not the desktop (kde on the home desktop).
By the way the standard way seems to be rdp. But I can't make it work.
krdc ask for user (root), passwd, then do not display anything. Of
course vrdp is activated.
any idea?
thanks
jdd
Matthias Guth
2013-08-30 13:06:45 UTC
Permalink
Hi jdd,

just have a look at RemoteBox:
http://knobgoblin.org.uk/

Maybe this tool could help you.

Best,
Matthias
Post by jdd
Hello :-)
I'm building a server with VirtualBox. I'm a long time VirtualBox
http://dodin.org/wiki/index.php?n=Doc.OpenSUSE-small-ThirdEdition
For now I have a working host and a working guest, the two of them
openSUSE 12.3
I can discuss with the guest through ssh.
* If I log to the host with "ssh -X -C" and run VirtualBox, I get the
GUI, and then the guest with xfce, all this perfectly visible on my
home desktop. For configuration purpose it's the best way to work.
But... If I log off from ssh, the server is killed.
* I can use the vboxes init script -or it's systemd counterpart- to
launch the virtual server, but then no way to connect to the xfce gui
(ssh works)
* I can use the various VBoxManage commands (see my page to see the
one I use http://dodin.org/wiki/index.php?n=Doc.VirtualBoxHost) to
start the server or stop it
* some years ago I tryed VNC or Freenix, but connecting to a virtual
machine through virtual interface have several drawbacks (character
set, hot keys...), I would prefere to stay with X11 forwarding
* I can launch the server with VBoxManage, connect to it with ssh -X
-C and use various GUI software (YaST2, for example), but I can't
launch xfce it self. I get error messages and only the taskbar opens,
not the desktop (kde on the home desktop).
By the way the standard way seems to be rdp. But I can't make it work.
krdc ask for user (root), passwd, then do not display anything. Of
course vrdp is activated.
any idea?
thanks
jdd
jdd
2013-08-30 15:29:15 UTC
Permalink
Post by Matthias Guth
Hi jdd,
http://knobgoblin.org.uk/
Maybe this tool could help you.
may be it's what I seek for (or phpVirtualBox), but it's not that easy
to configure.

I went through alls the steps in the documentation and I get

"Credentials are incorrect or the VirtualBox Web Service is not
running at the specified URL. (https://dodin.info:18083)"

I'm sure the credentials are good (I can ssh to the account), but how
can I make sure the webservice is on the rigth port?

thanks
jdd
--
http://www.dodin.org
Giles Coochey
2013-08-30 15:35:08 UTC
Permalink
Post by jdd
may be it's what I seek for (or phpVirtualBox), but it's not that easy
to configure. I went through alls the steps in the documentation and I
get "Credentials are incorrect or the VirtualBox Web Service is not
running at the specified URL. (https://dodin.info:18083)" I'm sure the
credentials are good (I can ssh to the account), but how can I make
sure the webservice is on the rigth port? thanks jdd
1. Check that iptables is not blocking that port.
2. Run netstat -ta to see that you're listening on that port.
3. Use lsof to check what is listening on that port
--
Regards,

Giles Coochey, CCNP, CCNA, CCNAS
NetSecSpec Ltd
+44 (0) 8444 780677
+44 (0) 7983 877438
http://www.coochey.net
http://www.netsecspec.co.uk
giles-***@public.gmane.org
jdd
2013-08-30 15:52:35 UTC
Permalink
Post by Giles Coochey
1. Check that iptables is not blocking that port.
2. Run netstat -ta to see that you're listening on that port.
3. Use lsof to check what is listening on that port
well, all is ok for this part and the webserver logs shows an error.

00:00:18.415637 SQW01 #### SOAP FAULT: SSL_ERROR_SSL
00:00:18.415639 SQW01 error:1407609C:SSL
routines:SSL23_GET_CLIENT_HELLO:http request [SOAP-ENV:Server]

I will reviewx this... tomorrow

thanks, I beg I will reach the goal soon :-)

jdd
--
http://www.dodin.org
Ian Chapman
2013-08-31 01:42:32 UTC
Permalink
Post by jdd
well, all is ok for this part and the webserver logs shows an error.
00:00:18.415637 SQW01 #### SOAP FAULT: SSL_ERROR_SSL
00:00:18.415639 SQW01 error:1407609C:SSL
routines:SSL23_GET_CLIENT_HELLO:http request [SOAP-ENV:Server]
I will reviewx this... tomorrow
thanks, I beg I will reach the goal soon :-)
Looks like you're trying to run it over SSL? I would try without SSL
first. What does your /etc/default/virtualbox file look like?
--
Ian Chapman.
jdd
2013-08-31 14:47:35 UTC
Permalink
Post by Ian Chapman
Looks like you're trying to run it over SSL? I would try without SSL
first. What does your /etc/default/virtualbox file look like?
yes.

I still can't connect with remotebox, but I could with VNC, freenx and
remmina, so I beg you are right and there is something broken I have
to review - but the remotebox doc is pretty long.

I fugured out that I had misunderstood the virutalbox doc. They said
that the extension pack was now available for the opensource version.
As I had no pack in my openSUSE sofware list, I begged it was in the
same package. Being it possible to tick rdp in VirtualBox GUI added to
this.

and no. I had to install the pack manually, after what remmina could
connect to the running machine, so rdp works.

jdd
--
http://www.dodin.org
jdd
2013-08-31 17:58:50 UTC
Permalink
Post by jdd
I still can't connect with remotebox,
now I can (without ssl)

however it's not what I seek for, I fear.

My virtualboxes are launched at server start by the vboxes service.

I could manage it to use VBoxManage or VBoxHeadless, but noe of them
allow the GUI to connect to the running vm...

is there a way to connect as if it was launched by the GUI? or to
start the GUI with the relevant command line to allow subsequent
connection to manage the running virtual box?



thanks
jdd
--
http://www.dodin.org
Matthias Guth
2013-08-31 18:43:49 UTC
Permalink
Hmmm, you should be able to use remotebox to connect directly to the VMs
via RDP ("Remote Display"-Button):

Loading Image...

Maybe you have to apply some changes to the rdesktop command? Have a
look at 5.1 and 5.4 of the remotebox-documentation. There are some hints
on the options.

Best,
Matthias
Post by jdd
Post by jdd
I still can't connect with remotebox,
now I can (without ssl)
however it's not what I seek for, I fear.
My virtualboxes are launched at server start by the vboxes service.
I could manage it to use VBoxManage or VBoxHeadless, but noe of them
allow the GUI to connect to the running vm...
is there a way to connect as if it was launched by the GUI? or to
start the GUI with the relevant command line to allow subsequent
connection to manage the running virtual box?
thanks
jdd
--
Matthias Guth
Sofware Developer & System Administrator

Karl Jaspers Centre for Advanced Transcultural Studies
Voßstraße 2, Building 4400
Room 005b
69115 Heidelberg

Email: ***@asia-europe.uni-heidelberg.de
Phone: +49 (0) 6221 54 4092


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
VBox-users-community mailing list
VBox-users-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vbox-users-community
_______________________________________________
Unsubscribe: mailto:vbox-users-community-***@lists.source
jdd
2013-08-31 19:47:42 UTC
Permalink
Post by Matthias Guth
Hmmm, you should be able to use remotebox to connect directly to the VMs
http://knobgoblin.org.uk/screenshots/fedora2.jpg
Maybe you have to apply some changes to the rdesktop command? Have a
look at 5.1 and 5.4 of the remotebox-documentation. There are some hints
on the options.
all these buttons a greyed out.

it's even odder, I do not have the list of guests (I have it with
VirtualBox), so I can't even start the box

I just can create a ne one

work for tomorrow moring :-)

thanks
jdd
--
http://www.dodin.org
Matthias Guth
2013-08-31 20:49:01 UTC
Permalink
Ah if you don't have a list it's probably you created the VMs with a
different user than you log in with RemoteBox.

If you try it with the VM-creation-user they should be displayed and
accessible.

Best,
Matthias
Post by jdd
Post by Matthias Guth
Hmmm, you should be able to use remotebox to connect directly to the VMs
http://knobgoblin.org.uk/screenshots/fedora2.jpg
Maybe you have to apply some changes to the rdesktop command? Have a
look at 5.1 and 5.4 of the remotebox-documentation. There are some hints
on the options.
all these buttons a greyed out.
it's even odder, I do not have the list of guests (I have it with
VirtualBox), so I can't even start the box
I just can create a ne one
work for tomorrow moring :-)
thanks
jdd
--
Matthias Guth
Sofware Developer & System Administrator

Karl Jaspers Centre for Advanced Transcultural Studies
Voßstraße 2, Building 4400
Room 005b
69115 Heidelberg

Email: ***@asia-europe.uni-heidelberg.de
Phone: +49 (0) 6221 54 4092


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
VBox-users-community mailing list
VBox-users-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vbox-users-community
_______________________________________________
Unsubscribe: mailto:vbox-users-community-***@li
Ian Chapman
2013-09-01 03:07:51 UTC
Permalink
Post by jdd
all these buttons a greyed out.
it's even odder, I do not have the list of guests (I have it with
VirtualBox), so I can't even start the box
I just can create a ne one
As Matthias said you're almost certainly using the wrong user with the
web service. The important part is the web service should run as the
user whose virtual machines you want to see. You then connect to the web
service with RemoteBox and log in with that user's credentials.

Whats does the output of

ps -aef | grep -i vboxwebsrv

show on the server?
--
Ian Chapman.
jdd
2013-09-01 07:59:47 UTC
Permalink
Post by Ian Chapman
As Matthias said you're almost certainly using the wrong user with the
web service. The important part is the web service should run as the
user whose virtual machines you want to see. You then connect to the web
service with RemoteBox and log in with that user's credentials.
by the way, no.

I don't know how I managed to do this, but in fact to run remotebox, I
had to set the /etc/default/virtualbox web server user to the owner of
the virtual machines, but log in with an other user :-(

but now I could make the config better and it almost works.

I can use remotebox to log into the server and launch the virtual
machine, but:

* any attempt to configure the (stopped) virtual machine give a crash.
I have only access to the first tab in the configure window, if I clic
on any other tab the window go to an infinite loop and I have to kill
remotebox to continue.

* the remote virtual windows is much to large to my screen, but I
think it's only a rdesktop option to find

* remotebox keep showing me all the server url I keyed in, including
buggy ones and I don't have yet found where to remove old ones :-(

But I noticed also that the virtual machine start is much less
important there than it used to be for me.

The other virtual server I manage (for my Linux Users Group) is an old
computer hosted in a drawer in a public house, so it happen pretty
often than somebody shuts off the AC for all the house, stopping the
server, so it have to restart gracefully (and it does), when my own
server is hosted in a professional datacenter and have no reason to
switch off (if not for hardware failure)

thanks all :-)

jdd
--
http://www.dodin.org
Ian Chapman
2013-09-01 03:14:30 UTC
Permalink
Post by jdd
Post by jdd
I still can't connect with remotebox,
now I can (without ssl)
however it's not what I seek for, I fear.
You can use SSL with the web service and RemoteBox but unfortunately
it's not trivial. Chapter 4.1.2 in the RemoteBox manual explains how to
use SSL but you're better of getting it working without SSL first.
Post by jdd
My virtualboxes are launched at server start by the vboxes service.
I could manage it to use VBoxManage or VBoxHeadless, but noe of them
allow the GUI to connect to the running vm...
is there a way to connect as if it was launched by the GUI? or to
start the GUI with the relevant command line to allow subsequent
connection to manage the running virtual box?
I assume the vboxes services starts the VMs in headless mode. That
essentially means the VMs are running but you don't see their display
window. In order to see their display window, you connect via RDP. The
guest should have it's RDP server enabled to use this.
--
Ian Chapman.
jdd
2013-09-01 08:05:15 UTC
Permalink
Post by Ian Chapman
You can use SSL with the web service and RemoteBox but unfortunately
it's not trivial. Chapter 4.1.2 in the RemoteBox manual explains how to
use SSL but you're better of getting it working without SSL first.
right, I followed the tutorial but with no good result (yet)

thanks
jdd
--
http://www.dodin.org
Ian Chapman
2013-09-01 09:40:48 UTC
Permalink
Post by jdd
Post by Ian Chapman
You can use SSL with the web service and RemoteBox but unfortunately
it's not trivial. Chapter 4.1.2 in the RemoteBox manual explains how to
use SSL but you're better of getting it working without SSL first.
right, I followed the tutorial but with no good result (yet)
But you don't post any output/results and the requests for some
additional information have gone ignored, so it's pretty hard to help.
--
Ian Chapman.
jdd
2013-09-01 09:48:00 UTC
Permalink
Post by Ian Chapman
But you don't post any output/results and the requests for some
additional information have gone ignored, so it's pretty hard to help.
I did not yet try again ssl, and yesterday problem are solved

thanks
jdd
--
http://www.dodin.org
Trond Husø
2013-09-01 12:04:18 UTC
Permalink
Post by jdd
Post by Ian Chapman
But you don't post any output/results and the requests for some
additional information have gone ignored, so it's pretty hard to help.
I did not yet try again ssl, and yesterday problem are solved
thanks
jdd
Dear jdd,

Glad to hear you have solved one problem.

If you have a log on how the problem was solved - and it is part of the
problem you have reported to the list, it is nice to know the solution.
Just in case someone else has a similar problem.

Best

Trond



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
VBox-users-community mailing list
VBox-users-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vbox-users-community
_______________________________________________
Unsubscribe: mailto:vbox-users-community-reque

Loading...