This is an old revision of the document!
HOST PREPARATION:
https://www.juniper.net/documentation/en_US/vmx/topics/topic-map/vmx-installing-on-kvm.html#id-preparing-the-ubuntu-host-to-install-vmx
Disable KSM by setting KSM_ENABLED=0 in /etc/default/qemu-kvm:
systemctl disable ksm systemctl disable ksmtuned
HUGEPAGES (x2 1G size)
https://oracle-base.com/articles/linux/configuring-huge-pages-for-oracle-on-linux-64
KVM INSTALL:
usermod -a -G libvirt jaime.santos.amandi
INSTALL VAGRANT (NOT with vbox5.1_)
https://www.tecmint.com/how-to-install-vagrant-on-centos-7/
yum -y install https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.rpm vagrant version && vagrant plugin list # to check vagrant version yum install ./vagrant_2.2.5_x86_64.rpm # download the last version
Using The Libvirt Provider With Vagrant
https://github.com/vagrant-libvirt/vagrant-libvirt
https://codingpackets.com/blog/using-the-libvirt-provider-with-vagrant
yum install ruby-devel yum -y install qemu libvirt libvirt-devel ruby-devel gcc vagrant plugin install vagrant-libvirt # works
Create virtual network for vagrant (for the management addresses):
cat << EOF > /var/tmp/vagrant-libvirt-net.xml
<network connections='1'>
<name>vagrant-libvirt</name>
<forward mode='nat'>
<nat>
<port start='1024' end='65535'/>
</nat>
</forward>
<bridge name='virbr1' stp='on' delay='0'/>
<ip address='192.168.121.1' netmask='255.255.255.0'>
<dhcp>
<range start='192.168.121.2' end='192.168.121.254'/>
</dhcp>
</ip>
</network>
EOF
virsh net-define vagrant-libvirt-net.xml virsh net-start vagrant-libvirt virsh net-autostart vagrant-libvirt
https://github.com/vagrant-libvirt/vagrant-libvirt/blob/master/README.md
Before virt-install , add vagrant-libvirt network from
restart libvirtd
For qemu permissions: https://github.com/jedi4ever/veewee/issues/996