Open vSwitch and Libvirt ======================== NOTE: You need to have access to the physical machine via serial console. With the below commands, connectivity to eth0 will be lost: Install ------- Install the Open vSwitch package, this is on Fedora 19: $ yum install openvswitch -y Enable the openvswitch systemd unit file, and start the daemon: $ systemctl enable openvswitch.service $ systemctl start openvswitch.service Check the status, to ensure the openvswithc service is 'Active': $ systemctl status openvswitch.service Configure Open vSwitch bridge ----------------------------- $ ovs-vsctl add-br ovsbr0 $ ovs-vsctl add-port ovsbr0 eth0 $ ifconfig eth0 0.0.0.0 $ ifconfig ovsbr0 10.65.201.215 Run dhclient on the ovsbr0 interface $ dhclient ovsbr0 & List the OVS database contents: $ ovs-vsctl show 3dc7f3e3-5872-47c0-ba6f-1cb12065f4d0 Bridge "ovsbr0" Port "eth0" Interface "eth0" Port "ovsbr0" Interface "ovsbr0" type: internal ovs_version: "1.10.0" Edit the libvirt guest XML: $ virsh edit f18vm The attribute should look as below:
Once saved, it'll appear as below: $ virsh dumpxml f18vm | grep bridge -A8
Start the guest, and check if it's IP address is on the same subnet as te hosts': $ virsh start fed18vm --console $ ifconfig