* Package list
!profile.packages mADD(xen-libs-3.0.3-94.el5_4.1)
!profile.packages mADD(kvm-kmod-2.6.30.1-1.phys)
!profile.packages mADD(xen-devel-3.0.3-94.el5_4.1)
!profile.packages mADD(qemu-kvm-0.11.0-1.phys)
!profile.packages mADD(qemu-img-0.10.5-1.el5.2)
!profile.packages mADD(libvirt-python-0.6.4-3.phys)
!profile.packages mADD(libvirt-devel-0.6.4-3.phys)
!profile.packages mADD(libvirt-0.6.4-3.phys)
!profile.packages mADD(qemu-0.10.5-1.el5.2)
!profile.packages mADD(qemu-common-0.10.5-1.el5.2)
!profile.packages mADD(qemu-user-0.10.5-1.el5.2)
!profile.packages mADD(qemu-system-ppc-0.10.5-1.el5.2)
!profile.packages mADD(qemu-system-mips-0.10.5-1.el5.2)
!profile.packages mADD(qemu-system-sh4-0.10.5-1.el5.2)
!profile.packages mADD(pulseaudio-libs-0.9.10-1.el5.3)
!profile.packages mADD(qemu-system-x86-0.10.5-1.el5.2)
!profile.packages mADD(qemu-system-sparc-0.10.5-1.el5.2)
!profile.packages mADD(qemu-system-cris-0.10.5-1.el5.2)
!profile.packages mADD(qemu-system-m68k-0.10.5-1.el5.2)
!profile.packages mADD(qemu-system-arm-0.10.5-1.el5.2)
!profile.packages mADD(virt-manager-0.5.3-10.el5)
!profile.packages mADD(python-virtinst-0.300.2-12.sl.1/noarch)
* Component conf
!profile.components mADD(libvirt)
!profile.version_libvirt mSET(1)
!profile.packages mADD(lcfg-libvirt-0.0.1_dev-3/noarch)
!boot.services mADD(lcfg_libvirt)
!boot.stop_lcfg_libvirt mSET(5 restart)
!logserver.components mADD(libvirt)
* KVM bridging network
!network.interfaces mREMOVE(eth0)
!file.files mADD(eth0)
file.file_eth0 /etc/sysconfig/network-scripts/ifcfg-eth0
file.type_eth0 literal
file.mode_eth0 0644
!file.tmpl_eth0 mSET(DEVICE=eth0\nHWADDR=XX:XX:XX:XX:XX:XX\nONBOOT=yes\nBRIDGE=br0)
!file.files mADD(br0)
file.file_br0 /etc/sysconfig/network-scripts/ifcfg-br0
file.type_br0 literal
file.mode_br0 0644
!file.tmpl_br0 mSET(DEVICE=br0\nTYPE=Bridge\nBOOTPROTO=dhcp\nONBOOT=yes)
- 22/12/09
A patch for lcfg-network was created to support the creation of bridge interfaces. The following should do the trick once a new release of the lcfg-network component will be availalbe:
!network.interfaces mADD(eth0 br0)
!network.hwaddr_eth0 mSET(XX:XX:XX:XX:XX:XX)
!network.bridge_eth0 br0
!network.ipaddr_br0 DHCP
!network.type_br0 Bridge
* KVM guest example
!libvirt.hosttype mSET(kvm)
!libvirt.vms mADD(pe2900x1)
!libvirt.name_pe2900x1 mSET(pe2900x1)
!libvirt.type_pe2900x1 mSET(hvm)
!libvirt.uuid_pe2900x1 mSET(56bcea35-a598-4ce8-97f1-02cba34e7205)
!libvirt.disks_pe2900x1 mADD(root test)
!libvirt.diskname_pe2900x1_root mSET(pe2900x1)
!libvirt.disksize_pe2900x1_root mSET(32)
!libvirt.diskpath_pe2900x1_root mSET(/guests)
!libvirt.diskname_pe2900x1_test mSET(test)
!libvirt.disksize_pe2900x1_test mSET(10)
!libvirt.diskpath_pe2900x1_test mSET(/guests)
!libvirt.boot_pe2900x1 mSET(no)
!libvirt.opts_pe2900x1 mADD(vnc monitor)
!libvirt.optvalue_pe2900x1_vnc mSET(1)
!libvirt.optvalue_pe2900x1_monitor mSET(pty)
!libvirt.nethost_pe2900x1 mADD(vif1 vif2)
!libvirt.hostmac_pe2900x1_vif1 mSET(12:28:ad:12:1f:4d)
!libvirt.bridge_pe2900x1_vif1 mSET(br0)
!libvirt.netmode_pe2900x1_vif1 mSET(bridge)
!libvirt.hostmac_pe2900x1_vif2 mSET(23:12:cc:af:1s:1f)
!libvirt.bridge_pe2900x1_vif2 mSET(default)
!libvirt.netmode_pe2900x1_vif2 mSET(network)
* KVM network sample
!libvirt.networking mADD(routed)
!libvirt.nettype_routed mSET(interface)
!libvirt.netname_routed mSET(routed)
!libvirt.netuuid_routed mSET(56bcea35-a598-4ce8-97f1-02acd24s5125)
!libvirt.bridgename_routed mSET(virbr9)
!libvirt.mode_routed mSET(route)
!libvirt.modedev_routed mSET(eth0)
!libvirt.ipaddr_routed mSET(192.168.1.0)
!libvirt.netmask_routed mSET(255.255.255.0)
!libvirt.dhcpstart_routed mSET(192.168.1.1)
!libvirt.dhcpend_routed mSET(192.168.1.254)
!libvirt.nethost_routed mSET(host1 host2)
!libvirt.hostname_routed_host1 mSET(test)
!libvirt.hostmac_routed_host1 mSET(00:1E:C9:53:29:AD)
!libvirt.hostip_routed_host1 mSET(1.1.1.1)
!libvirt.hostname_routed_host2 mSET(test2)
!libvirt.hostmac_routed_host2 mSET(00:1E:C9:53:29:CD)
!libvirt.hostip_routed_host2 mSET(2.2.2.2)
* Xen guest sample
!libvirt.hosttype mSET(xen)
!libvirt.vms mADD(pe2900x1)
!libvirt.name_pe2900x1 mSET(pe2900x1)
!libvirt.type_pe2900x1 mSET(hvm)
!libvirt.uuid_pe2900x1 mSET(56bcea35-a598-4ce8-97f1-02cba34e7205)
!libvirt.disks_pe2900x1 mADD(root test)
!libvirt.diskname_pe2900x1_root mSET(pe2900x1)
!libvirt.disksize_pe2900x1_root mSET(32)
!libvirt.diskpath_pe2900x1_root mSET(/guests)
!libvirt.diskname_pe2900x1_test mSET(test)
!libvirt.disksize_pe2900x1_test mSET(10)
!libvirt.diskpath_pe2900x1_test mSET(/guests)
!libvirt.boot_pe2900x1 mSET(no)
!libvirt.nethost_pe2900x1 mADD(vif1)
!libvirt.hostmac_pe2900x1_vif1 mSET(12:28:ad:12:1f:4d)
!libvirt.bridge_pe2900x1_vif1 mSET(xenbr0)
!libvirt.script_pe2900x1_vif1 mSET(vif-bridge)
!libvirt.netmode_pe2900x1_vif1 mSET(bridge)
-- Main.pkritika - 2009-12-02