← Back to team overview

openstack team mailing list archive

Re: [Devstack] [Hyper-V] Instance fails to launch on Hyper-V server

 

Sorry Bruno, just catching this here.

VHDx is your problem.

Create it as vhd or download one from here:

http://www.cloudbase.it/ws2012/


Peter J. Pouliot, CISSP
Senior SDET, OpenStack

Microsoft 
New England Research & Development Center
One Memorial Drive,Cambridge, MA 02142
PPOULIOT@xxxxxxxxxxxxx | Tel: +1(857) 453 6436

-----Original Message-----
From: Openstack [mailto:openstack-bounces+ppouliot=microsoft.com@xxxxxxxxxxxxxxxxxxx] On Behalf Of Bruno Oliveira
Sent: Thursday, May 9, 2013 2:10 PM
To: openstack
Subject: Re: [Openstack] [Devstack] [Hyper-V] Instance fails to launch on Hyper-V server

By the way,

I forgot to mention that the disk_image was originally created by HyperV 2008 R2 in a VHDX format.

And when I uploaded it with *glance image-create*, i set it up for the format as "vhd"
and the container as "bare".

I also noticed that after the "nova boot" deployed the disk image to the hyper-v server, it was in vhd format (as I specified during glance image-create), but I wasn't able to import it on hyper-v (I had got an error saying the image metadata could not be retrieved) or that the disk image was corrupted.


Should it have worked?

Thanks
Bruno de Oliveira
Developer, System Analyst
+55 11 9-6193-3987

skype: brunnop.oliveira
brunnop.oliveira@xxxxxxxxx


On Thu, May 9, 2013 at 1:41 PM, Bruno Oliveira <brunnop.oliveira@xxxxxxxxx> wrote:
> 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

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Follow ups

References