From marco.guazzone at gmail.com Sat Jun 6 11:10:07 2015 Content-Type: multipart/mixed; boundary="===============3019178197827370193==" MIME-Version: 1.0 From: Marco Guazzone To: xen at lists.fedoraproject.org Subject: [Fedora-xen] [f20] Problem with libvirt + Xen XL toolstack Date: Tue, 11 Nov 2014 15:50:19 +0100 Message-ID: --===============3019178197827370193== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, Since when libvirt has introduced support for the Xen XL toolstack, I was unable to make it work together. With Fedora 20 x86_64, still I have problems and the only way to use libvirt+Xen is to use the old xend toolstack. Can anybody help me? Here's below is my test. Sorry, the mail is very long... 1. Disable SElinux $ vi /etc/selinux/config SELINUXTYPE=3Ddisabled 2. Install Xen and libvirt $ yum install xen $ yum install libvirt-daemon-xen libvirt-client 3. Disable Network Manager $ systemctl disable NetworkManager $ systemctl stop NetworkManager 4- Create network bridge $ vi /etc/sysconfig/network- scripts/ifcfg-br0 DEVICE=3Dbr0 TYPE=3DBridge BOOTPROTO=3Dnone ONBOOT=3Dyes IPADDR=3D10.10.15.2 NETMASK=3D255.255.255.0 STP=3Dyes DELAY=3D0 DEFROUTE=3Dyes USERCTL=3Dno NM_CONTROLLED=3Dno $ vi /etc/sysconfig/network-scripts/ifcfg-em2 NAME=3Dem2 TYPE=3DEthernet BOOTPROTO=3Dnone ONBOOT=3Dyes BRIDGE=3Dbr0 PEERDNS=3Dyes PEERROUTES=3Dyes DEFROUTE=3Dyes USERCTL=3Dno NM_CONTROLLED=3Dno 5. Enable classic networking $ systemctl enable network $ systemctl start network 6. Reboot with Xen 7. Check xend toolstack is disabled $ systemctl is-enabled xend disabled 8. Create a test VM $ qemu-img-xen create -f raw test.img 10G $ vi testvm.cfg name =3D "testvm" uuid =3D "93f08541-bfd5-4ac4-851d-c619a4516a13" builder =3D "hvm" maxmem =3D 3072 memory =3D 2048 vcpus =3D 1 on_crash =3D "restart" disk =3D [ "file:/root/images/testvm.img,hda,w", "file:/root/iso/CentOS-7.0-1406- x86_64-Minimal.iso,hdc:cdrom,r" ] vif =3D [ "bridge=3Dbr0,script=3Dvif-bridge" ] boot =3D "cd" sdl =3D 0 vnc =3D 1 vncunused =3D 1 xen_platform_pci =3D 1 $ xl create testvm.cfg 9. Open vncviewer and perform installation 10. Shutdown just created VM 11. Create a libvirt XML file $ virsh -c xen:/// domxml-from-native xen-xm testvm.cfg > testvm.xml testvm 93f08541-bfd5-4ac4-851d-c619a4516a13 3145728 2097152 1 hvm /usr/lib/xen/boot/hvmloader destroy restart restart