We added our own vhostuser port to br-int and use virsh command and cirros-dpdk-vhostuserclient.xml to create VM. The manually created vhostuser port can work.
1. Create vhostuser port:
ovs-vsctl add-port br-int vhost-user-1 -- set Interface vhost-user-1 type=dpdkvhostuserclient
options:vhost-server-path=/var/run/openvswitch/vhost-user-1
2. Download image on controller-0 and scp image to compute-0
wget http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
scp cirros-0.3.4-x86_64-disk.img wrsroot@compute-0:~/
3. Copy image to directory /var/lib/nova/instances for creating VM
cp cirros-0.3.4-x86_64-disk.img /var/lib/nova/instances/
4. Bring up br-int to verify the connectivity:
sudo ifconfig br-int 192.168.101.1/24 up
2. Create VM:
virsh create cirros-dpdk-vhostuserclient.xml
4. Manually assign an IP to VM:
sudo ifconfig eth0 192.168.101.18/24 up
5. In created VM, ping br-int:
ping 192.168.101.1
We added our own vhostuser port to br-int and use virsh command and cirros- dpdk-vhostuserc lient.xml to create VM. The manually created vhostuser port can work.
1. Create vhostuser port: serclient vhost-server- path=/var/ run/openvswitch /vhost- user-1 download. cirros- cloud.net/ 0.3.4/cirros- 0.3.4-x86_ 64-disk. img 0.3.4-x86_ 64-disk. img wrsroot@ compute- 0:~/ nova/instances for creating VM 0.3.4-x86_ 64-disk. img /var/lib/ nova/instances/ dpdk-vhostuserc lient.xml
ovs-vsctl add-port br-int vhost-user-1 -- set Interface vhost-user-1 type=dpdkvhostu
options:
2. Download image on controller-0 and scp image to compute-0
wget http://
scp cirros-
3. Copy image to directory /var/lib/
cp cirros-
4. Bring up br-int to verify the connectivity:
sudo ifconfig br-int 192.168.101.1/24 up
2. Create VM:
virsh create cirros-
4. Manually assign an IP to VM:
sudo ifconfig eth0 192.168.101.18/24 up
5. In created VM, ping br-int:
ping 192.168.101.1
The ping succeeds.