Get the App
SLTechnology News&Howtos  ›  Servers  › 

Create a virtual machine using the nova command on the Openstack control node (detailed graphics and text procedure)

Shulou Source: shulou.com Published: 2022-06-02 13:04:55 09月26日 Update

First, we need to understand that creating a virtual machine using the nova command line requires the following information:

GlanceID, flavorID, net-id, security-groupsID, availability-zone (specified parent machine}, keypairname

1. View glance

Use the command: glance image-list to list all the image on the node and select the desired image. Here we choose: 93449941-fba1-436e-a4f2-74a5c1250ad1

2. View flavor

Use the command: nova flavor-list to list all the flavor on the node, select the desired flavor, and we choose m1.smal here.

3. View the network id

(1): use the command: nova network-list can list all current networks. What we choose here is: 006f71f5-a26e-4040-9c12-67cafab70936 | net59

(2): use the command: neutron net-list | grep net59 to know more clearly the IP segment of the virtual machine we created.

4. View security groups

Generally, the security group is set to default, but sometimes it may not be necessary, so we need to check it and then make a choice. Command: nova secgroup-list

What you get here is: 457554a3-20fb-45b3-80af-f15c9d74613b

5. Obtain keypair

Command: nova keypair-list

No content is found here, so you don't have to write it.

6. Or the host name and zone name of the host

Nova:host-10-14-200-27

7. Create a new virtual machine name

Test3

8. Create a virtual machine

Nova boot-- image 93449941-fba1-436e-a4f2-74a5c1250ad1-- flavor m1.small-- nic net-id=006f71f5-a26e-4040-9c12-67cafab70936-- security-groups 457554a3-20fb-45b3-80af-f15c9d74613b-- availability-zone nova:host-10-14-200-27 test3

9. You can use the command: nova list to view the current creation of a virtual machine

You can also see that the current virtual machine is being created normally.

Tags: Command selection node security name network clear host information content host host situation sometimes parent mirror former place picture and text process control Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Tech Info Shulou Information Microsoft OPPO Reno