Hi all.
I use Cobbler to manage my PXE boot. I would like to extend my use to manage VM deployment with Koan. But I have a problem related to network and my VM can't boot. I have already posted on Cobbler mailing-list but it's probably on kvm/libvirt side...
I
am on Fedora 10 with Cobbler 1.6.4 and Koan 1.6.3 (latest available
from stable repos), and libvirt 0.5.1-2.fc10. I would like to create VMs using KVM thus I have
imported FC10 DVD, added Everything and Updates repos and created a
host using the profile created during import. The system has the
following properties :
root# cobbler system report vmtest
system                : vmtest
profile               : fedora-core-10-x86_64
comment               : 
created               : Fri May  8 13:43:40 2009
gateway               : 192.168.1.254
hostname              : vmtest
image                 : 
kernel options        : {}
kernel options post   : {}
kickstart             : <<inherit>>
ks metadata           : {}
mgmt classes          : []
modified              : Sat May 23 18:42:59 2009
name servers          : []
name servers search   : []
netboot enabled?      : True
owners                : ['admin']
redhat mgmt key       : <<inherit>>
redhat mgmt server    : <<inherit>>
server                : <<inherit>>
template files        : {}
virt cpus             : <<inherit>>
virt file size        : <<inherit>>
virt path             : <<inherit>>
virt ram              : <<inherit>>
virt type             : <<inherit>>
power type            : ipmitool
power address         : 
power user            : 
power password        : 
power id              : 
interface        : eth0
  mac address    : ff:00:00:01:00:00
  bonding        : 
  bonding_master : 
  bonding_opts   : 
  is static?     : True
  ip address     : 192.168.1.201
  subnet         : 255.255.255.0
  static routes  : []
  dns name       : vmtest.local
  dhcp tag       : 
  virt bridge    : br0
As
you can see, I use a bridged network with a real bridge create with the
method described on the wiki (eth0 is the real interface and br0 the
bridge).
Then I create the VM using : koan --server=cobbler.evenit.info --virt --system=vmtest
The
VM is correctly created and started : kernel and initrd are correctly
set, virtual hard drive is right and network interface seems right.
root# ps -edf | grep kvm
root     19484 23655 67 21:54 ?       
00:00:06 /usr/bin/qemu-kvm -S -M pc -m 256 -smp 1 -name vmtest -monitor
pty -no-reboot -boot c -kernel /var/lib/libvirt/boot/