Hi All, I am creating a HVM domain on RHEL5 with config file as below. -- import os, re arch = os.uname()[4] if re.search(''64'', arch): arch_libdir = ''lib64'' else: arch_libdir = ''lib'' kernel = "/usr/lib/xen/boot/hvmloader" builder=''hvm'' memory =2000 name = "Dom-El4" vcpus=8 vif = [ ''mac=00:50:56:05:b7:9a, bridge=xenbr0'' , ''bridge=xenbr1'' ] disk = [ ''phy:/dev/cciss/c0d1,hda,w'' ] device_model=''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' sdl=0 vnc=1 vncviewer=1 vncpasswd="" #ne2000=1 serial=''pty'' usb=1 usbdevice=''mouse'' -- Its starting the domain but i am unable to connect to this by vncviewer. Could anybody point out what could be wrong in configuration ? When i try to connect the vncviewer to remote machine it is giving below output. abc@tnuwal:~> vncviewer vncviewer: ConnectToTcpAddr: connect: Connection refused Unable to connect to VNC server Thanks, Trilok _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Apr 03, 2007 at 07:47:17PM +0530, trilok nuwal wrote:> vnc=1 > vncviewer=1 > vncpasswd=""> Its starting the domain but i am unable to connect to this by vncviewer.Could be worse. Using a recent xen-unstable my machine reboots if I try to create a HVM domain :(> Could anybody point out what could be wrong in configuration ?You might want to be explicit about what interface the vncserver should listen upon. Perhaps: vnclisten = ''127.0.0.1''> When i try to connect the vncviewer to remote machine it is giving below > output. > abc@tnuwal:~> vncviewer > vncviewer: ConnectToTcpAddr: connect: Connection refused > Unable to connect to VNC serverThen here use: vncviewer 127.0.0.1 Steve -- http://www.steve.org.uk/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks Steve. My host machine is remote machine, and i am accessing this through ssh. So in this case i should mention vnclisten = ''<my machine ip>'' What i understand from your mail. Is it correct ? Because from xend.log, i came to know that bydefault vnclisten is set to '' 127.0.0.1 only as below. [2007-04-02 09:56:44 xend 5251] INFO (image:418) spawning device models: /usr/lib64/xen/bin/qemu-dm [''/usr/lib64/xen/bin/qemu-dm'', ''-d'', ''5'', ''-m'', ''2000'', ''-boot'', ''c'', ''-serial'', ''pty'', ''-vcpus'', ''8'', ''-usb'', ''-usbdevice'', ''mouse'', ''-domain-name'', ''Dom-El4'', ''-vncunused'', ''-vnclisten'', ''127.0.0.1''] Trilok On 4/3/07, Steve Kemp <steve@steve.org.uk> wrote:> > On Tue, Apr 03, 2007 at 07:47:17PM +0530, trilok nuwal wrote: > > > vnc=1 > > vncviewer=1 > > vncpasswd="" > > > Its starting the domain but i am unable to connect to this by > vncviewer. > > Could be worse. Using a recent xen-unstable my machine reboots > if I try to create a HVM domain :( > > > Could anybody point out what could be wrong in configuration ? > > You might want to be explicit about what interface the vncserver > should listen upon. Perhaps: > > vnclisten = ''127.0.0.1'' > > > When i try to connect the vncviewer to remote machine it is giving > below > > output. > > abc@tnuwal:~> vncviewer > > vncviewer: ConnectToTcpAddr: connect: Connection refused > > Unable to connect to VNC server > > Then here use: > > vncviewer 127.0.0.1 > > Steve > -- > http://www.steve.org.uk/ >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Apr 03, 2007 at 08:14:07PM +0530, trilok nuwal wrote:> My host machine is remote machine, and i am accessing this through ssh. So > in this case i should mention > vnclisten = ''<my machine ip>'' > What i understand from your mail. Is it correct ?Yes.> Because from xend.log, i came to know that bydefault vnclisten is set to > ''127.0.0.1 only as below.Right. Thats your problem then. You could use ssh port-forwarding to forward the connection from the remote host to the local machine, then connect to that securely as follows: [remote machine] xm create ... [local machine] [setup forward to remote] ssh -L 5900:localhost:5900 -N username@remote.ip.address [start viewer] xvncviewer 127.0.0.1:5900 (This might be too much complexity; but it is preferable to having VNC listening on a public-facing machine with no password/firewall/ACL in the way ..) Steve -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
When i add vnclisten=''10.177.237.101'' (This is my machine ip ). Then i cant able to start the domain. I am getting this error. # xm create -c /etc/xen/dom-209 Using config file "/etc/xen/dom-209". VNC= 1 Started domain Dom-El4 xenconsole: Could not read tty from store: No such file or directory Could we make this more simple if we can do some configuration in host machine, no password no vnclisten at all. Thanks, --Trilok On 4/3/07, Steve Kemp <steve@steve.org.uk> wrote:> > On Tue, Apr 03, 2007 at 08:14:07PM +0530, trilok nuwal wrote: > > > My host machine is remote machine, and i am accessing this through > ssh. So > > in this case i should mention > > vnclisten = ''<my machine ip>'' > > What i understand from your mail. Is it correct ? > > Yes. > > > Because from xend.log, i came to know that bydefault vnclisten is set > to > > ''127.0.0.1 only as below. > > Right. Thats your problem then. > > You could use ssh port-forwarding to forward the connection from the > remote host to the local machine, then connect to that securely as > follows: > > [remote machine] > xm create ... > > [local machine] > [setup forward to remote] > ssh -L 5900:localhost:5900 -N username@remote.ip.address > > [start viewer] > xvncviewer 127.0.0.1:5900 > > (This might be too much complexity; but it is preferable to having > VNC listening on a public-facing machine with no password/firewall/ACL > in the way ..) > > Steve > -- >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Apr 03, 2007 at 08:31:12PM +0530, trilok nuwal wrote:> When i add vnclisten=''10.177.237.101'' (This is my machine ip ). > Then i cant able to start the domain. I am getting this error.> xenconsole: Could not read tty from store: No such file or directoryEither of these two links might provide clues: http://lists.xensource.com/archives/html/xen-devel/2006-07/msg00921.html + http://zaitcev.livejournal.com/2006/06/30/ (Googling for error messages is usually better than waiting on mailing list replies; often they show solutions :)> Could we make this more simple if we can do some configuration in host > machine, no password no vnclisten at all.Sure you could setup firewall rules, or similar. Steve -- _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks Steve, I got the solution. The vnc-listen parameter will restrict which IPs can access the server running on Dom0, right. "0.0.0.0" allows vnc connections from any IP address. So just put "0.0.0.0" as vnclisten has solved the problem. Thanks for your help. --Trilok On 4/3/07, Steve Kemp <steve@steve.org.uk> wrote:> > On Tue, Apr 03, 2007 at 08:31:12PM +0530, trilok nuwal wrote: > > > When i add vnclisten=''10.177.237.101'' (This is my machine ip ). > > Then i cant able to start the domain. I am getting this error. > > > xenconsole: Could not read tty from store: No such file or directory > > Either of these two links might provide clues: > > > http://lists.xensource.com/archives/html/xen-devel/2006-07/msg00921.html > + > http://zaitcev.livejournal.com/2006/06/30/ > > (Googling for error messages is usually better than waiting on mailing > list replies; often they show solutions :) > > > Could we make this more simple if we can do some configuration in host > > machine, no password no vnclisten at all. > > Sure you could setup firewall rules, or similar. > > Steve > -- >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
trilok nuwal wrote:> Hi All, > > I am creating a HVM domain on RHEL5 with config file as below. > > -- > import os, re > arch = os.uname()[4] > if re.search(''64'', arch): > arch_libdir = ''lib64'' > else: > arch_libdir = ''lib'' > kernel = "/usr/lib/xen/boot/hvmloader" > builder=''hvm'' > memory =2000 > name = "Dom-El4" > vcpus=8 > vif = [ ''mac=00:50:56:05:b7:9a, bridge=xenbr0'' , ''bridge=xenbr1'' ] > disk = [ ''phy:/dev/cciss/c0d1,hda,w'' ] > device_model=''/usr/'' + arch_libdir + ''/xen/bin/qemu-dm'' > sdl=0 > vnc=1 > vncviewer=1 > vncpasswd="" > #ne2000=1 > serial=''pty'' > usb=1 > usbdevice=''mouse''Not that is going to fix your problem, but there is really no utility in having usbdevice=''mouse''. It will only slow down your doman. You either want to have usbdevice=''tablet'' which gives you an absolute mouse or you want to use the builtin PS/2 mouse. The USB mouse is really just for testing purposes. Regards, Anthony Liguori> > -- > Its starting the domain but i am unable to connect to this by vncviewer. > Could anybody point out what could be wrong in configuration ? > > When i try to connect the vncviewer to remote machine it is giving below > output. > abc@tnuwal:~> vncviewer > vncviewer: ConnectToTcpAddr: connect: Connection refused > Unable to connect to VNC server > > > Thanks, > Trilok > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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