openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #23491
[Devstack] [Hyper-V] Instance fails to launch on Hyper-V server
Hi guys,
I'm having an issue deploying a vm to a hyper-v host, i wont boot
note: the disk_image itself was built by that very hyperv host
I'm currently using openstack (devstack) build grizzly
within a Ubuntu 12.04 LTS.
And my HyperV has got the "Hyper-V Nova-Compute Driver"
please, check it out:
I have successfully uploaded (glance image-create) a WinServer
virtual machine from a Hyper-V host with the property
"hypervisor_type=hyperv". Here are the stats:
$ /opt/stack/keystone/etc$ glance image-list
+--------------------------------------+---------------------------------+-------------+------------------+------------+--------+
| ID | Name
| Disk Format | Container Format | Size | Status |
+--------------------------------------+---------------------------------+-------------+------------------+------------+--------+
| d9fbe5db-b852-4832-9deb-c558d559eadf | Windows-Server-2008-R2-x64
| vhd | bare | 7486832640 | active |
+--------------------------------------+---------------------------------+-------------+------------------+------------+--------+
$ glance image-show d9fbe5db-b852-4832-9deb-c558d559eadf
+----------------------------+--------------------------------------+
| Property | Value |
+----------------------------+--------------------------------------+
| Property 'hypervisor_type' | hyperv |
| checksum | 202700a9b2b4f662b62ac5acebc09860 |
| container_format | bare |
| created_at | 2013-05-09T13:33:48 |
| deleted | False |
| disk_format | vhd |
| id | d9fbe5db-b852-4832-9deb-c558d559eadf |
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | Windows-Server-2008-R2-x64 |
| owner | 670f5dd4070d44b6a8308277a236d1af |
| protected | False |
| size | 7486832640 |
| status | active |
| updated_at | 2013-05-09T14:01:02 |
+----------------------------+--------------------------------------+
But for some reason, it won't ever boot.
"nova --boot" is not being able to start it in my HyperV...
$ nova boot hyperv-deploy-test \
--image d9fbe5db-b852-4832-9deb-c558d559eadf \
--flavor 3
+------------------------------------+--------------------------------
| Property | Value
+------------------------------------+--------------------------------
| status | BUILD
| updated | 2013-05-09T16:09:28Z
| OS-EXT-STS:task_state | scheduling
| OS-EXT-SRV-ATTR:host | None
| key_name | None
| image | Windows-Server-2008-R2-x64
| hostId |
| OS-EXT-STS:vm_state | building
| OS-EXT-SRV-ATTR:instance_name | instance-0000001c
| OS-EXT-SRV-ATTR:hypervisor_hostname| None
| flavor | m1.medium
| id | 2ee4e176-1824-4557-ab60-eb32659f7e4c
| security_groups | [{u'name': u'default'}]
| user_id | d920fc85ecd9426ebd9e3f8c7300f5d4
| name | hyperv-deploy-test
| adminPass | q6NxDMXyq7NM
| tenant_id | 670f5dd4070d44b6a8308277a236d1af
| created | 2013-05-09T16:09:28Z
| OS-DCF:diskConfig | MANUAL
| metadata | {}
| accessIPv4 |
| accessIPv6 |
| progress | 0
| OS-EXT-STS:power_state | 0
| OS-EXT-AZ:availability_zone | nova
| config_drive |
+------------------------------------+--------------------------------
I can see that disk_image file within my folder C:\OpenStack\Instances
of the Hyper-V server, that means the transfer to the server was done,
right? Am I missing anything ?
But for some reason, it never goes up to ACTIVE. If crashes to ERROR
$ /opt/stack/keystone/etc$ nova list
+--------------------------------------+--------------------+--------+---------------------+
| ID | Name | Status |
Networks |
+--------------------------------------+--------------------+--------+---------------------+
| 2ee4e176-1824-4557-ab60-eb32659f7e4c | hyperv-deploy-test | ERROR |
public=172.x.y.z |
+--------------------------------------+--------------------+--------+---------------------+
I made sure to have added to the Scheduler filters in
my /etc/nova/nova.conf, as below:
## Setting up Custom Filters
scheduler_available_filters=nova.scheduler.filters.all_filters
schedule_default_filters=ImagePropertiesFilter
--
Thanks a lot!
--
Bruno Oliveira
Follow ups