nova/nova/virt/hyperv
Gergo Debreczeni 9655a9c515 Fixed naming issue of variable in a debug statement formatting
Closes-bug: 1275802

(cherry-picked from commit 4d2bd3fc27)

Change-Id: I5bf57290ff3023f6d3332a92114cc4f235e1f4af
2014-07-31 12:50:09 +00:00
..
README.rst Adds Hyper-V support in nova-compute (with new network_info model), including unit tests 2012-08-16 03:38:51 +03:00
__init__.py Nova Hyper-V driver refactoring 2013-01-29 23:22:27 +02:00
basevolumeutils.py hyperv: Retry after WMI query fails to find dev 2014-02-11 15:18:53 -06:00
constants.py Fix hyper-v vhd real size bigger than flavor issue 2013-09-14 19:34:53 +08:00
driver.py plug_vif raise NotImplementedError instead of pass 2014-03-27 14:19:32 -06:00
hostops.py Add supported_instances to get_available_resource to all virt drivers 2013-08-13 16:27:57 -07:00
hostutils.py Fixes Hyper-V issues on versions prior to 2012 2013-07-26 13:28:17 +03:00
imagecache.py Fixes Hyper-V snapshot spawning issue 2013-11-03 10:19:08 +02:00
livemigrationops.py Merge "Adds factory methods to load Hyper-V utils classes" 2013-08-09 20:21:23 +00:00
livemigrationutils.py Adds support for Hyper-V WMI V2 namespace 2013-09-03 16:49:21 +03:00
migrationops.py Adds ephemeral storage support for Hyper-V 2013-09-04 21:13:29 +03:00
networkutils.py Improves Hyper-V vmutils module for subclassing 2013-09-03 15:10:59 +03:00
networkutilsv2.py Adds support for Hyper-V WMI V2 namespace 2013-09-03 16:49:21 +03:00
pathutils.py Merge "Use utils.execute instead of subprocess" 2013-09-05 01:47:49 +00:00
snapshotops.py Fixed naming issue of variable in a debug statement formatting 2014-07-31 12:50:09 +00:00
utilsfactory.py Adds support for Hyper-V WMI V2 namespace 2013-09-03 16:49:21 +03:00
vhdutils.py Fixes Hyper-V issue with VHD file format 2014-07-30 18:51:52 +03:00
vhdutilsv2.py Fixes unicode issue in the Hyper-V driver 2013-10-24 05:42:13 -07:00
vif.py Improves Hyper-V vmutils module for subclassing 2013-09-03 15:10:59 +03:00
vmops.py Hyper-v: Change the hyper-v error log for debug when resize failed 2014-07-31 12:47:55 +00:00
vmutils.py Hyper-V:Preserve config drive image after the instance is resized 2014-07-31 12:50:03 +00:00
vmutilsv2.py Fixes get_vm_storage_paths issue for Hyper-V V2 API 2014-07-30 18:51:52 +03:00
volumeops.py hyperv: Retry after WMI query fails to find dev 2014-02-11 15:18:53 -06:00
volumeutils.py Use utils.execute instead of subprocess 2013-09-04 16:20:09 +10:00
volumeutilsv2.py Remove unnecessary LOG initialisation 2013-04-10 13:26:12 +00: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".