Creating instances

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:

When the Linux bridge agent is used, bridges correspond to individual networks, and the names will have a prefix of brq.

On compute02, we can find the tap interface that corresponds to MyInstance2 is connected to the Linux bridge dedicated to the respective port:

When the Open vSwitch agent is used along with the iptables_hybrid firewall driver, bridges correspond to individual ports, and the names will have a prefix of qbr. These bridges are only used to overcome iptables limitations with Open vSwitch virtual switches.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset