Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 236

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report