This shows how to access VM instances and perform traffic test after the OpenStack deployment is complete.
About this task
This procedure is an example of accessing VMs to test and verify the OpenStack installation after the installation is complete.
List the VMs using virsh.
virsh list --allAn output example:
Id Name State ----------------------------------- 1 instance-00000001 running 2 instance-00000002 running
Access the VMs.
virsh console <VM instance name>
Compare the MAC addresses of the ports on the host and on the VMs.
Execute the following command on the host to get the MAC address of a port.
openstack port show <port_name> | grep mac_addressFor example:
openstack port show port10 | grep mac_addressAn output example:
| mac_address | fa:16:3e:e8:6c:42Note: The following command must be executed to enable the openstack commands when a new terminal is opened.Check the MAC address on each VM. For example:
ip aNote: If the IP address is not assigned, configure manually.
ip a add <ip>/<netmask> dev eth0For example:
ip a add 192.168.1.10/24 dev eth0
Two VMs should now be connectable via ping.
Test with traffic between two VMs using iperf3.
# Start iperf3 as a server on one VM iperf3 -s # Start bandwidth test on another VM iperf3 -c 192.168.1.X
where X is the last field of the iperf3 server IP address.