Difference: RunningVirtualMachineInstances (3 vs. 4)

Revision 42012-08-31 - AndreaCristofori

Line: 1 to 1
 
META TOPICPARENT name="GestioneOpenstack"

Running Virtual Machine Instances

Line: 81 to 81
 
  • Use the nova boot command to launch a new virtual machine instance. We'll use an m1.small instance in this example, using the CirrOS image. We also need to give this virtual machine instance a name, we'll call it cirros. We will explicitly specify the default security group in this example, although this isn't strictly necessary since the default group will be used if no security group is specified.
Added:
>
>
# nova boot --flavor 2 --image ba70321b-7bb9-4fc5-a2d4-406fdd8d589d --security_group default cirros
+-------------------------------------+--------------------------------------+
|               Property              |                Value                 |
+-------------------------------------+--------------------------------------+
| OS-DCF:diskConfig                   | MANUAL                               |
| OS-EXT-SRV-ATTR:host                | None                                 |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None                                 |
| OS-EXT-SRV-ATTR:instance_name       | instance-00000001                    |
| OS-EXT-STS:power_state              | 0                                    |
| OS-EXT-STS:task_state               | scheduling                           |
| OS-EXT-STS:vm_state                 | building                             |
| accessIPv4                          |                                      |
| accessIPv6                          |                                      |
| adminPass                           | butvH8mKppBF                         |
| config_drive                        |                                      |
| created                             | 2012-08-31T13:36:54Z                 |
| flavor                              | m1.small                             |
| hostId                              |                                      |
| id                                  | e527c23d-15c4-4316-85c4-65b6db120f17 |
| image                               | cirros-0.3.0-x86_64                  |
| key_name                            |                                      |
| metadata                            | {}                                   |
| name                                | cirros                               |
| progress                            | 0                                    |
| status                              | BUILD                                |
| tenant_id                           | c10d9c9f296b47f8a1212dd7a98357e0     |
| updated                             | 2012-08-31T13:36:54Z                 |
| user_id                             | b0305faa3ace4671bc0399e71a0a1cc1     |
+-------------------------------------+--------------------------------------+


# virsh list
 Id    Name                           State
----------------------------------------------------
 1     instance-00000001              running


# nova list
+--------------------------------------+--------+--------+----------+
|                  ID                  |  Name  | Status | Networks |
+--------------------------------------+--------+--------+----------+
| e527c23d-15c4-4316-85c4-65b6db120f17 | cirros | ACTIVE |          |
+--------------------------------------+--------+--------+----------+
 -- PaoloVeronesi - 2012-08-31
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback