Create two instances with the following characteristics:
Name |
Network |
Image |
Flavor |
Host |
MyInstance1 |
PROJECT_NET |
cirros-0.4.0 |
tiny |
compute01 |
MyInstance2 |
PROJECT_NET |
cirros-0.4.0 |
tiny |
compute02 |
If necessary, use the openstack image list command to determine the ID of the CirrOS image downloaded in Chapter 2, Installing OpenStack:
Use the following openstack server create commands to boot two instances across two compute nodes in the PROJECT_NET network:
openstack server create
--flavor tiny
--image cirros-0.4.0
--nic net-id=PROJECT_NET
--availability-zone nova:compute01
MyInstance1
openstack server create
--flavor tiny
--image cirros-0.4.0
--nic net-id=PROJECT_NET
--availability-zone nova:compute02
MyInstance2
The openstack server list command can be used to return a list of instances and their IP addresses:
On compute01, a Linux bridge has been created that corresponds to the PROJECT_NET network. When connected to the bridge, we can find a VLAN interface and the tap interface that corresponds to MyInstance1:
On compute02, we can find the tap interface that corresponds to MyInstance2 is connected to the Linux bridge dedicated to the respective port: