Hi all.<br><br>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...<br>
<br>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 :<br>
<br><span style="font-family: courier new,monospace;">root# cobbler system report vmtest</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">system                : vmtest</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">profile               : fedora-core-10-x86_64</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">comment               : </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">created               : Fri May  8 13:43:40 2009</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">gateway               : 192.168.1.254</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">hostname              : vmtest</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">image                 : </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">kernel options        : {}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">kernel options post   : {}</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">kickstart             : <<inherit>></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ks metadata           : {}</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">mgmt classes          : []</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">modified              : Sat May 23 18:42:59 2009</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">name servers          : []</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">name servers search   : []</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">netboot enabled?      : True</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">owners                : ['admin']</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">redhat mgmt key       : <<inherit>></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">redhat mgmt server    : <<inherit>></span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">server                : <<inherit>></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">template files        : {}</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">virt cpus             : <<inherit>></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">virt file size        : <<inherit>></span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">virt path             : <<inherit>></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">virt ram              : <<inherit>></span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">virt type             : <<inherit>></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">power type            : ipmitool</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">power address         : </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">power user            : </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">power password        : </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">power id              : </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">interface        : eth0</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  mac address    : ff:00:00:01:00:00</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  bonding        : </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  bonding_master : </span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  bonding_opts   : </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  is static?     : True</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  ip address     : 192.168.1.201</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  subnet         : 255.255.255.0</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  static routes  : []</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  dns name       : vmtest.local</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  dhcp tag       : </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  virt bridge    : br0</span><br><br>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).<br>
Then I create the VM using : <span style="font-family: courier new,monospace;">koan --server=<a href="http://cobbler.evenit.info/" target="_blank">cobbler.evenit.info</a> --virt --system=vmtest</span><br>The
VM is correctly created and started : kernel and initrd are correctly
set, virtual hard drive is right and network interface seems right.<br>
<br>root# ps -edf | grep kvm<br>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/<div id=":16d" class="ii gt">virtinst-vmlinuz.omv9yr -initrd /var/lib/libvirt/boot/virtinst-initrd.img.Ufj-qc -append ks=<a href="http://cobbler.evenit.info/cblr/svc/op/ks/system/vmtest" target="_blank">http://cobbler.evenit.info/cblr/svc/op/ks/system/vmtest</a> ksdevice=link kssendmac lang= text  method=<a href="http://cobbler.evenit.info/cblr/links/fedora-core-10-x86_64/" target="_blank">http://cobbler.evenit.info:80/cblr/links/fedora-core-10-x86_64/</a> -drive file=/var/lib/libvirt/images/vmtest-disk0,if=virtio,index=0,boot=on -net nic,macaddr=ff:00:00:01:00:00,vlan=0,model=virtio -net tap,fd=14,script=,vlan=0,ifname=vnet0 -serial pty -parallel none -usb -vnc <a href="http://127.0.0.1:0/" target="_blank">127.0.0.1:0</a> -k en-us<br>

<br>But, when I open the VM display with virt-manager, I see that
installation can't start as DHCP is not answering... There's no trace
of the DHCP requests on DHCP server and vnet0 seems to have no trafic :<br><br>
[root@lilith ~]# netstat -i<br>Table d'interfaces noyau<br>Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg<br>br0        1500   0   173524      0      0      0   261005      0      0      0 BMRU<br>

eth0       1500   0   173589      0      0      0   260909      0      0      0 BMPRU<br>lo        16436   0    29105      0      0      0    29105      0      0      0 LRU<br>vnet0      1500   0        0      0      0      0        1      0      0      0 BMRU<br>

<br>As far as I can see, it seems vnet0 doesn't forward its trafic to br0 like there's no link.<br>I
have also seen that the vnet0 interface seen from host (opposed to
guest) doesn't have the MAC address asked for vnet0, but this may be
normal.<br>
<br><br>-- <br><font color="#888888">Fabien</font></div>