RE: [et-mgmt-tools] virt-p2v problems
Hey, I have edited /etc/xen files to use bond-bridge network script instead of bridge net script. That's because we bond two NICS together (BONDING_OPTS="mode=active-backup miimon=80"). Not sure if that is related to the problem in any way. Yes, "virsh list" throws the same error: [r...@blpc6]# virsh list --all libvir: error : configuration file syntax error: expecting a name Id Name State -- 0 Domain-0 running - emerson3_br_scania_com shut off I have never noticed it because we manage guests through Conga. /etc/libvirt/qemu/networks/default.xml is the only conf file I have for libvirt and it looks like this: default 8b172bb5-9651-47ff-bb20-6c7881a82fd7 I'm not really sure whether it has been edited or not because we install it from a global Satellite server and someone overseas might have edited it. The one million question: where is libvirt expecting for a name? Emerson -Original Message- From: Cole Robinson [mailto:crobi...@redhat.com] Sent: Thursday, July 16, 2009 6:00 PM Cc: Richard W.M. Jones; Ribeiro Emerson Gomes; Fedora/Linux Management Tools Subject: Re: [et-mgmt-tools] virt-p2v problems Ribeiro Emerson Gomes wrote: > Hey, > > I narrowed the config file down to: > > emerson3 > 3ffcff461be5cef1ff45ffe1bb71b17a > 2095104 > > > and I still get the very same error. > Maybe a missing tag?? > > Emerson > > (Let's move to virt-tools-list) That 'expecting a name' error shouldn't have to do with the XML file: did you manually any of the libvirt .conf files, or do you have hand editted files in /etc/xen? Do other virsh commands (list --all) throw errors? - Cole ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v problems
Ribeiro Emerson Gomes wrote: > Hey, > > I narrowed the config file down to: > > emerson3 > 3ffcff461be5cef1ff45ffe1bb71b17a > 2095104 > > > and I still get the very same error. > Maybe a missing tag?? > > Emerson > > (Let's move to virt-tools-list) That 'expecting a name' error shouldn't have to do with the XML file: did you manually any of the libvirt .conf files, or do you have hand editted files in /etc/xen? Do other virsh commands (list --all) throw errors? - Cole ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
RE: [et-mgmt-tools] virt-p2v problems
Hey, I narrowed the config file down to: emerson3 3ffcff461be5cef1ff45ffe1bb71b17a 2095104 and I still get the very same error. Maybe a missing tag?? Emerson -Original Message- From: et-mgmt-tools-boun...@redhat.com [mailto:et-mgmt-tools-boun...@redhat.com] On Behalf Of Richard W.M. Jones Sent: Thursday, July 16, 2009 11:11 AM To: Fedora/Linux Management Tools Subject: Re: [et-mgmt-tools] virt-p2v problems On Wed, Jul 15, 2009 at 08:49:23AM -0300, Ribeiro Emerson Gomes wrote: > Here goes the conf file: > > [r...@blpc6]# cat p2v-emerson3_br_scania_com-200907150846.conf > > > > emerson3_br_scania_com > 3ffcff461be5cef1ff45ffe1bb71b17a > 2095104 > 2095104 > 1 > > hvm > /usr/lib/xen/boot/hvmloader > > > > > > > > > > /usr/lib64/xen/bin/qemu-dm > > > > > > > > > > This file looks fine to me, but the "expecting a name" error is still worrying. Unfortunately libvirt doesn't give any context for the error, so the only way to diagnose it will be to remove sections of the XML until it works, thus narrowing it down to some particular place. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 75 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v problems
On Wed, Jul 15, 2009 at 08:49:23AM -0300, Ribeiro Emerson Gomes wrote: > Here goes the conf file: > > [r...@blpc6]# cat p2v-emerson3_br_scania_com-200907150846.conf > > > > emerson3_br_scania_com > 3ffcff461be5cef1ff45ffe1bb71b17a > 2095104 > 2095104 > 1 > > hvm > /usr/lib/xen/boot/hvmloader > > > > > > > > > > /usr/lib64/xen/bin/qemu-dm > > > > > >file="/stage/blvd11/p2v-emerson3_br_scania_com-200907150846-hda.img"/> > > > > This file looks fine to me, but the "expecting a name" error is still worrying. Unfortunately libvirt doesn't give any context for the error, so the only way to diagnose it will be to remove sections of the XML until it works, thus narrowing it down to some particular place. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 75 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
RE: [et-mgmt-tools] virt-p2v problems
Here goes the conf file: [r...@blpc6]# cat p2v-emerson3_br_scania_com-200907150846.conf emerson3_br_scania_com 3ffcff461be5cef1ff45ffe1bb71b17a 2095104 2095104 1 hvm /usr/lib/xen/boot/hvmloader /usr/lib64/xen/bin/qemu-dm Regards, Emerson -Original Message- From: et-mgmt-tools-boun...@redhat.com on behalf of Richard W.M. Jones Sent: Wed 7/15/2009 04:52 To: Fedora/Linux Management Tools Subject: Re: [et-mgmt-tools] virt-p2v problems On Tue, Jul 14, 2009 at 11:19:44AM -0300, Ribeiro Emerson Gomes wrote: > [r...@blpc6]# virsh define p2v-emerson3_br_scania_com-200907131614.conf > libvir: error : configuration file syntax error: expecting a name This error message shouldn't happen. What is in the configuration file? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools <>___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
Re: [et-mgmt-tools] virt-p2v problems
On Tue, Jul 14, 2009 at 11:19:44AM -0300, Ribeiro Emerson Gomes wrote: > [r...@blpc6]# virsh define p2v-emerson3_br_scania_com-200907131614.conf > libvir: error : configuration file syntax error: expecting a name This error message shouldn't happen. What is in the configuration file? Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools
[et-mgmt-tools] virt-p2v problems
Hello everyone, I'm giving virt-p2v a try to see if I can use it to migrate several RHEL physical nodes into XEN guests. First of all, I apologize for the long message, but I want to provide as many information as I can so somebody might have a clue of what is going on here. Here's my test lab: * Test physical node: Dell Optiplex GX270, 512mb ram, 75Gb hd, running CentOS 5.3 (i386) minimal install [r...@emerson3 ~]# uname -a Linux emerson3.br.scania.com 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux * XEN Host: Dell 2950, 32Gb RAM, connect to a SAN, running CentOS (x86_64) [r...@blpc6]# uname -a Linux blpc6.br.scania.com 2.6.18-128.1.1.el5xen #1 SMP Mon Jan 26 14:19:09 EST 2009 x86_64 x86_64 x86_64 GNU/Linux [r...@blpc6]# rpm -qa | grep xen kernel-xen-2.6.18-128.1.1.el5 kmod-gfs-xen-0.1.31-3.el5 xen-libs-3.0.3-80.el5 xen-3.0.3-80.el5 kmod-cmirror-xen-0.1.21-10.el5 kmod-openafs-xen-1.4.8-1.1.2.6.18_128.1.1.el5 Then I downloaded virt-p2v-0.9.9.iso, booted emerson3 off it, answered all question and left the migration to complete overnight. This morning after make sure there was a "migration finished successfully" kind of message on emerson3 console, I connected blpc6 (my XEN host) and entered: [r...@blpc6]# virsh define p2v-emerson3_br_scania_com-200907131614.conf libvir: error : configuration file syntax error: expecting a name Domain emerson3_br_scania_com defined from p2v-emerson3_br_scania_com-200907131614.conf Although I found the syntax error weird, it created the XEN conf file: [r...@blpc6]# cat /etc/xen/emerson3_br_scania_com name = "emerson3_br_scania_com" uuid = "e955544d84e58d791482e6d8cf4d1da2" maxmem = 2046 memory = 2046 vcpus = 1 builder = "hvm" kernel = "/usr/lib/xen/boot/hvmloader" boot = "c" pae = 1 acpi = 1 apic = 1 localtime = 0 device_model = "/usr/lib64/xen/bin/qemu-dm" sdl = 0 vnc = 1 vncunused = 0 vncdisplay = "-5900" disk = [ "file:/stage/blvd11/p2v-emerson3_br_scania_com-200907131614-hda.img,hda, w" ] vif = [ "mac=00:16:3e:73:c7:15" ] I decided then to go ahead and try to start the domain: [r...@blpc6]# virsh start emerson3_br_scania_com libvir: error : configuration file syntax error: expecting a name Domain emerson3_br_scania_com started [r...@blpc6]# virsh list Id Name State -- 0 Domain-0 running 113 emerson3_br_scania_com no state No state?? Have never seen it... [r...@blpc6]# virsh console emerson3_br_scania_com No console available for domain The machine does not ping after 15 minutes, so I assume it didn't started ok. Checking XEN logs: [r...@blpc6]# tail xend.log [2009-07-14 11:07:39 xend 26869] DEBUG (DevController:496) hotplugStatusCallback /local/domain/0/backend/vbd/113/768/hotplug-status. [2009-07-14 11:07:39 xend 26869] DEBUG (DevController:510) hotplugStatusCallback 1. [2009-07-14 11:07:39 xend 26869] DEBUG (DevController:154) Waiting for devices irq. [2009-07-14 11:07:39 xend 26869] DEBUG (DevController:154) Waiting for devices vkbd. [2009-07-14 11:07:39 xend 26869] DEBUG (DevController:154) Waiting for devices vfb. [2009-07-14 11:07:39 xend 26869] DEBUG (DevController:154) Waiting for devices pci. [2009-07-14 11:07:39 xend 26869] DEBUG (DevController:154) Waiting for devices ioports. [2009-07-14 11:07:39 xend 26869] DEBUG (DevController:154) Waiting for devices tap. [2009-07-14 11:07:39 xend 26869] DEBUG (DevController:154) Waiting for devices vtpm. [2009-07-14 11:07:39 xend 26869] INFO (XendDomain:380) Domain emerson3_br_scania_com (113) unpaused. [r...@blpc6]# cat qemu-dm.27016.log domid: 113 qemu: the number of cpus is 1 Watching /local/domain/113/logdirty/next-active /etc/xen/qemu-ifup: could not launch network script Could not initialize device 'tap' This XEN host is able to start other XEN guests successfully, so network is working fine. I have no idea what TAP device is. Any clues? Thanks in advance, Emerson Ribeiro Infomate @ Scania Latin America Ltda 55 11 4344-8905 ___ et-mgmt-tools mailing list et-mgmt-tools@redhat.com https://www.redhat.com/mailman/listinfo/et-mgmt-tools