On 10/27/06, Daniel P. Berrange <berrange@redhat.com> wrote:
On Thu, Oct 26, 2006 at 08:25:04PM -0500, Justin Conover wrote:
> Is there something I'm missing with VNCserver/viewer?
>
> # xenguest-install
> Would you like a fully virtualized guest (yes or no)?  This will allow you
> to run unmodified operating systems. yes
> What is the name of your virtual machine? fc6-httpd01
> How much RAM should be allocated (in megabytes)? 512
> What would you like to use as the disk (path)? /home/xen/fc6-httpd01
> How large would you like the disk to be (in gigabytes)? 6
> Would you like to enable graphics support? (yes or no) yes
> What would you like to use for the virtual CD image? /home/xen/FC-6-x86_64-
> DVD.iso
>
>
> Starting install...
> libvir: Xen Daemon error : GET operation failed: No such domain fc6-httpd01
>
> VNC Viewer Free Edition 4.1.2 for X - built Oct 25 2006 09:08:37
> Copyright (C) 2002-2005 RealVNC Ltd.
> See http://www.realvnc.com for information on VNC.
>
> Thu Oct 26 20:21:19 2006
> main:        unable to connect to host: Connection refused (111)
> Domain installation still in progress.  You can reconnect
> to the console to complete the installation process.
> [root@kainos xen]# xm list
> Name                                      ID Mem(MiB) VCPUs State   Time(s)
> Domain-0                                   0     1477     2 r-----   1003.2
> fc6-httpd01                               12      512     1 r-----     34.2
> [root@kainos xen]# xm console fc6-httpd01
> xenconsole: Could not read tty from store: No such file or directory

Ok, a couple of things to check:

- Run  'virsh dumpxml fc6-httpd01'  and look to see if there is a
   <graphics type='vnc'> tag, and whether it has a port number in it
- Run 'ps -axuwwf | grep vnc' to see if there is a 'xen-vncfb'
   server daemon running in Dom0
- Run 'netstat -t -l -n -p' to see if this server daemon is listening
   on the port indicated by the XML dump in step 1. This will also tell
   you if its listening on 127.0.0.1, or all interfaces

If any of that is missing/wrong, then /var/log/xen/xend-debug.log is
where the VNC server stucks its logs.

Regards,
Dan.
--
|=- 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  -=|

# virsh dumpxml fc6-httpd01
<domain type='xen' id='1'>
  <name>fc6-httpd01</name>
  <uuid>5ba9787fba6a82a1d3780ca7be1101ff</uuid>
  <os>
    <type>linux</type>
    <kernel>/var/lib/xen/vmlinuz.7EPZk8</kernel>
    <initrd>/var/lib/xen/initrd.img.4S_Xjg</initrd>
    <cmdline> method= http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os  </cmdline>
  </os>
  <memory>524288</memory>
  <vcpu>1</vcpu>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <interface type='bridge'>
      <source bridge='xenbr0'/>
      <mac address='00:16:3e:71:6c:62'/>
      <script path='vif-bridge'/>
    </interface>
    <disk type='file' device='disk'>
      <source file='/home/xen/fc6-httpd01'/>
      <target dev='xvda'/>
    </disk>
    <graphics type='vnc' port='5900'/>
    <console tty='/dev/pts/3'/>
  </devices>
</domain>



