I have a machine where this is happening right now. Is there anything I can do to debug it?
# uname -a Linux oirase 2.6.19-1.2911.6.5.fc6xen #1 SMP Sun Mar 4 16:23:59 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
Latest libvirt/virt-manager from CVS/Mercurial.
All I did was begin an FC7 install.
Note the <graphics> section in the XML below.
# virsh dumpxml 3 <domain type='xen' id='3'> <name>fc7</name> <uuid>d5cbd41195dc9e838387cf261583f28a</uuid> <os> <type>linux</type> <kernel>/var/lib/xen/virtinst-vmlinuz.qfYZJ9</kernel> <initrd>/var/lib/xen/virtinst-initrd.img.EOuJOf</initrd> <cmdline> method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/development/x8...</cmdline> </os> <memory>512000</memory> <vcpu>1</vcpu> <on_poweroff>destroy</on_poweroff> <on_reboot>destroy</on_reboot> <on_crash>destroy</on_crash> <devices> <interface type='ethernet'> <mac address='00:16:3e:0b:6e:30'/> <script path='vif-route'/> </interface> <disk type='file' device='disk'> <driver name='tap' type='aio'/> <source file='/var/lib/xen/images/fc7.img'/> <target dev='xvda'/> </disk> <graphics type='vnc' port='-1'/> <console tty='/dev/pts/11'/> </devices> </domain>
Rich.
Richard W.M. Jones wrote:
<graphics type='vnc' port='-1'/>
This was fixed by the following patch applied to libvirt. Note however that this patch _only_ applies if you are running Fedora Core 6, because the PVFB stuff was back-ported by Red Hat.
I also had to reboot the machine after recompiling everything.
Rich.
diff -u -r1.68 xml.c --- src/xml.c 21 Mar 2007 15:24:56 -0000 1.68 +++ src/xml.c 3 Apr 2007 15:49:18 -0000 @@ -625,7 +625,7 @@
/* Is a graphics device specified? */ /* Old style config before merge of PVFB */ - if (xendConfigVersion < 3) { + if (xendConfigVersion < 2) { obj = xmlXPathEval(BAD_CAST "/domain/devices/graphics[1]", ctxt); if ((obj != NULL) && (obj->type == XPATH_NODESET) && (obj->nodesetval != NULL) && (obj->nodesetval->nodeNr > 0)) { @@ -1161,7 +1161,7 @@ xmlXPathFreeObject(obj);
/* New style PVFB config - 3.0.4 merge */ - if (xendConfigVersion >= 3 && !hvm) { + if (xendConfigVersion >= 2 && !hvm) { obj = xmlXPathEval(BAD_CAST "/domain/devices/graphics", ctxt); if ((obj != NULL) && (obj->type == XPATH_NODESET) && (obj->nodesetval != NULL) && (obj->nodesetval->nodeNr >= 0)) {
On Tue, Apr 03, 2007 at 04:52:42PM +0100, Richard W.M. Jones wrote:
Richard W.M. Jones wrote:
<graphics type='vnc' port='-1'/>
This was fixed by the following patch applied to libvirt. Note however that this patch _only_ applies if you are running Fedora Core 6, because the PVFB stuff was back-ported by Red Hat.
Also, this patch is already in the libvirt RPMs distributed in Fedora updates, so no need for anyone to worry unless you're trying libvirt from CVS rather than Fedora RPMs.
Regards, Dan.