Richard W.M. Jones
2007-Apr-03 13:02 UTC
[Fedora-xen] The console is currently unavailable / vnc port = -1
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/x86_64/os/</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. -- Emerging Technologies, Red Hat http://et.redhat.com/~rjones/ 64 Baker Street, London, W1U 7DF Mobile: +44 7866 314 421 Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Directors: Michael Cunningham (USA), Charlie Peters (USA) and David Owens (Ireland)
Richard W.M. Jones
2007-Apr-03 15:52 UTC
Re: [Fedora-xen] The console is currently unavailable / vnc port = -1 [FIXED]
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)) { -- Emerging Technologies, Red Hat http://et.redhat.com/~rjones/ 64 Baker Street, London, W1U 7DF Mobile: +44 7866 314 421 Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Directors: Michael Cunningham (USA), Charlie Peters (USA) and David Owens (Ireland)
Daniel P. Berrange
2007-Apr-03 15:54 UTC
Re: [Fedora-xen] The console is currently unavailable / vnc port = -1 [FIXED]
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. -- |=- 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 -=|