Deploying guests
You can use Hyper-V Manager or Microsoft System Center Virtual Machine Manager to deploy guests.
Deploying with Hyper-V Manager
- Open Hyper-V Manager.
- Click in the Actions panel.
- When you are prompted for a location for the virtual machine, choose the volume that is on the LUN that you created in Configuring storage.
After memory and networking configurations, specify the name
and location of the hard disk where you want to install the guest
OS.
- If you are using a virtual hard disk
- Locate the hard disk on a volume that is on the LUN through the virtual port.
- If you are using a pass-through disk
- It is better that the disk be from a virtual port, be offline, and be configured as MBR disk type.
Deploying with SCVMM
If the host is managed
by the Microsoft System
Center Virtual Machine Manager (SCVMM), create a virtual machine through
SCVMM. Complete the following steps to create a virtual machine:
- Select the host that has the virtual port active when you are prompted for the host on which to place the guest.
- Click Browse and select the LUN that you created when you are prompted for a location for the files.
Note: Refresh the disks or check the host to
make sure the disk is online and formatted if you do not see the LUN.
|
To configure the disk to install the guest OS, complete
the following tasks:
- Configuring the Host (Hyper-V) Server
- Install one of the following operating systems:
- Microsoft Windows Server 2008 x64
- Windows Server 2008 R2
- Microsoft Windows server 2012
- Microsoft Windows server 2012 R2
- Install the Hyper-V role on the Windows server using the Server Manager, and then reboot the server.
- Disable automount for the disks on the host. Type the following
commands:
C:\>diskpart DISKPART>automount disable - To allow for remote administration on the physical host, enable the Windows firewall:
- Install the Multipath I/O (MPIO) driver that ships with Windows 2008.
- Install the MPIO driver that your storage vendor supplied.
- Install and configure the Hyper-V guest OS using the Hyper-V Manager. The guest OS should be Windows 2003 R2 or later.
- Download and install Microsoft Visual C++ 2008 SP1 Redistributable Package on physical host. The package can be download from the Microsoft website:
Note: The x86 and x64 versions must both be installed.- Install one of the following operating systems:
- Configuring Volume Shadow Copy Service and Virtual Disk Service using Hyper-V
- Log on to the Hyper-V guest OS.
- Install the Volume Shadow Copy Service and Virtual Disk Service.
- Copy the ibmrescan.exe file from the installation directory to the physical host.
- Set the parameters to access the host server. For this step, you
need the host server IP address, domain, user name, and password.
The following list provides information about settings and the relevant
commands.
- To set the IP address of the Host Server, type: ibmvcfg set vmhost (hyper-V host IP address)
- To set the user name, type: ibmvcfg set vmusername (hyper-V host user name which can manage hyper-V)
- To set the password, type: ibmvcfg set vmpassword(hyper-V host user password)
- To set the domain, type: ibmvcfg set vmdomain (hyper-V host user domain)
- To set the command to rescan devices on the physical host, type: set
rescandevicecmd (command on host to rescan device)
For example, set rescandevicecmd “C:\ibmrescan.exe”
- Provide the following privileges for the user:
- Access WMI on the host Server
- Query WMI objects in the following name spaces: root/cimv2, root/wmi, root/default and root/virtualization.
- Create a process with class Win32_Process in root/cimv2.
- Manage the resources in the root/virtualization name space.
- Set the domain as the host name if the user does not belong to a Windows domain.
- Configuring source volumes using Hyper-V
- Shut down the guest OS and add the iSCSI Controller to the guest OS.
- Add the pass-through disk drive to the guest OS.Note: The guest OS can be in the running state, but the disks should be in the offline state on the host so that they can appear in the physical hard box combo box.
- Log on to the guest OS, create a volume on the newly added hard disk, and assign a drive letter or mount point to the volume.
- Taking snapshots using Hyper-V
Before taking a snapshot for the volume on the guest OS, type the following command to check if the configuration is correct.
Note: The command supports one or more drive letters or mount points. In the example command, X: is the driver letter or mount point to take the snapshot. ibmvcfg testsnapshot X:The procedures to take, delete, mask, resynchronize, and import snapshots are the same as the procedures for the physical host. The provider attaches the target LUNs to the physical host and then assigns it to the guest OS as a pass-through disk when taking or importing a snapshot. When deleting or masking a snapshot, the IBM® VSS Hardware Provider removes the target LUN from the guest OS before detaching it from the physical host.