mirror of
https://github.com/Erreur32/cheat.git
synced 2024-10-31 21:11:07 +01:00
First version of nova cheat
This commit is contained in:
parent
417f47f037
commit
fd7f31bf16
20
cheat/cheatsheets/nova
Normal file
20
cheat/cheatsheets/nova
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# To list VMs on current tenant:
|
||||||
|
nova list
|
||||||
|
|
||||||
|
# To list VMs of all tenants (admin user only):
|
||||||
|
nova list --all-tenants
|
||||||
|
|
||||||
|
# To boot a VM on a specific host:
|
||||||
|
nova boot --nic net-id=<net_id> \
|
||||||
|
--image <image_id> \
|
||||||
|
--flavor <flavor> \
|
||||||
|
--availability-zone nova:<host_name> <vm_name>
|
||||||
|
|
||||||
|
# To stop a server
|
||||||
|
nova stop <server>
|
||||||
|
|
||||||
|
# To start a server
|
||||||
|
nova start <server>
|
||||||
|
|
||||||
|
# To attach a network interface to a specific VM:
|
||||||
|
nova interface-attach --net-id <net_id> <server>
|
Loading…
Reference in New Issue
Block a user