====== Upgrade LIBVIRT to 1.0.0 compiled (experimental) ====== * Initial deployment (see [[hypervisor:deploy|Deploy KVM + Open vSwitch + iSCSI + Ubuntu 12.04 x64]]) Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-23-generic x86_64)\\ libvirt 0.9.8 (from package)\\ ovs_version: "1.4.0+build0" (from package) * Download souce code # wget http://libvirt.org/sources/libvirt-1.0.0.tar.gz # tar -xvzf libvirt-1.0.0.tar.gz * Install extra packages # apt-get install libxml2-dev libgnutls-dev libyajl-dev libnl-dev pkg-config libdevmapper-dev python-dev * Compile # ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --with-esx=no # make # make install * Edit libvirtd config # diff /etc/libvirt/libvirtd.conf /etc/libvirt/libvirtd.conf.ORI < unix_sock_group = "libvirtd" --- > #unix_sock_group = "libvirt" < unix_sock_rw_perms = "0770" --- > #unix_sock_rw_perms = "0770" < auth_unix_ro = "none" --- > #auth_unix_ro = "none" < auth_unix_rw = "none" --- > #auth_unix_rw = "none" * Remove libvirt default network # virsh net-destroy default # virsh net-autostart --disable default * Edit OpenvSwitch conf # nano -w /etc/default/openvswitch-switch BRCOMPAT=no * Edit OVS bridges Leave only main bridge # ovs-vsctl del-br br2 # ovs-vsctl del-br br3 * Edit interfaces Remove dummy entries in /etc/network/interfaces # nano -w /etc/network/interfaces auto eth0 iface eth0 inet manual up ifconfig $IFACE 0.0.0.0 up down ifconfig $IFACE down auto br0 iface br0 inet manual up ifconfig $IFACE 0.0.0.0 up down ifconfig $IFACE down * Reboot * Configure KVM network # nano -w mynet-ovs.xml ovs-network # virsh net-define mynet-ovs.xml # virsh net-start * VM network example
x ⇒ ⇐ [[hypervisor:fromesxiws|Migrate from esxi 4.1 (Windows server 2003)]] ⇑ [[hypervisor:start|Hypervisor]]