<br><br><div><span class="gmail_quote">On 10/27/06, <b class="gmail_sendername">Daniel P. Berrange</b> <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thu, Oct 26, 2006 at 08:25:04PM -0500, Justin Conover wrote:<br>> Is there something I'm missing with VNCserver/viewer?<br>><br>> # xenguest-install<br>> Would you like a fully virtualized guest (yes or no)?  This will allow you
<br>> to run unmodified operating systems. yes<br>> What is the name of your virtual machine? fc6-httpd01<br>> How much RAM should be allocated (in megabytes)? 512<br>> What would you like to use as the disk (path)? /home/xen/fc6-httpd01
<br>> How large would you like the disk to be (in gigabytes)? 6<br>> Would you like to enable graphics support? (yes or no) yes<br>> What would you like to use for the virtual CD image? /home/xen/FC-6-x86_64-<br>
> DVD.iso<br>><br>><br>> Starting install...<br>> libvir: Xen Daemon error : GET operation failed: No such domain fc6-httpd01<br>><br>> VNC Viewer Free Edition 4.1.2 for X - built Oct 25 2006 09:08:37
<br>> Copyright (C) 2002-2005 RealVNC Ltd.<br>> See <a href="http://www.realvnc.com">http://www.realvnc.com</a> for information on VNC.<br>><br>> Thu Oct 26 20:21:19 2006<br>> main:        unable to connect to host: Connection refused (111)
<br>> Domain installation still in progress.  You can reconnect<br>> to the console to complete the installation process.<br>> [root@kainos xen]# xm list<br>> Name                                      ID Mem(MiB) VCPUs State   Time(s)
<br>> Domain-0                                   0     1477     2 r-----   1003.2<br>> fc6-httpd01                               12      512     1 r-----     34.2<br>> [root@kainos xen]# xm console fc6-httpd01<br>
> xenconsole: Could not read tty from store: No such file or directory<br><br>Ok, a couple of things to check:<br><br> - Run  'virsh dumpxml fc6-httpd01'  and look to see if there is a<br>   <graphics type='vnc'> tag, and whether it has a port number in it
<br> - Run 'ps -axuwwf | grep vnc' to see if there is a 'xen-vncfb'<br>   server daemon running in Dom0<br> - Run 'netstat -t -l -n -p' to see if this server daemon is listening<br>   on the port indicated by the XML dump in step 1. This will also tell
<br>   you if its listening on <a href="http://127.0.0.1">127.0.0.1</a>, or all interfaces<br><br>If any of that is missing/wrong, then /var/log/xen/xend-debug.log is<br>where the VNC server stucks its logs.<br><br>Regards,
<br>Dan.<br>--<br>|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|<br>|=-           Perl modules: <a href="http://search.cpan.org/~danberr/">http://search.cpan.org/~danberr/</a>              -=|
<br>|=-               Projects: <a href="http://freshmeat.net/~danielpb/">http://freshmeat.net/~danielpb/</a>               -=|<br>|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=|<br></blockquote>
</div><br># virsh dumpxml fc6-httpd01<br><domain type='xen' id='1'><br>  <name>fc6-httpd01</name><br>  <uuid>5ba9787fba6a82a1d3780ca7be1101ff</uuid><br>  <os><br>    <type>linux</type>
<br>    <kernel>/var/lib/xen/vmlinuz.7EPZk8</kernel><br>    <initrd>/var/lib/xen/initrd.img.4S_Xjg</initrd><br>    <cmdline> method=<a href="http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os">
http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os</a>  </cmdline><br>  </os><br>  <memory>524288</memory><br>  <vcpu>1</vcpu><br>  <on_poweroff>destroy</on_poweroff>
<br>  <on_reboot>destroy</on_reboot><br>  <on_crash>destroy</on_crash><br>  <devices><br>    <interface type='bridge'><br>      <source bridge='xenbr0'/><br>      <mac address='00:16:3e:71:6c:62'/>
<br>      <script path='vif-bridge'/><br>    </interface><br>    <disk type='file' device='disk'><br>      <source file='/home/xen/fc6-httpd01'/><br>      <target dev='xvda'/><br>    </disk>
<br>    <graphics type='vnc' port='5900'/><br>    <console tty='/dev/pts/3'/><br>  </devices><br></domain><br><br><br><br># cat xend.log <br>[2006-10-27 21:27:29 xend 2845] INFO (SrvDaemon:283) Xend Daemon started
<br>[2006-10-27 21:27:29 xend 2845] INFO (SrvDaemon:287) Xend changeset: unavailable .<br>[2006-10-27 21:27:29 xend.XendDomainInfo 2845] DEBUG (XendDomainInfo:212) XendDomainInfo.recreate({'paused': 0, 'cpu_time': 23507757604L, 'ssidref': 0, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'shutdown_reason': 0, 'dying': 0, 'dom': 0, 'mem_kb': 1925252, 'maxmem_kb': 17179869180, 'max_vcpu_id': 1, 'crashed': 0, 'running': 1, 'shutdown': 0, 'online_vcpus': 2, 'blocked': 0})
<br>[2006-10-27 21:27:29 xend.XendDomainInfo 2845] INFO (XendDomainInfo:224) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000.<br>[2006-10-27 21:27:29 xend.XendDomainInfo 2845] WARNING (XendDomainInfo:246) No vm path in store for existing domain 0
<br>[2006-10-27 21:27:29 xend.XendDomainInfo 2845] DEBUG (XendDomainInfo:712) Storing VM details: {'shadow_memory': '0', 'uuid': '00000000-0000-0000-0000-000000000000', 'on_reboot': 'restart', 'on_poweroff': 'destroy', 'name': 'Domain-0', 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3', 'memory': '1881', 'on_crash': 'restart', 'maxmem': '1881'}
<br>[2006-10-27 21:27:29 xend.XendDomainInfo 2845] DEBUG (XendDomainInfo:747) Storing domain details: {'cpu/0/availability': 'online', 'memory/target': '1926144', 'cpu/1/availability': 'online', 'name': 'Domain-0', 'console/limit': '1048576', 'vm': '/vm/00000000-0000-0000-0000-000000000000', 'domid': '0'}
<br>[2006-10-27 21:27:29 xend 2845] DEBUG (XendDomain:153) number of vcpus to use is 0<br>[2006-10-27 21:27:29 xend 2845] INFO (SrvServer:116) unix path=/var/lib/xend/xend-socket<br>[2006-10-27 21:27:29 xend.XendDomainInfo
 2845] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch<br>[2006-10-27 21:34:29 xend 3032] INFO (SrvDaemon:283) Xend Daemon started<br>[2006-10-27 21:34:29 xend 3032] INFO (SrvDaemon:287) Xend changeset: unavailable .
<br>[2006-10-27 21:34:29 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:212) XendDomainInfo.recreate({'paused': 0, 'cpu_time': 24158646940L, 'ssidref': 0, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'shutdown_reason': 0, 'dying': 0, 'dom': 0, 'mem_kb': 1925252, 'maxmem_kb': 17179869180, 'max_vcpu_id': 1, 'crashed': 0, 'running': 1, 'shutdown': 0, 'online_vcpus': 2, 'blocked': 0})
<br>[2006-10-27 21:34:29 xend.XendDomainInfo 3032] INFO (XendDomainInfo:224) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000.<br>[2006-10-27 21:34:29 xend.XendDomainInfo 3032] WARNING (XendDomainInfo:246) No vm path in store for existing domain 0
<br>[2006-10-27 21:34:29 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:712) Storing VM details: {'shadow_memory': '0', 'uuid': '00000000-0000-0000-0000-000000000000', 'on_reboot': 'restart', 'on_poweroff': 'destroy', 'name': 'Domain-0', 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3', 'memory': '1881', 'on_crash': 'restart', 'maxmem': '1881'}
<br>[2006-10-27 21:34:29 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:747) Storing domain details: {'cpu/0/availability': 'online', 'memory/target': '1926144', 'cpu/1/availability': 'online', 'name': 'Domain-0', 'console/limit': '1048576', 'vm': '/vm/00000000-0000-0000-0000-000000000000', 'domid': '0'}
<br>[2006-10-27 21:34:29 xend 3032] DEBUG (XendDomain:153) number of vcpus to use is 0<br>[2006-10-27 21:34:29 xend 3032] INFO (SrvServer:116) unix path=/var/lib/xend/xend-socket<br>[2006-10-27 21:34:29 xend.XendDomainInfo
 3032] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch<br>[2006-10-27 21:42:14 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:190) XendDomainInfo.create(['vm', ['name', 'fc6-httpd01'], ['memory', '512'], ['maxmem', '512'], ['vcpus', '1'], ['uuid', '5ba9787f-ba6a-82a1-d378-0ca7be1101ff'], ['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash', 'destroy'], ['image', ['linux', ['kernel', '/var/lib/xen/vmlinuz.7EPZk8'], ['ramdisk', '/var/lib/xen/initrd.img.4S_Xjg'], ['args', ' method=
<a href="http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os">http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os</a>  '], ['vnc', '1'], ['vncunused', '1']]], ['device', ['vbd', ['dev', 'xvda'], ['uname', 'file:/home/xen/fc6-httpd01'], ['mode', 'w']]], ['device', ['vif', ['mac', '00:16:3e:71:6c:62'], ['bridge', 'xenbr0'], ['script', '/etc/xen/scripts/vif-bridge']]]])
<br>[2006-10-27 21:42:14 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:296) parseConfig: config is ['vm', ['name', 'fc6-httpd01'], ['memory', '512'], ['maxmem', '512'], ['vcpus', '1'], ['uuid', '5ba9787f-ba6a-82a1-d378-0ca7be1101ff'], ['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash', 'destroy'], ['image', ['linux', ['kernel', '/var/lib/xen/vmlinuz.7EPZk8'], ['ramdisk', '/var/lib/xen/initrd.img.4S_Xjg'], ['args', ' method=
<a href="http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os">http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os</a>  '], ['vnc', '1'], ['vncunused', '1']]], ['device', ['vbd', ['dev', 'xvda'], ['uname', 'file:/home/xen/fc6-httpd01'], ['mode', 'w']]], ['device', ['vif', ['mac', '00:16:3e:71:6c:62'], ['bridge', 'xenbr0'], ['script', '/etc/xen/scripts/vif-bridge']]]]
<br>[2006-10-27 21:42:14 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:395) parseConfig: result is {'shadow_memory': None, 'uuid': '5ba9787f-ba6a-82a1-d378-0ca7be1101ff', 'on_crash': 'destroy', 'on_reboot': 'destroy', 'localtime': None, 'image': ['linux', ['kernel', '/var/lib/xen/vmlinuz.7EPZk8'], ['ramdisk', '/var/lib/xen/initrd.img.4S_Xjg'], ['args', ' method=
<a href="http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os">http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os</a>  '], ['vnc', '1'], ['vncunused', '1']], 'on_poweroff': 'destroy', 'bootloader_args': None, 'cpus': None, 'name': 'fc6-httpd01', 'backend': [], 'vcpus': 1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 512, 'device': [('vbd', ['vbd', ['dev', 'xvda'], ['uname', 'file:/home/xen/fc6-httpd01'], ['mode', 'w']]), ('vif', ['vif', ['mac', '00:16:3e:71:6c:62'], ['bridge', 'xenbr0'], ['script', '/etc/xen/scripts/vif-bridge']])], 'bootloader': None, 'cpu': None, 'maxmem': 512}
<br>[2006-10-27 21:42:14 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:1253) XendDomainInfo.construct: None<br>[2006-10-27 21:42:14 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:1285) XendDomainInfo.initDomain: 1 1.0<br>
[2006-10-27 21:42:14 xend 3032] INFO (image:214) configuring linux guest<br>[2006-10-27 21:42:14 xend 3032] INFO (image:232) setting use_graphics<br>[2006-10-27 21:42:14 xend 3032] DEBUG (balloon:133) Balloon: 129712 KiB free; 0 to scrub; need 524288; retries: 20.
<br>[2006-10-27 21:42:14 xend 3032] DEBUG (balloon:148) Balloon: setting dom0 target to 1494 MiB.<br>[2006-10-27 21:42:14 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:1014) Setting memory target of domain Domain-0 (0) to 1494 MiB.
<br>[2006-10-27 21:42:14 xend 3032] DEBUG (balloon:127) Balloon: 525108 KiB free; need 524288; done.<br>[2006-10-27 21:42:14 xend 3032] INFO (image:138) buildDomain os=linux dom=1 vcpus=1<br>[2006-10-27 21:42:14 xend 3032] DEBUG (image:193) dom            = 1
<br>[2006-10-27 21:42:14 xend 3032] DEBUG (image:194) image          = /var/lib/xen/vmlinuz.7EPZk8<br>[2006-10-27 21:42:14 xend 3032] DEBUG (image:195) store_evtchn   = 1<br>[2006-10-27 21:42:14 xend 3032] DEBUG (image:196) console_evtchn = 2
<br>[2006-10-27 21:42:14 xend 3032] DEBUG (image:197) cmdline        =   method=<a href="http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os">http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os
</a>  <br>[2006-10-27 21:42:14 xend 3032] DEBUG (image:198) ramdisk        = /var/lib/xen/initrd.img.4S_Xjg<br>[2006-10-27 21:42:14 xend 3032] DEBUG (image:199) vcpus          = 1<br>[2006-10-27 21:42:14 xend 3032] DEBUG (image:200) features       = 
<br>[2006-10-27 21:42:15 xend 3032] DEBUG (blkif:24) exception looking up device number for xvda: [Errno 2] No such file or directory: '/dev/xvda'<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'virtual-device': '51712', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/51712'} to /local/domain/1/device/vbd/51712.
<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:112) DevController: writing {'domain': 'fc6-httpd01', 'frontend': '/local/domain/1/device/vbd/51712', 'dev': 'xvda', 'state': '1', 'params': '/home/xen/fc6-httpd01', 'mode': 'w', 'online': '1', 'frontend-id': '1', 'type': 'file'} to /local/domain/0/backend/vbd/1/51712.
<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:71:6c:62', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/1/0'} to /local/domain/1/device/vif/0.
<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:112) DevController: writing {'bridge': 'xenbr0', 'domain': 'fc6-httpd01', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/1/device/vif/0', 'mac': '00:16:3e:71:6c:62', 'online': '1', 'frontend-id': '1'} to /local/domain/0/backend/vif/1/0.
<br>[2006-10-27 21:42:15 xend 3032] INFO (image:261) spawning video: ['/usr/lib64/xen/bin/xen-vncfb', '--unused', '--listen', '<a href="http://0.0.0.0">0.0.0.0</a>', '--domid', '1', '--title', 'fc6-httpd01']<br>[2006-10-27 21:42:15 xend 3032] INFO (image:263) device model pid: 3946
<br>[2006-10-27 21:42:15 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:712) Storing VM details: {'shadow_memory': '0', 'uuid': '5ba9787f-ba6a-82a1-d378-0ca7be1101ff', 'on_reboot': 'destroy', 'start_time': '1162003335.19
', 'on_poweroff': 'destroy', 'name': 'fc6-httpd01', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '512', 'on_crash': 'destroy', 'image': "(linux (kernel /var/lib/xen/vmlinuz.7EPZk8) (ramdisk /var/lib/xen/initrd.img.4S_Xjg) (args ' method=
<a href="http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os">http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os</a>  ') (vnc 1) (vncunused 1))", 'maxmem': '512'}<br>[2006-10-27 21:42:15 
xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:747) Storing domain details: {'console/ring-ref': '187866', 'console/port': '2', 'name': 'fc6-httpd01', 'console/limit': '1048576', 'vm': '/vm/5ba9787f-ba6a-82a1-d378-0ca7be1101ff', 'domid': '1', 'cpu/0/availability': 'online', 'memory/target': '524288', 'store/ring-ref': '187867', 'store/port': '1'}
<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices vif.<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:149) Waiting for 0.<br>[2006-10-27 21:42:15 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:933) 
XendDomainInfo.handleShutdownWatch<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:478) hotplugStatusCallback 1.<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices usb.<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices vbd.
<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:149) Waiting for 51712.<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vbd/1/51712/hotplug-status.<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vbd/1/51712/hotplug-status.
<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:478) hotplugStatusCallback 1.<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices irq.<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices pci.
<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices ioports.<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices tap.<br>[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices vtpm.
<br>[2006-10-27 21:42:15 xend 3032] INFO (XendDomain:370) Domain fc6-httpd01 (1) unpaused.<br><br>