# cat xend.log
[2006-10-27 21:27:29 xend 2845] INFO (SrvDaemon:283) Xend Daemon started
[2006-10-27 21:27:29 xend 2845] INFO (SrvDaemon:287) Xend changeset: unavailable .
[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})
[2006-10-27 21:27:29 xend.XendDomainInfo 2845] INFO (XendDomainInfo:224) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000.
[2006-10-27 21:27:29 xend.XendDomainInfo 2845] WARNING (XendDomainInfo:246) No vm path in store for existing domain 0
[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'}
[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'}
[2006-10-27 21:27:29 xend 2845] DEBUG (XendDomain:153) number of vcpus to use is 0
[2006-10-27 21:27:29 xend 2845] INFO (SrvServer:116) unix path=/var/lib/xend/xend-socket
[2006-10-27 21:27:29 xend.XendDomainInfo 2845] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch
[2006-10-27 21:34:29 xend 3032] INFO (SrvDaemon:283) Xend Daemon started
[2006-10-27 21:34:29 xend 3032] INFO (SrvDaemon:287) Xend changeset: unavailable .
[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})
[2006-10-27 21:34:29 xend.XendDomainInfo 3032] INFO (XendDomainInfo:224) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000.
[2006-10-27 21:34:29 xend.XendDomainInfo 3032] WARNING (XendDomainInfo:246) No vm path in store for existing domain 0
[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'}
[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'}
[2006-10-27 21:34:29 xend 3032] DEBUG (XendDomain:153) number of vcpus to use is 0
[2006-10-27 21:34:29 xend 3032] INFO (SrvServer:116) unix path=/var/lib/xend/xend-socket
[2006-10-27 21:34:29 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch
[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= http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os  '], ['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']]]])
[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= http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os  '], ['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']]]]
[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= http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os  '], ['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}
[2006-10-27 21:42:14 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:1253) XendDomainInfo.construct: None
[2006-10-27 21:42:14 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:1285) XendDomainInfo.initDomain: 1 1.0
[2006-10-27 21:42:14 xend 3032] INFO (image:214) configuring linux guest
[2006-10-27 21:42:14 xend 3032] INFO (image:232) setting use_graphics
[2006-10-27 21:42:14 xend 3032] DEBUG (balloon:133) Balloon: 129712 KiB free; 0 to scrub; need 524288; retries: 20.
[2006-10-27 21:42:14 xend 3032] DEBUG (balloon:148) Balloon: setting dom0 target to 1494 MiB.
[2006-10-27 21:42:14 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:1014) Setting memory target of domain Domain-0 (0) to 1494 MiB.
[2006-10-27 21:42:14 xend 3032] DEBUG (balloon:127) Balloon: 525108 KiB free; need 524288; done.
[2006-10-27 21:42:14 xend 3032] INFO (image:138) buildDomain os=linux dom=1 vcpus=1
[2006-10-27 21:42:14 xend 3032] DEBUG (image:193) dom            = 1
[2006-10-27 21:42:14 xend 3032] DEBUG (image:194) image          = /var/lib/xen/vmlinuz.7EPZk8
[2006-10-27 21:42:14 xend 3032] DEBUG (image:195) store_evtchn   = 1
[2006-10-27 21:42:14 xend 3032] DEBUG (image:196) console_evtchn = 2
[2006-10-27 21:42:14 xend 3032] DEBUG (image:197) cmdline        =   method=http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os  
[2006-10-27 21:42:14 xend 3032] DEBUG (image:198) ramdisk        = /var/lib/xen/initrd.img.4S_Xjg
[2006-10-27 21:42:14 xend 3032] DEBUG (image:199) vcpus          = 1
[2006-10-27 21:42:14 xend 3032] DEBUG (image:200) features       =
[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'
[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.
[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.
[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.
[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.
[2006-10-27 21:42:15 xend 3032] INFO (image:261) spawning video: ['/usr/lib64/xen/bin/xen-vncfb', '--unused', '--listen', '0.0.0.0', '--domid', '1', '--title', 'fc6-httpd01']
[2006-10-27 21:42:15 xend 3032] INFO (image:263) device model pid: 3946
[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= http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os  ') (vnc 1) (vncunused 1))", 'maxmem': '512'}
[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'}
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices vif.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:149) Waiting for 0.
[2006-10-27 21:42:15 xend.XendDomainInfo 3032] DEBUG (XendDomainInfo:933) XendDomainInfo.handleShutdownWatch
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:478) hotplugStatusCallback 1.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices usb.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices vbd.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:149) Waiting for 51712.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vbd/1/51712/hotplug-status.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vbd/1/51712/hotplug-status.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:478) hotplugStatusCallback 1.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices irq.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices pci.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices ioports.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices tap.
[2006-10-27 21:42:15 xend 3032] DEBUG (DevController:143) Waiting for devices vtpm.
[2006-10-27 21:42:15 xend 3032] INFO (XendDomain:370) Domain fc6-httpd01 (1) unpaused.