Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #####################################################################################
- ### REPLACING STOCK CENTOS/RHEL LIBVIRT 0.10.2 with 1.2.3 with RBD/CEPH support ###
- #####################################################################################
- #####################################################################################
- #####################################################################################
- #qemu-kvm and qemu-kvm-tools must be installed
- ######################################################
- ### COMPILE AND MAKE, PREPARE FOR MAKE INSTALL: ###
- ######################################################
- mkdir /root/src-DONT-TOUCH/
- cd /root/src-DONT-TOUCH/
- pwd
- wget http://libvirt.org/sources/libvirt-1.2.3.tar.gz
- tar -zxf libvirt-1.2.3.tar.gz
- cd libvirt-1.2.3/
- yum install libxml2-devel device-mapper-devel libpciaccess-devel libpciaccess libnl-devel gnutls-devel yajl-devel libblkid-devel ceph-devel libcurl-devel python-devel ncurses-devel
- yum install gcc make autoconf automake bison byacc flex gcc gcc-c++ gettext libstdc++ libtool make patch rpm-build glib2*
- yum install numactl numactl-devel
- ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --libdir=/usr/lib64 --with-numactl --with-numad --with-storage-rbd --with-curl --with-blkid
- make
- #backup original config files
- rsync -av /etc/libvirt/ /etc/libvirt-stock-version/
- cp /etc/sysconfig/libvirtd /etc/libvirt-stock-version-sysconfig-libvirtd
- cp /etc/sysconfig/libvirt-guests /etc/libvirt-stock-version-sysconfig-libvirt-guests
- #################################################################
- ### CS2: REMOVE OLD LIBCIRT, MAKE INSTALL NEW EDIT CONFIG FILES #
- #################################################################
- rpm -e --nodeps libvirt
- rpm -e --nodeps libvirt-client
- cd libvirt-1.2.3/
- make install
- ldconfig
- #FIREWALL WAS MODIFIED BY INSTALL
- service iptables stop
- chkconfig iptables off
- #DELETE DEFAULT NETWORK
- virsh net-destroy default
- virsh net-undefine default
- EDIT: /etc/libvirt/libvirtd.conf
- # compare with RPMSAVE version
- listen_tcp=1
- tcp_port="16509"
- auth_tcp="none"
- listen_tls=0
- mdns_adv = 0
- EDIT /etc/libvirt/qemu.conf
- # compare with RPMSAVE version
- cgroup_controllers=["cpu"]
- security_driver="none"
- user="root"
- group="root"
- vnc_listen="0.0.0.0"
- /etc/sysconfig/libvirtd
- # compare with RPMSAVE version
- export CGROUP_DAEMON='cpu:/virt'
- LIBVIRTD_ARGS=-l
- service libvirtd restart
- chkconfig --add libvirtd
- chkconfig libvirtd on
- RESTART EACH VM, try to deploy new VM, etc...
Advertisement
Add Comment
Please, Sign In to add comment