Difference between revisions of "HypervInstall"
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
= Hyper-v Development = | = Hyper-v Development = | ||
− | |||
<<[[TableOfContents]]()>> | <<[[TableOfContents]]()>> | ||
== Prepare Windows == | == Prepare Windows == | ||
− | |||
=== Configure Windows === | === Configure Windows === | ||
* Supported OS: Windows 2008 R2 Datacenter/Enterprise (licensing is limited on Enterprise) | * Supported OS: Windows 2008 R2 Datacenter/Enterprise (licensing is limited on Enterprise) | ||
Line 13: | Line 11: | ||
=== Install dependencies === | === Install dependencies === | ||
Note that Windows 2008 can only run the compute manager and not any other. | Note that Windows 2008 can only run the compute manager and not any other. | ||
+ | |||
<pre><nowiki> | <pre><nowiki> | ||
Line 22: | Line 21: | ||
M2Crypto==0.19.1 (http://chandlerproject.org/pub/Projects/MeTooCrypto/M2Crypto-0.19.1.win32-py2.6.exe) | M2Crypto==0.19.1 (http://chandlerproject.org/pub/Projects/MeTooCrypto/M2Crypto-0.19.1.win32-py2.6.exe) | ||
MySQL-python==1.2.2 (http://www.codegood.com/archives/4) | MySQL-python==1.2.2 (http://www.codegood.com/archives/4) | ||
+ | MinGW (http://www.mingw.org/ easiest wayt to install is to use mingw-get-inst) | ||
Use easy_install to install the following: (If they error, you can download the package directly from http://pypi.python.org/pypi) | Use easy_install to install the following: (If they error, you can download the package directly from http://pypi.python.org/pypi) | ||
pip | pip | ||
netaddr | netaddr | ||
− | + | paramiko | |
− | WMI==1.4.7 | + | WMI==1.4.7 |
IPy==0.72 | IPy==0.72 | ||
Markdown==2.0.3 | Markdown==2.0.3 | ||
Line 42: | Line 42: | ||
tornado==1.1 | tornado==1.1 | ||
zope.interface==3.6.1 | zope.interface==3.6.1 | ||
− | + | routes==1.12.3 | |
+ | webob==1.0.7 | ||
+ | paste==1.7.5.1 | ||
+ | pastedeploy==1.3.4 | ||
+ | lockfile==0.9.1 | ||
+ | pyasn1==0.0.13b | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
=== Setup development branch === | === Setup development branch === | ||
Install bzr 32 bit from http://launchpad.net/bzr/2.3/2.3b3/+download/bzr-2.3b3.win32-py2.6.exe | Install bzr 32 bit from http://launchpad.net/bzr/2.3/2.3b3/+download/bzr-2.3b3.win32-py2.6.exe | ||
+ | |||
<pre><nowiki> | <pre><nowiki> | ||
− | |||
cd %HOMEPATH% | cd %HOMEPATH% | ||
mkdir .ssh | mkdir .ssh | ||
(put your id_rsa file for private/public key ssh authentication to launchpad here) | (put your id_rsa file for private/public key ssh authentication to launchpad here) | ||
− | mkdir c:\openstack | + | mkdir c:\openstack |
cd c:\openstack | cd c:\openstack | ||
Line 66: | Line 70: | ||
pip install glance | pip install glance | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
=== Configure Nova flags on Hyper-V === | === Configure Nova flags on Hyper-V === | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
cd nova\bin | cd nova\bin | ||
− | type nova.conf | + | type nova.conf |
--verbose | --verbose | ||
Line 90: | Line 92: | ||
--instances_path=C:\Users\Public\Documents\Hyper-V\Virtual hard disks\instances | --instances_path=C:\Users\Public\Documents\Hyper-V\Virtual hard disks\instances | ||
--s3_host=<s3 host> | --s3_host=<s3 host> | ||
− | |||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
=== Run Nova === | === Run Nova === | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
− | bin\nova-compute | + | bin\nova-compute |
</nowiki></pre> | </nowiki></pre> | ||
− | |||
== Instance Management == | == Instance Management == | ||
− | |||
=== Prepare Images === | === Prepare Images === | ||
− | Install a new virtual machine on Hyper-V to create a VHD file: http://technet.microsoft.com/en-us/library/cc732470%28WS.10%29.aspx#BKMK_step3 | + | Install a new virtual machine on Hyper-V to create a VHD file: [http://technet.microsoft.com/en-us/library/cc732470(WS.10).aspx#BKMK_step3 http://technet.microsoft.com/en-us/library/cc732470%28WS.10%29.aspx#BKMK_step3] The VHD file is usually saved in C:\Users\Public\Documents\Hyper-V\Virtual hard disks. If using a local copy (use_s3=False), copy this to C:\Users\Public\Documents\Hyper-V\Virtual hard disks\images\<image name>\image (note this is "image" not "image.vhd" etc. The VHD file needs to be renamed to just "image" in the directory of the name of the image.) |
− | The VHD file is usually saved in C:\Users\Public\Documents\Hyper-V\Virtual hard disks. | ||
− | If using a local copy (use_s3=False), copy this to C:\Users\Public\Documents\Hyper-V\Virtual hard disks\images\<image name>\image | ||
− | (note this is "image" not "image.vhd" etc. The VHD file needs to be renamed to just "image" in the directory of the name of the image.) |
Revision as of 18:33, 2 June 2011
Hyper-v Development
<<TableOfContents()>>
Prepare Windows
Configure Windows
- Supported OS: Windows 2008 R2 Datacenter/Enterprise (licensing is limited on Enterprise)
- Initial Configuration Tasks -> add role -> Hyper-v
- Initial Configuration Tasks -> add features -> remote server administration tools, .Net Framework 3.5.1
Install dependencies
Note that Windows 2008 can only run the compute manager and not any other.
python 2.6 (32 bit): (http://www.python.org/download/releases/2.6.6/) Microsoft Visual C++ 2008 Redistributable Package: (http://www.microsoft.com/downloads/en/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en) easy_install: (http://pypi.python.org/pypi/setuptools#files) pywin32==214 (http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/pywin32-214.win32-py2.6.exe/download) Swig=2.0.1 (http://sourceforge.net/projects/swig/) M2Crypto==0.19.1 (http://chandlerproject.org/pub/Projects/MeTooCrypto/M2Crypto-0.19.1.win32-py2.6.exe) MySQL-python==1.2.2 (http://www.codegood.com/archives/4) MinGW (http://www.mingw.org/ easiest wayt to install is to use mingw-get-inst) Use easy_install to install the following: (If they error, you can download the package directly from http://pypi.python.org/pypi) pip netaddr paramiko WMI==1.4.7 IPy==0.72 Markdown==2.0.3 SQLAlchemy==0.6.5 Twisted==10.2.0 amqplib==0.6.1 anyjson==0.3 boto==1.9b carrot==0.10.7 eventlet==0.9.13 greenlet==0.3.1 mox==0.5.3 python-gflags==1.4 tornado==1.1 zope.interface==3.6.1 routes==1.12.3 webob==1.0.7 paste==1.7.5.1 pastedeploy==1.3.4 lockfile==0.9.1 pyasn1==0.0.13b
Setup development branch
Install bzr 32 bit from http://launchpad.net/bzr/2.3/2.3b3/+download/bzr-2.3b3.win32-py2.6.exe
cd %HOMEPATH% mkdir .ssh (put your id_rsa file for private/public key ssh authentication to launchpad here) mkdir c:\openstack cd c:\openstack set BZR_SSH=paramiko bzr whoami "Your Name <first.last@doman.tld>" bzr lp-login <LP ID> bzr init-repo . bzr branch lp:nova pip install glance
Configure Nova flags on Hyper-V
cd nova\bin type nova.conf --verbose --nodaemon --fake_network=True --network_manager=nova.network.manager.FlatDHCPManager --cc_host=<cc host> --routing_source_ip=<cc host> --auth_driver=nova.auth.dbdriver.DbDriver --connection_type=hyperv --rabbit_host=<rabbit host> --sql_connection=mysql://<user:password>@dbserver/nova --use_s3=False --images_path=C:\Users\Public\Documents\Hyper-V\Virtual hard disks\images --instances_path=C:\Users\Public\Documents\Hyper-V\Virtual hard disks\instances --s3_host=<s3 host>
Run Nova
bin\nova-compute
Instance Management
Prepare Images
Install a new virtual machine on Hyper-V to create a VHD file: http://technet.microsoft.com/en-us/library/cc732470%28WS.10%29.aspx#BKMK_step3 The VHD file is usually saved in C:\Users\Public\Documents\Hyper-V\Virtual hard disks. If using a local copy (use_s3=False), copy this to C:\Users\Public\Documents\Hyper-V\Virtual hard disks\images\<image name>\image (note this is "image" not "image.vhd" etc. The VHD file needs to be renamed to just "image" in the directory of the name of the image.)