<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,v<br>
<br>
Thanks Matt for the mail, and I apologize for the delay.<br>
<br>
So, the error you've experienced is because you've tried to run an .exe file with python. Instead, you should have run:<br>
<br>
<span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000">'C:\Python27\python.exe c:\Python27\Scripts\nova-compute-script.py --config-file c:\etc\nova\nova.conf'</span><br>
<br>
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].<br>
<br>
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).<br>
<br>
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 :)<br>
If you want to also try out live migration, the Hyper-V compute nods will have to be joined into an Active Directory.<br>
<br>
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.<br>
<br>
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<br>
<br>
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.<br>
<br>
[1] <a href="https://cloudbase.it/openstack-hyperv-driver/" target="_blank">https://cloudbase.it/openstack-hyperv-driver/</a><br>
[2] <a href="https://cloudbase.it/hyper-v-nova-compute-installer-unattended-setup/" target="_blank">
https://cloudbase.it/hyper-v-nova-compute-installer-unattended-setup/</a><br>
[3] <a href="https://cloudbase.it/openvswitch/" target="_blank">https://cloudbase.it/openvswitch/</a><br>
[4] <a href="https://www.microsoft.com/en-us/evalcenter/evaluate-hyper-v-server-2016" target="_blank">
https://www.microsoft.com/en-us/evalcenter/evaluate-hyper-v-server-2016</a><br>
[5] <a href="https://cloudbase.it/windows-cloud-images/" target="_blank">https://cloudbase.it/windows-cloud-images/</a><br>
[6] <a href="https://cloudbase.it/downloads/cirros-0.3.4-x86_64.vhdx.gz" target="_blank">
https://cloudbase.it/downloads/cirros-0.3.4-x86_64.vhdx.gz</a> <br>
[7] <a href="https://wiki.openstack.org/wiki/Meetings/Hyper-V" target="_blank">https://wiki.openstack.org/wiki/Meetings/Hyper-V</a><br>
<br>
<br>
If I'm missing anything, please let me know!<br>
<br>
Best regards,<br>
<br>
Claudiu Belu<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF32461" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> zhaolihuisky [zhaolihuisky@aliyun.com]<br>
<b>Sent:</b> Thursday, October 27, 2016 11:31 AM<br>
<b>To:</b> openstack; Matt Riedemann<br>
<b>Subject:</b> Re: [Openstack] [OpenStack][Nova][virt][hyperv]<br>
</font><br>
</div>
<div></div>
<div>
<div class="__aliyun_email_body_block">
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000">Thanks for reply.</span></div>
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000"><br>
</span></div>
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000">I have fellowed this doc to install nova-compute.</span></div>
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000">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:</span></div>
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000">"  File "C:\Python27\Scripts\nova-compute.exe", line 1<br>
SyntaxError: Non-ASCII character '\x90' in file C:\Python27\Scripts\nova-compute.exe on line 1, but no encoding declared<br>
; see http://python.org/dev/peps/pep-0263/ for details"</span></div>
<blockquote style="margin-right:0; margin-top:0; margin-bottom:0">
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000">------------------------------------------------------------------</span></div>
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000">From:Matt Riedemann <mriedem@linux.vnet.ibm.com></span></div>
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000">Send Time:2016年10月27日(星期四) 16:14</span></div>
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000">To:openstack <openstack@lists.openstack.org></span></div>
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000">Subject:Re: [Openstack] [OpenStack][Nova][virt][hyperv]</span></div>
<div style="clear:both"><span style="font-family:Tahoma,Arial,STHeiti,SimSun; font-size:14.0px; color:#000000"><br>
</span></div>
On 10/27/2016 8:38 AM, zhaolihuisky wrote:<br>
> Hi, all<br>
> I want to use hyperv.<br>
> How to install nova-compute with source code on windows 2012 operation system?<br>
><br>
> Best Regards.<br>
> _______________________________________________<br>
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack<br>
> Post to     : openstack@lists.openstack.org<br>
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack<br>
><br>
<br>
http://docs.openstack.org/newton/config-reference/compute/hypervisor-hyper-v.html<br>
<br>
Claudiu Belu is a good contact for this. He works on the hyper-v compute <br>
driver code in Nova.<br>
<br>
-- <br>
<br>
Thanks,<br>
<br>
Matt Riedemann<br>
<br>
<br>
_______________________________________________<br>
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack<br>
Post to     : openstack@lists.openstack.org<br>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>