RE: [et-mgmt-tools] virt-p2v problems

2009-07-17 Thread Ribeiro Emerson Gomes
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:

network
  namedefault/name
  uuid8b172bb5-9651-47ff-bb20-6c7881a82fd7/uuid
  bridge name=virbr0 /
  forward/
  ip address=192.168.122.1 netmask=255.255.255.0
dhcp
  range start=192.168.122.2 end=192.168.122.254 /
/dhcp
  /ip
/network

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:
   domain type=xen
 nameemerson3/name
 uuid3ffcff461be5cef1ff45ffe1bb71b17a/uuid
 memory2095104/memory
   /domain
 
 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

2009-07-16 Thread Richard W.M. Jones
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 
 !--
   This is an automatically generated libvirt configuration file.
   It was written by the virt-p2v program.
 
   Please check the values in this configuration file carefully,
   particularly maxmem, memory, vcpu and any paths.
 
   To start the domain, do:
 virsh define p2v-emerson3_br_scania_com-200907150846.conf
 virsh start emerson3_br_scania_com
 --
 
 domain type=xen
   nameemerson3_br_scania_com/name
   uuid3ffcff461be5cef1ff45ffe1bb71b17a/uuid
   memory2095104/memory
   maxmem2095104/maxmem
   vcpu1/vcpu
   os
 typehvm/type
 loader/usr/lib/xen/boot/hvmloader/loader
 boot dev=hd/
   /os
   features
 pae/
 acpi/
 apic/
   /features
   clock sync=localtime/
   devices
 emulator/usr/lib64/xen/bin/qemu-dm/emulator
 interface type=user
   mac address=00:16:3e:cf:c6:e8/
 /interface
 graphics type=vnc/
 disk type=file device=disk
   source 
 file=/stage/blvd11/p2v-emerson3_br_scania_com-200907150846-hda.img/
   target dev=hda/
 /disk
   /devices
 /domain

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

2009-07-16 Thread Ribeiro Emerson Gomes
Hey,

I narrowed the config file down to:
domain type=xen
  nameemerson3/name
  uuid3ffcff461be5cef1ff45ffe1bb71b17a/uuid
  memory2095104/memory
/domain

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 
 !--
   This is an automatically generated libvirt configuration file.
   It was written by the virt-p2v program.
 
   Please check the values in this configuration file carefully,
   particularly maxmem, memory, vcpu and any paths.
 
   To start the domain, do:
 virsh define p2v-emerson3_br_scania_com-200907150846.conf
 virsh start emerson3_br_scania_com
 --
 
 domain type=xen
   nameemerson3_br_scania_com/name
   uuid3ffcff461be5cef1ff45ffe1bb71b17a/uuid
   memory2095104/memory
   maxmem2095104/maxmem
   vcpu1/vcpu
   os
 typehvm/type
 loader/usr/lib/xen/boot/hvmloader/loader
 boot dev=hd/
   /os
   features
 pae/
 acpi/
 apic/
   /features
   clock sync=localtime/
   devices
 emulator/usr/lib64/xen/bin/qemu-dm/emulator
 interface type=user
   mac address=00:16:3e:cf:c6:e8/
 /interface
 graphics type=vnc/
 disk type=file device=disk
   source
file=/stage/blvd11/p2v-emerson3_br_scania_com-200907150846-hda.img/
   target dev=hda/
 /disk
   /devices
 /domain

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

2009-07-15 Thread Ribeiro Emerson Gomes
Here goes the conf file:

[r...@blpc6]# cat p2v-emerson3_br_scania_com-200907150846.conf 
!--
  This is an automatically generated libvirt configuration file.
  It was written by the virt-p2v program.

  Please check the values in this configuration file carefully,
  particularly maxmem, memory, vcpu and any paths.

  To start the domain, do:
virsh define p2v-emerson3_br_scania_com-200907150846.conf
virsh start emerson3_br_scania_com
--

domain type=xen
  nameemerson3_br_scania_com/name
  uuid3ffcff461be5cef1ff45ffe1bb71b17a/uuid
  memory2095104/memory
  maxmem2095104/maxmem
  vcpu1/vcpu
  os
typehvm/type
loader/usr/lib/xen/boot/hvmloader/loader
boot dev=hd/
  /os
  features
pae/
acpi/
apic/
  /features
  clock sync=localtime/
  devices
emulator/usr/lib64/xen/bin/qemu-dm/emulator
interface type=user
  mac address=00:16:3e:cf:c6:e8/
/interface
graphics type=vnc/
disk type=file device=disk
  source 
file=/stage/blvd11/p2v-emerson3_br_scania_com-200907150846-hda.img/
  target dev=hda/
/disk
  /devices
/domain

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

winmail.dat___
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools