[Openstack] [OpenStack][Nova][virt][hyperv]

Claudiu Belu cbelu at cloudbasesolutions.com
Fri Oct 28 11:28:36 UTC 2016


Hello,v

Thanks Matt for the mail, and I apologize for the delay.

So, the error you've experienced is because you've tried to run an .exe file with python. Instead, you should have run:

'C:\Python27\python.exe c:\Python27\Scripts\nova-compute-script.py --config-file c:\etc\nova\nova.conf'

My personal recomendation is to use the installer [1], which greatly simplifies setting up a Hyper-V compute node. It comes with already compiled requirements (some of which would require a C compiler), it helps with the config files, and it registers nova-compute, neutron-hyperv-agent, and ceilometer-polling as Windows services (and you will be able to control with commands like Start-Service / Stop-Service nova-compute (or any other service) in powershell, or net start/stop nova-compute in cmd). It can also be automatable [2].

I would also recommend using OVS Windows [3]. You will also find a link to a step-by-step installation guide on [3]. Please do keep in mind that you can't run both neutron-ovs-agent and neutron-hyperv-agent at the same time, on the same vSwitches. As far as security groups go, starting with OVS 2.6 (to be released soon!), you can you the OVSFirewallDriver, but the HyperVSecurityGroupsDriver works as well (starting with Liberty).

As for the Hyper-V version, you can get the latest version, the Windows Hyper-V Server 2016 [4], or at the very least, Windows Hyper-V Server 2012 R2. They are free :)
If you want to also try out live migration, the Hyper-V compute nods will have to be joined into an Active Directory.

For Windows images, you can find some evaluation images here [5]. Windows guests work better on Hyper-V. Or if you want a simple cirros, you can get it from here [6]. Make sure that when you register the images into glance, you'll register them with the vhd disk_format and hypervisor_type=hyperv. This will ensure that nova will properly schedule instances to Hyper-V compute nodes.

glance image-create --visibility public --property hypervisor_type=hyperv --name cirros-vhdx --disk-format vhd --container-format bare --file cirros-0.3.4-x86_64.vhdx

I would also like to note that we have a weekly Windows / Hyper-V IRC meeting [7], which you are welcome to join and participate / ask any questions you might have.

[1] https://cloudbase.it/openstack-hyperv-driver/
[2] https://cloudbase.it/hyper-v-nova-compute-installer-unattended-setup/
[3] https://cloudbase.it/openvswitch/
[4] https://www.microsoft.com/en-us/evalcenter/evaluate-hyper-v-server-2016
[5] https://cloudbase.it/windows-cloud-images/
[6] https://cloudbase.it/downloads/cirros-0.3.4-x86_64.vhdx.gz
[7] https://wiki.openstack.org/wiki/Meetings/Hyper-V


If I'm missing anything, please let me know!

Best regards,

Claudiu Belu

________________________________
From: zhaolihuisky [zhaolihuisky at aliyun.com]
Sent: Thursday, October 27, 2016 11:31 AM
To: openstack; Matt Riedemann
Subject: Re: [Openstack] [OpenStack][Nova][virt][hyperv]

Thanks for reply.

I have fellowed this doc to install nova-compute.
But there was an error on the step with command 'C:\Python27\python.exe c:\Python27\Scripts\nova-compute --config-file c:\etc\nova\nova.conf', and error is:
"  File "C:\Python27\Scripts\nova-compute.exe", line 1
SyntaxError: Non-ASCII character '\x90' in file C:\Python27\Scripts\nova-compute.exe on line 1, but no encoding declared
; see http://python.org/dev/peps/pep-0263/ for details"
------------------------------------------------------------------
From:Matt Riedemann <mriedem at linux.vnet.ibm.com>
Send Time:2016年10月27日(星期四) 16:14
To:openstack <openstack at lists.openstack.org>
Subject:Re: [Openstack] [OpenStack][Nova][virt][hyperv]

On 10/27/2016 8:38 AM, zhaolihuisky wrote:
> Hi, all
> I want to use hyperv.
> How to install nova-compute with source code on windows 2012 operation system?
>
> Best Regards.
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>

http://docs.openstack.org/newton/config-reference/compute/hypervisor-hyper-v.html

Claudiu Belu is a good contact for this. He works on the hyper-v compute
driver code in Nova.

--

Thanks,

Matt Riedemann


_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20161028/217819a0/attachment.html>


More information about the Openstack mailing list