compute-hyperv/hyperv/nova
Jenkins 59adc9faed Merge "resync: Adds Hyper-V OVS ViF driver" 2017-01-23 10:19:49 +00:00
..
cluster HyperVClusterDriver: reclaim failovered instances on start 2017-01-11 14:33:19 +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
block_device_manager.py resync: Add support for setting boot order in Hyper-V 2017-01-20 13:39:00 +02:00
constants.py Merge "resync: HyperV: use os-brick for volume related operations" 2016-12-22 13:56:12 +00:00
driver.py resync: Adds Hyper-V OVS ViF driver 2017-01-20 15:15:12 +02:00
eventhandler.py resync: "HyperV: Nova serial console access support" 2016-07-08 20:40:49 +03:00
hostops.py resync: Hyper-V: Adds vNUMA implementation 2017-01-20 13:36:24 +02:00
imagecache.py resync: Make hyperv driver use flavor fields instead of legacy ones 2016-10-18 02:47:13 -07:00
livemigrationops.py resync: Adds Hyper-V OVS ViF driver 2017-01-20 15:15:12 +02:00
migrationops.py resync: Add support for setting boot order in Hyper-V 2017-01-20 13:39:00 +02:00
pathutils.py resync: Hyper-V: properly handle shared storage during migrations 2016-10-18 02:47:24 -07:00
pdk.py Hyper-V: Shielded VMs 2016-06-15 08:19:10 +00:00
rdpconsoleops.py Hyper-V: adds os-win library 2016-01-22 23:51:45 +00:00
serialconsolehandler.py Solve minor differences 2016-10-19 11:44:31 +00:00
serialconsoleops.py Solve minor differences 2016-10-19 11:44:31 +00:00
serialproxy.py Solve minor differences 2016-10-19 11:44:31 +00:00
snapshotops.py HyperV: remove instance snapshot lock 2016-08-31 09:07:28 +00:00
vif.py resync: Adds Hyper-V OVS ViF driver 2017-01-20 15:15:12 +02:00
vmops.py resync: Adds Hyper-V OVS ViF driver 2017-01-20 15:15:12 +02:00
volumeops.py resync: HyperV: use os-brick for volume related operations 2016-12-06 11:06:00 -08: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".