I can''t find a way to *control* what port a VNC console for a domU is on. There''s a vncport param to virt-install, but it doesn''t seem to do anything. There doesn''t seem to be a parameter in the config files in /etc/xen at all. Maybe I can control where dom0 VNC ports appear, though my tests give inconsistent results. I need these to be in stable places because they''re going to be on systems in a cluster hidden behind a load-balancer, so I need to set up ssh tunnels on the load-balancer to allow outside connections to the system consoles (particularly key for the windows servers in the cluster, but desirable for all of them). So that the windows people responsible for software maintenance on the windows servers don''t have to learn Linux and Xen just to get to the console of their Windows box! -- David Dyer-Bennet, dd-b@dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Here are the vnc lines from one of my domUs. This is in a python file (/etc/xen/xmexample.hvm). I don''t know how it would be set up in a xml config file. #--------------------------------------------------------------------------- - # enable VNC library for graphics, default = 1 vnc=1 #--------------------------------------------------------------------------- - # address that should be listened on for the VNC server if vnc is set. # default is to use ''vnc-listen'' setting from /etc/xen/xend-config.sxp #vnclisten="127.0.0.1" #--------------------------------------------------------------------------- - # set VNC display number, default = domid vncdisplay=1 #--------------------------------------------------------------------------- - # try to find an unused port for the VNC server, default = 1 vncunused=0 #--------------------------------------------------------------------------- - # enable spawning vncviewer for domain''s console # (only valid when vnc=1), default = 0 #vncconsole=1 I believe the included text from xmexample.hvm is self-explanatory enough, but you need to know that vncdisplay=1 chooses port 5901. Hope this helps. Dustin -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of David Dyer-Bennet Sent: Wednesday, September 17, 2008 15:15 To: xen-users@lists.xensource.com Subject: [Xen-users] Controlling VNC console port I can''t find a way to *control* what port a VNC console for a domU is on. There''s a vncport param to virt-install, but it doesn''t seem to do anything. There doesn''t seem to be a parameter in the config files in /etc/xen at all. Maybe I can control where dom0 VNC ports appear, though my tests give inconsistent results. I need these to be in stable places because they''re going to be on systems in a cluster hidden behind a load-balancer, so I need to set up ssh tunnels on the load-balancer to allow outside connections to the system consoles (particularly key for the windows servers in the cluster, but desirable for all of them). So that the windows people responsible for software maintenance on the windows servers don''t have to learn Linux and Xen just to get to the console of their Windows box! -- David Dyer-Bennet, dd-b@dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, September 17, 2008 15:31, Dustin Henning wrote:> Here are the vnc lines from one of my domUs. This is in a python > file (/etc/xen/xmexample.hvm). I don''t know how it would be set up in axml> config file.I think the files I''m looking at are Python config files as well. All these variables and values and formats look familiar. Mine just doesn''t have the comments in it. And, checking, there *is* an xmexample.hvm in that directory, further supporting the view that we''re looking at the same type of thing.> # set VNC display number, default = domid > vncdisplay=1> I believe the included text from xmexample.hvm is self-explanatory > enough, but you need to know that vncdisplay=1 chooses port 5901.None of my examples had "vncdisplay" in them, and I hadn''t realised that the .hvm example was the same flavor of puppy. So "vncdisplay" means the value added to 5900 to get the port VNC listens on; I''m familiar with that from other contexts, too. This *looks* like it''s *precisely* what I need, though I haven''t tried it yet (tied up on another firefight just now).> Hope this helps.Thank you so much! -- David Dyer-Bennet, dd-b@dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info -- David Dyer-Bennet, dd-b@dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Read this, too: https://bugzilla.novell.com/show_bug.cgi?id=349999 2008. 09. 17, szerda keltezéssel 14.15-kor David Dyer-Bennet ezt írta:> I can''t find a way to *control* what port a VNC console for a domU is on. > There''s a vncport param to virt-install, but it doesn''t seem to do > anything. There doesn''t seem to be a parameter in the config files in > /etc/xen at all. > > Maybe I can control where dom0 VNC ports appear, though my tests give > inconsistent results. > > I need these to be in stable places because they''re going to be on systems > in a cluster hidden behind a load-balancer, so I need to set up ssh > tunnels on the load-balancer to allow outside connections to the system > consoles (particularly key for the windows servers in the cluster, but > desirable for all of them). So that the windows people responsible for > software maintenance on the windows servers don''t have to learn Linux and > Xen just to get to the console of their Windows box! > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users