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

Example Analysis of nova of Common commands in openstack

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

Share

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

This article will explain in detail the example analysis of the nova of commonly used openstack commands. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

1. View openstack version

Nova-manage version

two。 View Node

Nova host-list

3. View compute nodes

Nova hypervisor-list

4. Check which virtual machines are on the compute node

Nova hypervisor-servers compute1

5. View a list of virtual machines

Nova list

6. View the list of images

Nova image-list

7. View a list of volumes

Nova volume-list

8. View a list of key pairs

Nova keypair-list

9. View flavor list

Nova flavor-list

10. View a list of floating ip

Nova-manage floating list

Nova floating-ip-list

11. View a list of security groups

Nova secgroup-list

twelve。 View a list of security group rules

Nova secgroup-list-rules default

13. View floating ip

Nova floating-ip-list

14. View virtual machine

Nova show ID

15. Suspend / restore / start / shut down / delete virtual machine

Nova suspend/resume/srart/stop/delete ID

16. (hard) restart virtual machine

Nova reboot (--hard) ID

16a. Rescue mode

Nova rescue VM_ID

16b. Restart the virtual machine from rescue mode to normal mode

Nova unrescue VM_ID

16c. Enter rescue mode using the specified image

Nova rescue-rescue_image_ref IMAGE_ID VM_ID

17. Online migration

Nova live-migration ID compute1

18. Create key

Nova keypair-add oskey > oskey.priv

Chmod 600 oskey.priv

19. Create / delete floating ip pool

Nova floating-ip-bulk-create/delete 192.168.0.200/29

20. Create a floating ip

Nova floating-ip-create

21. Delete floating ip

Nova floating-ip-delete xxx.xxx.xxx.xxx

twenty-two。 Bind / unbind floating ip

Nova floating-ip-associate ID xxx.xxx.xxx.xxx

23. New virtual machine

Nova boot-image image-ID-flavor m1.medium-key_name abc-availability_zone nova:compute1.cloud.internal vmname

23a. Create a new virtual machine through a block device

Cinder create-image-id IMAGE_ID-name VOLUME_NAME SIZE_IN_GB

Nova boot-falvor FLAVOR_IDsource=volume,id=VOLUME_ID,dest=volume,shutdown=preserve,bootindex=0 VMNAME

24. Add / remove floating ip

Nova add/remove-floating-ip ID xxx.xxx.xxx.xxx

25. Mount the cloud disk

Nova volume-attach ID VOLNAME / dev/sdb

twenty-six。 Uninstall cloud disk

Nova volume-detach ID VOLNAME

twenty-seven。 Create a snapshot

Nova image-create ID "snapshot 1"

Adjust virtual machine resourc

Nova resize VM_NAME FLAVOR_ID-poll

Confirm to adjust virtual machine resources

Nova resize-confirm VM_ID

If resource adjustment fails, roll back

Nova resize-revert VM_ID

Database synchronization

Nova-manage db sync

View error log

Nova-manage logs errors

This is the end of this article on "sample analysis of nova of common openstack commands". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

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: 0

*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