Display/Console for HVM domUs
Forwarding to dev list.
/Jd
jdsw <[email protected]> wrote: Date: Thu, 9 Nov 2006 18:37:07 -0800 (PST)
From: jdsw <[email protected]>
Subject: Display/Console for HVM domUs
To: XenUsers <[email protected]>
Hi
I have couple of questions on displays under HVM
1. When I kill window of DomU with sdl=1, the dom also dies... Is this a bug ? or expected behaviour. (quite annoying)
2. How do I determine the display number for DomUs running with vnc ? For me, the vnc display numbers are determined by the order in which the domUs were started. This is highly inconveniernt. I tried the vncdisplay=5 in the domu config file but it does not help. Also, xm list -l domname also does not contain any indication of what display is being used ? I want to programatically determined the display number.
Thanks
/Jd
---------------------------------
Want to start your own business? Learn how on Yahoo! Small Business.
---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · jdsw
Forwarding to dev list.
/Jdjdsw <[email protected]> wrote: Date: Thu, 9 Nov 2006 18:37:07 -0800 (PST)
From: jdsw <[email protected]>
Subject: Display/Console for HVM domUs
To: XenUsers <[email protected]>
Quoted 4 lines
Hi
I have couple of questions on displays under HVM
1. When I kill window of DomU with sdl=1, the dom also dies... Is this a bug ? or expected behaviour. (quite annoying)
Its expected - whether its desirable is a completely different matter. I question the usefullness of SDL at all because of its dependance on having a connection to the X server available form the shell in which you launch the guest. I can't imagine how this will ever work once XenD has support for managing inactive domains and stopping/starting them via the XML-RPC interface - since you'll not even have the SSH forwarded display anymore.
Quoted 4 lines
2. How do I determine the display number for DomUs running with vnc ? For me,
the vnc display numbers are determined by the order in which the domUs were started. This is highly inconveniernt. I tried the vncdisplay=5 in the domu config file but it does not help.
If you specify 'vncunused=1' in the config file it will allocate the first unused port number counting from 5900. If you want to specify an explicit display then set 'vncdisplay=5' and 'vncunused=0'.
Quoted 2 lines
Also, xm list -l domname also does not contain any indication of what display
is being used ? I want to programatically determined the display number.
The info on what port is being listened on is not exposed by either xm or XenD. Instead it is hidden away in xenstore.
# xenstore-ls /local/domain/1 | grep vnc
vnc-port = "5902"If you have libvirt installed, then it is also available when using virsh command to view an XML dump of a domain, eg
# virsh dumpxml demovm | grep graphics
<graphics type='vnc' port='5902'/>Regards,
Dan.
Signature · 4 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
Thanks Daniel. This clarifies.
I will give vnc stuff a shot.
It would be convenient to have vnc port number/display number available in the XML-RPC.
Thanks
/Jd
Quoted 8 lines · jdsw
Forwarding to dev list.
/Jdjdsw wrote: Date: Thu, 9 Nov 2006 18:37:07 -0800 (PST)
From: jdsw
Subject: Display/Console for HVM domUs
To: XenUsers
Quoted 4 lines
Hi
I have couple of questions on displays under HVM
1. When I kill window of DomU with sdl=1, the dom also dies... Is this a bug ? or expected behaviour. (quite annoying)
Its expected - whether its desirable is a completely different matter. I question the usefullness of SDL at all because of its dependance on having a connection to the X server available form the shell in which you launch the guest. I can't imagine how this will ever work once XenD has support for managing inactive domains and stopping/starting them via the XML-RPC interface - since you'll not even have the SSH forwarded display anymore.
Quoted 4 lines
2. How do I determine the display number for DomUs running with vnc ? For me,
the vnc display numbers are determined by the order in which the domUs were started. This is highly inconveniernt. I tried the vncdisplay=5 in the domu config file but it does not help.
If you specify 'vncunused=1' in the config file it will allocate the first unused port number counting from 5900. If you want to specify an explicit display then set 'vncdisplay=5' and 'vncunused=0'.
Quoted 2 lines
Also, xm list -l domname also does not contain any indication of what display
is being used ? I want to programatically determined the display number.
The info on what port is being listened on is not exposed by either xm or XenD. Instead it is hidden away in xenstore.
# xenstore-ls /local/domain/1 | grep vnc
vnc-port = "5902"If you have libvirt installed, then it is also available when using virsh command to view an XML dump of a domain, eg
# virsh dumpxml demovm | grep graphics
Regards,
Dan.
Signature · 14 lines
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| _______________________________________________ Xen-devel mailing list [email protected] http://lists.xensource.com/xen-devel --------------------------------- Access over 1 million songs - Yahoo! Music Unlimited.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Is anyone considering FreeNX in addition to VNC?
Peace.
Andrew
Quoted 48 lines · Daniel P. Berrange
Quoted 8 lines · jdsw
Forwarding to dev list.
/Jdjdsw <[email protected]> wrote: Date: Thu, 9 Nov 2006 18:37:07 -0800 (PST)
From: jdsw <[email protected]>
Subject: Display/Console for HVM domUs
To: XenUsers <[email protected]>Quoted 4 lines
Hi
I have couple of questions on displays under HVM
1. When I kill window of DomU with sdl=1, the dom also dies... Is this a bug ? or expected behaviour. (quite annoying)Its expected - whether its desirable is a completely different matter. I question the usefullness of SDL at all because of its dependance on having a connection to the X server available form the shell in which you launch the guest. I can't imagine how this will ever work once XenD has support for managing inactive domains and stopping/starting them via the XML-RPC interface - since you'll not even have the SSH forwarded display anymore.
Quoted 4 lines
2. How do I determine the display number for DomUs running with vnc ? For me,
the vnc display numbers are determined by the order in which the domUs were started. This is highly inconveniernt. I tried the vncdisplay=5 in the domu config file but it does not help.If you specify 'vncunused=1' in the config file it will allocate the first unused port number counting from 5900. If you want to specify an explicit display then set 'vncdisplay=5' and 'vncunused=0'.
Quoted 2 lines
Also, xm list -l domname also does not contain any indication of what display
is being used ? I want to programatically determined the display number.The info on what port is being listened on is not exposed by either xm or XenD. Instead it is hidden away in xenstore.
# xenstore-ls /local/domain/1 | grep vnc vnc-port = "5902"If you have libvirt installed, then it is also available when using virsh command to view an XML dump of a domain, eg
# virsh dumpxml demovm | grep graphics <graphics type='vnc' port='5902'/>Regards,
Dan.
Quoted 1 line · Andrew D. Ball
Is anyone considering FreeNX in addition to VNC?
FreeNX isn't a framebuffer based protocol. It is a window based protocol. There's not enough information at the QEMU level to do a window based protocol. Perhaps if we had a paravirtual display driver...
Regards,
Anthony Liguori
Quoted 47 lines
Peace.
AndrewQuoted 43 lines · Daniel P. Berrange
Quoted 8 lines · jdsw
Forwarding to dev list.
/Jdjdsw <[email protected]> wrote: Date: Thu, 9 Nov 2006 18:37:07 -0800 (PST)
From: jdsw <[email protected]>
Subject: Display/Console for HVM domUs
To: XenUsers <[email protected]>Quoted 4 lines
Hi
I have couple of questions on displays under HVM
1. When I kill window of DomU with sdl=1, the dom also dies... Is this a bug ? or expected behaviour. (quite annoying)Its expected - whether its desirable is a completely different matter. I question the usefullness of SDL at all because of its dependance on having a connection to the X server available form the shell in which you launch the guest. I can't imagine how this will ever work once XenD has support for managing inactive domains and stopping/starting them via the XML-RPC interface - since you'll not even have the SSH forwarded display anymore.
Quoted 2 lines
2. How do I determine the display number for DomUs running with vnc ? For me,
the vnc display numbers are determined by the order in which the domUs were started. This is highly inconveniernt. I tried the vncdisplay=5 in the domu config file but it does not help.If you specify 'vncunused=1' in the config file it will allocate the first unused port number counting from 5900. If you want to specify an explicit display then set 'vncdisplay=5' and 'vncunused=0'.
Quoted 2 lines
Also, xm list -l domname also does not contain any indication of what display
is being used ? I want to programatically determined the display number.The info on what port is being listened on is not exposed by either xm or XenD. Instead it is hidden away in xenstore.
# xenstore-ls /local/domain/1 | grep vnc vnc-port = "5902"If you have libvirt installed, then it is also available when using virsh command to view an XML dump of a domain, eg
# virsh dumpxml demovm | grep graphics <graphics type='vnc' port='5902'/>Regards,
Dan.
Quoted 3 lines · jdsw
Also, xm list -l domname also does not contain any indication of what
display is being used ? I want to programatically determined the display number.
That's a nice idea. I've pushed a patch to do exactly that, so
xm li --long <domid> | sed -n 's/^.*(vnc-port \([^)]*\).*$/\1/p'
ought to do what you want.
Ewan.