Hi I've figured out (I think) xen networking at last, and can now
build guests with
koan.

I used this command line on the dom0:

koan --system=indra --virt --nogfx

(see attachment for full output).

The install works as any other Cobbler-based PXE kickstart (I can
watch it with 'virsh console indra', but when the domain
reboots (after the install) it disappears, and I can't find it!

It doesn't show up in 'xm list' or 'virsh list'

There's an 'error' in the koan output:

libvir: Xen error : Domain not found: xenUnifiedDomainLookupByUUID
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName

but I'm assuming that's libvirt not being able to find the domain,
because it doesn't exist yet.
[r...@vera ~]# koan --system indra --virt -v --nogfx
- looking for Cobbler at http://cobblerbox/cobbler_api
- reading URL: http://cobblerbox/cblr/svc/op/ks/system/indra
install_tree: http://cobblerbox:80/cblr/links/centos-53-xen-i386
libvirtd (pid 2834) is running...
downloading initrd initrd.img to /var/lib/xen/initrd.img
url=http://cobblerbox/cobbler/images/centos-53-xen-i386/initrd.img
- reading URL: http://cobblerbox/cobbler/images/centos-53-xen-i386/initrd.img
downloading kernel vmlinuz to /var/lib/xen/vmlinuz
url=http://cobblerbox/cobbler/images/centos-53-xen-i386/vmlinuz
- reading URL: http://cobblerbox/cobbler/images/centos-53-xen-i386/vmlinuz
Sat, 26 Sep 2009 07:34:34 DEBUG    Disk path not found: Assuming file disk type.
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByUUID
libvir: Xen error : Domain not found: xenUnifiedDomainLookupByName
Sat, 26 Sep 2009 07:34:34 DEBUG    Creating guest from '<domain type='xen'>
  <name>indra</name>
  <currentMemory>262144</currentMemory>
  <memory>262144</memory>
  <uuid>a3c46395-283c-403e-b1d0-ef816cf4beaf</uuid>
  <os>
    <type>linux</type>
    <kernel>/var/lib/xen/vmlinuz</kernel>
    <initrd>/var/lib/xen/initrd.img</initrd>
    <cmdline>ks=http://cobblerbox/cblr/svc/op/ks/system/indra ksdevice=link 
kssendmac lang= text </cmdline>
  </os>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <vcpu>1</vcpu>
  <devices>
    <disk type='file' device='disk'>
      <source file='/var/lib/xen/images/indra-disk0'/>
      <target dev='xvda'/>
    </disk>

    <interface type='bridge'>
      <source bridge='xenbr0'/>
      <mac address='00:16:3e:7d:f2:f6'/>
    </interface>

    <input type='mouse' bus='xen'/>

  </devices>
</domain>
'
Sat, 26 Sep 2009 07:34:35 DEBUG    Created guest, looking to see if it is 
running
Sat, 26 Sep 2009 07:34:35 DEBUG    Saving XML boot config '<domain type='xen'>
  <name>indra</name>
  <currentMemory>262144</currentMemory>
  <memory>262144</memory>
  <uuid>a3c46395-283c-403e-b1d0-ef816cf4beaf</uuid>
  <bootloader>/usr/bin/pygrub</bootloader>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <vcpu>1</vcpu>
  <devices>
    <disk type='file' device='disk'>
      <source file='/var/lib/xen/images/indra-disk0'/>
      <target dev='xvda'/>
    </disk>

    <interface type='bridge'>
      <source bridge='xenbr0'/>
      <mac address='00:16:3e:7d:f2:f6'/>
    </interface>

    <input type='mouse' bus='xen'/>

  </devices>
</domain>
'
use virt-manager or reconnect with virsh console indra
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to