Locate VM in OpenStack by OpenStack Way
I came across the following links, which are excellent post.This discusses about
how to locate an Instance in Open Stack by using the Open Stack API.
http://www.sebastien-han.fr/blog/2012/12/20/where-does-my-instance-run/
http://www.stratoscale.com/blog/openstack/list-and-find-vm-in-openstack-nova/
To Know the Hypervisors attached to the Controller Node
nova hypervisor-list

To Know about the list of instances running in a particular Compute Node,.
This will not list the IP Address of the VMs
nova hypervisor-servers <Hypervisor Host Name>

To Know about the list of open stack instances running and IP Address
in a particular Compute Node,.
nova list --host <Hypervisor Host Name>

To find stopped VMs, ,
To find deleted VMs, or stopped servers, there are two options available:
or
Another Command to check where the VMs in all states ( Running, Deleted, Shut Down etc)
I came across the following links, which are excellent post.This discusses about
how to locate an Instance in Open Stack by using the Open Stack API.
http://www.sebastien-han.fr/blog/2012/12/20/where-does-my-instance-run/
http://www.stratoscale.com/blog/openstack/list-and-find-vm-in-openstack-nova/
To Know the Hypervisors attached to the Controller Node
nova hypervisor-list
To Know about the list of instances running in a particular Compute Node,.
This will not list the IP Address of the VMs
nova hypervisor-servers <Hypervisor Host Name>
To Know about the list of open stack instances running and IP Address
in a particular Compute Node,.
nova list --host <Hypervisor Host Name>
To find stopped VMs, ,
nova list --status SHUTOFF
To find deleted VMs, or stopped servers, there are two options available:
nova list --status DELETED
or
nova list --deleted
Another Command to check where the VMs in all states ( Running, Deleted, Shut Down etc)
nova-manage vm list | column -t
To know the disk file of the VM
ls -al /var/lib/nova/instances/
To Know about a particular Instance,
nova show <VM Name>
No comments:
Post a Comment