compute-hyperv/hyperv/nova
Claudiu Belu 2b0832ee2b Hyper-V: adds os-win library
Adds os-win to requirements.txt.
Replaces the current usage of *Utils classes in the
Hyper-V Driver with the equivalent *Utils classes
from os-win.

Adds decorators to the HyperVDriver methods that prevent
os-win specific exceptions to leak outside the driver.

Depends-On: Id5cd1dce195b38611f4f8c74857087620048b13f

Co-Authored-By: Lucian Petrut <lpetrut@cloudbasesolutions.com>

Partially Implements: blueprint add-os-win-library

Change-Id: I04509843210dcedf98a0cd9e08fa07865c8a76de
2016-01-22 23:51:45 +00:00
..
README.rst Adds Nova Hyper-V Driver as is 2015-03-18 17:30:04 +02:00
__init__.py Removes dependecy from nova.virt.hyperv 2015-10-05 18:51:02 +03:00
basevolumeutils.py Converting compute-hyperv to py3 2015-10-06 18:27:05 +03:00
block_device_manager.py Hyper-V: refines the exceptions raised in the driver 2015-12-11 18:41:38 +02:00
constants.py Merge "Converting compute-hyperv to py3" 2015-10-06 18:48:04 +00:00
driver.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
eventhandler.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
hostops.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
hostutils.py Improve startup performance of nova-compute Hyper-V driver 2015-12-08 16:20:29 +02:00
hostutilsv2.py Hyper-V: Adds vNUMA implementation 2015-10-07 10:13:35 +00:00
imagecache.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
ioutils.py Converting compute-hyperv to py3 2015-10-06 18:27:05 +03:00
livemigrationops.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
livemigrationutils.py Converting compute-hyperv to py3 2015-10-06 18:27:05 +03:00
migrationops.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
namedpipe.py Fix serial console handler cleanup 2015-05-17 10:40:56 -07:00
networkutils.py Adds local i18n 2015-03-18 14:02:53 -07:00
networkutilsv2.py Adds local i18n 2015-03-18 14:02:53 -07:00
ovsutils.py Adds Hyper-V OVS ViF driver 2015-05-12 14:39:36 -07:00
pathutils.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
rdpconsoleops.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
rdpconsoleutils.py Adds Nova Hyper-V Driver as is 2015-03-18 17:30:04 +02:00
rdpconsoleutilsv2.py Fixes local imports 2015-03-18 14:02:29 -07:00
serialconsolehandler.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
serialconsoleops.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
serialproxy.py Hyper-V: refines the exceptions raised in the driver 2015-12-11 18:41:38 +02:00
snapshotops.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
utilsfactory.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
vhdutils.py Cache the ImageManagementService object 2015-11-26 03:08:06 +02:00
vhdutilsv2.py Cache the ImageManagementService object 2015-11-26 03:08:06 +02:00
vif.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
vmops.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
vmutils.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
vmutils10.py Hyper-V: Adds Hyper-V UEFI Secure Boot 2015-09-15 00:18:14 +03:00
vmutilsv2.py Add retry decorator to methods adding/modifying resources 2015-12-07 12:18:02 +02:00
volumeops.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
volumeutils.py Syncronises code with the nova driver 2015-08-17 14:09:22 +03:00
volumeutilsv2.py Syncronises code with the nova driver 2015-08-17 14:09:22 +03:00

README.rst

Hyper-V Volumes Management

To enable the volume features, the first thing that needs to be done is to enable the iSCSI service on the Windows compute nodes and set it to start automatically.

sc config msiscsi start= auto net start msiscsi

In Windows Server 2012, it's important to execute the following commands to prevent having the volumes being online by default:

diskpart san policy=OfflineAll exit

How to check if your iSCSI configuration is working properly:

On your OpenStack controller:

1. Create a volume with e.g. "nova volume-create 1" and note the generated volume id

On Windows:

  1. iscsicli QAddTargetPortal <your_iSCSI_target>
  2. iscsicli ListTargets

The output should contain the iqn related to your volume: iqn.2010-10.org.openstack:volume-<volume_id>

How to test Boot from volume in Hyper-V from the OpenStack dashboard:

  1. Fist of all create a volume
  2. Get the volume ID of the created volume

3. Upload and untar to the Cloud controller the next VHD image: http://dev.opennebula.org/attachments/download/482/ttylinux.vhd.gz 4. sudo dd if=/path/to/vhdfileofstep3 of=/dev/nova-volumes/volume-XXXXX <- Related to the ID of step 2 5. Launch an instance from any image (this is not important because we are just booting from a volume) from the dashboard, and don't forget to select boot from volume and select the volume created in step2. Important: Device name must be "vda".