Thanks. The reason is that I want to test to deploy nova-compute on a Hyperv node although there are many problems. The command "msiexec /i HyperVNovaCompute.msi ......" , it use the cloudbase solution.Is there any other installation documents without cloudbase solution ?
------------------------------------------------------------------From:Claudiu Belu <cb...@cloudbasesolutions.com>Send Time:2016年11月10日(星期四) 05:15To:zhaolihuisky <zhaolihui...@aliyun.com>; openstack <openstack@lists.openstack.org>; Matt Riedemann <mrie...@linux.vnet.ibm.com>Subject:RE: [Openstack] [OpenStack][Nova][virt][hyperv] Failed to install nova-compute on windows 2012 R2 No problem. :) Is there any reason why you really want to manually build from scratch? As I've said, it requires a huge amount of effort to do so. Like any other OpenStack service, its setup can be automated. If you just want automation, you can simply install it by running something like this: msiexec /i HyperVNovaCompute.msi /qn /l*v log.txt ADDLOCAL=HyperVNovaCompute,NeutronHyperVAgent,iSCSISWInitiator,FreeRDP INSTALLDIR=C:\OpenStack\Nova GLANCEHOST=glancehost GLANCEPORT=9292 RPCBACKEND=RabbitMQ RPCBACKENDHOST=rabbithost RPCBACKENDPORT=5672 RPCBACKENDPASSWORD=12345678 INSTANCESPATH=C:\HyperV ADDVSWITCH=0 VSWITCHNAME=external1 LIMITCPUFEATURES=”” USECOWIMAGES=1 LOGDIR=C:\log ENABLELOGGING=1 VERBOSELOGGING=1 NEUTRONURL=http://neutronhost:9696 NEUTRONADMINTENANTNAME=service NEUTRONADMINUSERNAME=neutron NEUTRONADMINPASSWORD=12345678 NEUTRONADMINAUTHURL=http://keystonehost:35357/v2.0 With the proper parameters, of course. For more details on the arguments, check [1]. Alternatively, there are juju charms available for setting up the nova-compute service on a Hyper-V node [2]. [1] https://cloudbase.it/hyper-v-nova-compute-installer-unattended-setup/ [2] https://jujucharms.com/u/cloudbaseit/nova-hyperv Best regards, Claudiu Belu From: zhaolihuisky [zhaolihui...@aliyun.com] Sent: Wednesday, November 09, 2016 4:10 AM To: openstack; Matt Riedemann; Claudiu Belu Subject: Re: [Openstack] [OpenStack][Nova][virt][hyperv] Failed to install nova-compute on windows 2012 R2 Hello Claudiu, thanks. I have installed nova-compute with cloudbase solutions, it run very will.But, I want to know how to install nova-compute manually with source code on windows 2012.I have fellowed the doc in http://docs.openstack.org/mitaka/config-reference/compute/hypervisor-hyper-v.html, it's not the lastest.Do you have any other installation documents? Thank you again. Lihui Zhao ------------------------------------------------------------------From:Claudiu Belu <cb...@cloudbasesolutions.com>Send Time:2016年11月8日(星期二) 22:37To:zhaolihuisky <zhaolihui...@aliyun.com>; openstack <openstack@lists.openstack.org>; Matt Riedemann <mrie...@linux.vnet.ibm.com>Subject:RE: [Openstack] [OpenStack][Nova][virt][hyperv] Failed to install nova-compute on windows 2012 R2 Hello, It seems that you have not installed the requirements necessary to run nova-compute. To do that, you'll have to install its requirements: cd path\to\nova\project pip install -r requirements.txt If you have a fresh install of python, you might not even have pip installed. You'll have to run: easy_install pip Also, keep in mind that nova has quite a few requirements, out of which there are several that require a C compiler (for example: the cryptography, numpy, etc. requirements). There might even be some Linux specific requirements (e.g.: posix_ipc), which are extremely difficult to build on Windows. Which is why I recommended the installer [1], which already takes care of those requirements automatically. [1] https://cloudbase.it/openstack-hyperv-driver/ Best regards, Claudiu Belu From: zhaolihuisky [zhaolihui...@aliyun.com] Sent: Friday, November 04, 2016 11:27 AM To: openstack; Matt Riedemann; Claudiu Belu Subject: Re: [Openstack] [OpenStack][Nova][virt][hyperv] Failed to install nova-compute on windows 2012 R2 Hello, Claudiu Thanks for your reply.I fellowed the command, but it error: PS C:\OpenStack> python.exe C:\Python27\Scripts\nova-compute-script.py --config-file 'C:\Program Files\OpenStack\Nova\et c\nova.conf' Traceback (most recent call last): File "C:\Python27\Scripts\nova-compute-script.py", line 5, in <module> from pkg_resources import load_entry_point File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 3084, in <module> @_call_aside File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 3070, in _call_aside f(*args, **kwargs) File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 3097, in _initialize_master_working_set working_set = WorkingSet._build_master() File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 651, in _build_master ws.require(__requires__) File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 952, in require needed = self.resolve(parse_requirements(requirements)) File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 839, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'castellan>=0.3.1' distribution was not found and is required by nova How to resolve this problem? ------------------------------------------------------------------From:Claudiu Belu <cb...@cloudbasesolutions.com>Send Time:2016年10月28日(星期五) 19:29To:zhaolihuisky <zhaolihui...@aliyun.com>; openstack <openstack@lists.openstack.org>; Matt Riedemann <mrie...@linux.vnet.ibm.com>Subject:RE: [Openstack] [OpenStack][Nova][virt][hyperv] 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 [zhaolihui...@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 <mrie...@linux.vnet.ibm.com>Send Time:2016年10月27日(星期四) 16:14To:openstack <openstack@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@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@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : openstack@lists.openstack.org Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack