nova/nova/virt/hyperv
KIYOHIRO ADACHI 4e9796712c Remove unused methods
o nova/cells/messaging.py
   - def _at_max_hop_count(self, do_raise=True):

     This method was added in the following commit.

        commit f9a868e86c
        Author: Chris Behrens <cbehrens@codestud.com>
        Date:   Fri Apr 13 05:54:48 2012 +0000

            Cells: Add the main code.

     But there is no evidence that was used.

 o nova/virt/disk/mount/nbd.py
   - def _read_pid_file(self, pidfile):

     This method was added in the following commit.

        commit e4377fdb0e
        Author: Michael Still <michael.still@canonical.com>
        Date:   Wed Dec 12 17:13:53 2012 +1100

            Stop nbd leaks, remove pid race.

     But there is no evidence that was used.

 o nova/virt/hyperv/imagecache.py
   - def _validate_vhd_image(self, vhd_path):

     This method was removed in the following commit.

        commit 689e9e3e3d
        Author: Alessandro Pilotti <ap@pilotti.it>
        Date:   Mon Mar 4 11:34:42 2013 +0200

            Fixes disk size issue during image boot on Hyper-V

 o nova/virt/hyperv/vmutils.py
   - def _clone_wmi_obj(self, wmi_class, wmi_obj):

     This method was removed in the following commit.

        commit d1a2e10869
        Author: Alessandro Pilotti <apilotti@cloudbasesolutions.com>
        Date:   Tue Jul 30 03:58:11 2013 +0300

            Improves Hyper-V vmutils module for subclassing

 o nova/virt/libvirt/firewall.py
   - def _define_filters(self, filter_name, filter_children):

     This method was removed in the following commit.

        commit b4fae4821f
        Author: Yaguang Tang <heut2008@gmail.com>
        Date:   Tue Feb 14 10:43:39 2012 +0800

            remove unused nwfilter methods and tests.

 o nova/virt/xenapi/volume_utils.py
   - def _get_volume_id(path_or_id):

     This method was removed in the following commit.

        commit 503d572954
        Author: Armando Migliaccio <amigliaccio@internap.com>
        Date:   Fri Dec 7 21:06:43 2012 +0000

           Fixes KeyError: 'sr_uuid' when booting from volume on xenapi

Change-Id: I216f7c4ff3546c41e1fb0813a71a6c7ff9498584
2014-02-12 16:51:07 +09: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 Remove vi modelines 2014-02-03 14:19:44 +00:00
basevolumeutils.py Remove vi modelines 2014-02-03 14:19:44 +00:00
constants.py Remove vi modelines 2014-02-03 14:19:44 +00:00
driver.py Hyper-V driver RDP console access support 2014-02-07 23:41:33 +02:00
hostops.py Remove vi modelines 2014-02-03 14:19:44 +00:00
hostutils.py Remove vi modelines 2014-02-03 14:19:44 +00:00
imagecache.py Remove unused methods 2014-02-12 16:51:07 +09:00
livemigrationops.py Remove vi modelines 2014-02-03 14:19:44 +00:00
livemigrationutils.py Remove vi modelines 2014-02-03 14:19:44 +00:00
migrationops.py Remove vi modelines 2014-02-03 14:19:44 +00:00
networkutils.py Remove vi modelines 2014-02-03 14:19:44 +00:00
networkutilsv2.py Remove vi modelines 2014-02-03 14:19:44 +00:00
pathutils.py Remove vi modelines 2014-02-03 14:19:44 +00:00
rdpconsoleops.py Hyper-V driver RDP console access support 2014-02-07 23:41:33 +02:00
rdpconsoleutils.py Hyper-V driver RDP console access support 2014-02-07 23:41:33 +02:00
rdpconsoleutilsv2.py Hyper-V driver RDP console access support 2014-02-07 23:41:33 +02:00
snapshotops.py Fixed naming issue of variable in a debug statement formatting 2014-02-04 10:08:39 +02:00
utilsfactory.py Hyper-V driver RDP console access support 2014-02-07 23:41:33 +02:00
vhdutils.py Remove vi modelines 2014-02-03 14:19:44 +00:00
vhdutilsv2.py Remove vi modelines 2014-02-03 14:19:44 +00:00
vif.py Remove vi modelines 2014-02-03 14:19:44 +00:00
vmops.py Hyper-V: Change variable in debug log message 2014-02-04 16:46:52 +02:00
vmutils.py Remove unused methods 2014-02-12 16:51:07 +09:00
vmutilsv2.py Remove vi modelines 2014-02-03 14:19:44 +00:00
volumeops.py Remove vi modelines 2014-02-03 14:19:44 +00:00
volumeutils.py Remove vi modelines 2014-02-03 14:19:44 +00:00
volumeutilsv2.py Remove vi modelines 2014-02-03 14:19:44 +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".