Install vagrant and libvirt provider:
sudo yum install -y vagrant
sudo yum install -y vagrant-libvirt
Avoid having to enter credentials every time vagrant does something with libvirt:
sudo gpasswd -a ${USER} libvirt
newgrp libvirt
Checkout this repository.
git clone https://github.com/hlrichardson/ovn-vagrant
cd ovn-vagrant
Create CentOS VMs (OVN central and two OVN compute nodes)
vagrant up --provider libvirt
Look around in central node:
vagrant ssh central
sudo ovn-sbctl show
exit
Look around in compute1 node:
vagrant ssh compute1
sudo ovs-vsctl show
exit
Look around in compute2 node:
vagrant ssh compute2
sudo ovs-vsctl show
exit
When done, clean up:
vagrant destroy
See also: