Instruktaż/Tutorial QNAP SMI-S Provider for System Center Virtual Machine Manager 2012

Silas Mariusz

rm -rf /
Help us, GOD!
5 Kwiecień 2008
10 214
31
2 330
153
39
Nowy Sącz
forum.qnap.net.pl
QNAP
TS-x77
Ethernet
1 GbE
About QNAP SMI-S Provider
QNAP SMI-S Provider is a required component for the support of System Center Virtual Machine Manager (SCVMM 2012). It requires a SMI-S Provider to communicate with the storage. QNAP SMI-S Provider can be used to allow the communication between SCVMM 2012 and QNAP Turbo NAS.



Audience
This guide is intended to be used by Microsoft System Center administrators and storage administrators during the installation of QNAP SMI-S Provider for SCVMM 2012. A quick start guide is also included to describe how to start using SCVMM 2012.




1. Installation
Installation Requirements
- System Center Virtual Machine Manager 2012 with SP1
- QTS 4.0 SMB and above. QTS 4.0 for Home and SOHO are not supported
- The SMI-S Provider must not be installed on the server where SCVMM 2012 is running. (How to Add and Classify SMI-S and SMP Storage Devices in VMM)
- QNAP SMI-S Provider supports Windows Server 2008 R2 and Windows Server 2012
p1.png



Install Process
Download the software QNAP SMI-S Provider from www.qnap.com/utility and install it on an independent Windows server.

The SMI-S Provider must not be installed on the server where SCVMM 2012 is running. (How to Add and Classify SMI-S and SMP Storage Devices in VMM)

Start the installation software.
p2.png

(Optional) Follow the installation wizard until you are prompt for the user authentication. If left untouched, all local administrator accounts on the Windows server will be able to control the SMI-S provider through SCVMM. To limit the access to only one user, please specify the user account and password.
p3.png

Once the SMI-S Provider is installed, it will open the folder containing the documentation and start the management console.
p4.png



2. Add a NAS to be managed
The management console will be opened after the installation. To open the management console manually, a shortcut will be added to the desktop, or it can be found under Start> All Programs > QNAP > QSMIS Provider
p5.png

To add a NAS, simply click “Scan NAS”. The console will scan for existing NAS in the network, and click on the NAS to add it in the SMI-S Provider. You will be prompted to confirm the connection information and credential. The credential will be used for every operation from SCVMM.
p6.png p7.png

Close the NAS list Window, and you will be able to see the added NAS in the SMI-S Provider management console:
p8.png

You can log out from the Windows server and no additional action is necessary on the QNAP SMI-S Provider.
The QNAP SMI-S Provider can now be connected from SCVMM using SMI-S CIMXML Protocol, using a local administrator account.

For More details about using SMI-S Provider from SCVMM 2012, please refer to References page 34.



3. Connect SCVMM to QNAP SMI-S Provider

Configured Environment:
- Active Directory is already installed and functional
- SCVMM 2012 Server is already installed and functional
- SCVMM 2012 Administration console is already installed and functional
- Hyper-V hosts are installed and working properly
- iSCSI Initiator service is enabled and start automatically on each Hyper-V host
- MPIO Feature is installed on each Hyper-V host

Login to the SCVMM console; navigate to the Fabric Configuration, Storage, Providers.
Right Click on “Providers” and click “Add Storage Provider”
p9.png

Select “Add a storage device that is managed by an SMI-S Provider”
pa.png

Click “Next”.

On the next step, select “SMI-S CIMXML Protocol” to enter the QNAP SMI-S Provider server DNS name or IP address. A DNS Name is required if the server uses DHCP and the IP address can be used if the server uses fixed IP address.
The TCP Ports used are 5988 for standard connection, and 5989 for SSL connection.
pb.png

Click Browse to select “Run As Account”.
pc.png

This account will be used to connect to the SMI-S Provider server. The account must be a local administrator account on the Windows server that hosts the QNAP SMI-S Provider.

If an account has not been created please create a “Run As Account” by clicking “Create Run As Account”.
Name: Display Name of the user account that SCVMM will use.
User Name: Local username on the Windows server that hosts the QNAP SMI-S Provider. The user name has to be with the format SERVERNAME\USERNAME
Uncheck “Validate domain credentials” has the username is a Windows server local account.
pd.png

Click “OK” to create the Run As Account
Now that the Run As Account is available, select it and click OK.
pe.png

The selected Run As Account will be displayed :
pf.png

Click “Next” to start the connection and discovery of the QNAP SMI-S Provider:
pg.png

During the discovery you may have a warning regarding the certificate. You can click “Import” to allow the connection. (More details at How to Add and Classify SMI-S and SMP Storage Devices in VMM)
ph.png

All the QNAP Storage added in the QNAP SMI-S Provider Manager will be listed.
pi.png

Click “Next” to proceed.

Select the Storage Pools you want to use for SCVMM usage. Multiple Storage Pools can be selected if available.
Assign a Storage Classification for each Storage Pool. If none exists, you can create a Classification by clicking “Create classification”
pj.png

Create a Classification example:
pk.png

Once all the steps are completed, click Finish to proceed and add the storage pools:
pl.png
pm.png

QNAP SMI-S Provider and QNAP Storage Arrays are now available from SCVMM2012:
pn.png
po.png

Storage can now be allocated and provisioned to Hyper-V hosts. Please refer to Microsoft Documentation at: Administering System Center 2012 - Virtual Machine Manager



Annex: How to start with SCVMM 2012
Please refer to Microsoft Documentation for a complete description of SCVMM functionalities and usage: Administering System Center 2012 - Virtual Machine Manager

You can follow the following guide to help you start using SCVMM with QNAP SMI-S Provider.

Note: the SMI-S Provider will create only LUN with Thin Provisioning. To use LUN with Instant Allocation, please refer to section “Create a LUN on the NAS and allocate it from SCVMM 2012” page 32.


Connect the Hyper-V hosts to the NAS
Connect all you Hyper-V hosts to the newly added managed storage: Your QNAP Turbo NAS

Now that the Turbo NAS has been added to the SMI-S Provider, it can be managed directly from SCVMM 2012. The next step is to give access to the Hyper-V hosts to the storage array by creating a iSCSI Session on each Hyper-V host.
- Open SCVMM console, in the Fabric
- Select the first Hyper-V host in Servers > All Hosts
pp.png
- Right Click on the host and select “Properties”
- In Storage, click “Add” then select “Add iSCSI Array”
pq.png
pr.png
- The List of NAS added in the SMI-S Provider will be display.
- Select the wanted NAS and click “Create”
ps.png
- The Hyper-V host has now access to the NAS, and the Storage allocation and provisioning can be done through SCVMM.
- Repeat this setting for each Hyper-V Host.

For more details about the iSCSI Session creation, you can refer to Microsoft documentation: How to Configure Storage on a Hyper-V Host in VMM: How to Configure Storage on a Hyper-V Host in VMM


Allocate Storage Pool to Hyper-V Host Groups
In order to utilize the storage in SCVMM for some hosts, you must allocate storage pools to some host groups. After this procedure, the Hyper-V hosts member of that host group will be suitable for LUN provisioning and LUN creation, only for the selected storage pools.

For more details, please refer to :
- How to Allocate Storage Pools to a Host Group in VMM (How to Allocate Storage Pools to a Host Group in VMM)

In the Fabric, in the Server Section, select the storage host group on which you want to allocate the storage pool.
Right click, Properties
pt.png

In Storage section, click “Allocate Storage Pools…”
pu.png

Select the NAS Storage pool and click Add, then click OK.
This will allocate the NAS Storage Pool to a Storage Host Group, so that it can be used by the Hyper-V Hosts.
pv.png

The Storage pool is now allocated to the host group:
px.png

SCVMM will now be able to create, allocate LUN in this storage pool for the host member of the host group.


Create a LUN for a standalone Hyper-V host.
First, make sure that at least 1 storage pool has been allocated to the host group (see above).
Open SCVMM 2012 to navigate to the Fabric. Under Servers select the desired Hyper-V host.
py.png

Right click on the host, select properties.
In the “Storage” section, click “Add” and “Add Disk”
pz.png

The left part of the windows will updated and display the possible actions.
pza.png

Click “Create Logical Unit”
pzb.png

The LUN Creation Wizard will appear:
pzc.png
- Select the storage pool where you want to create the LUN. Only storage pools that have been allocated to the host group will be visible.
- Give a Name to the LUN
- Choose the Size of the LUN
- Click OK

The LUN will be created, and the option will display the LUN information. Select the partition type, volume name, format option, and drive letter that will be used on the Hyper-V host. (Drive V in this example)
pzd.png
- Click OK

The procedure will need some time to allocate the LUN to the host and format the disk, depending on the options that have been chosen.
The progress can be followed in the “Jobs” section where all the SCVMM activities are recorded:
pze.png

Once the new disk has been created, the LUN can be seen in the Fabric, Storage, Classification and Pools:
pzf.png

A remote login on the Hyper-V host can help to verify that the disk has been created and is available:
pzg.png

New disk V: , 200 GB, as were the option when the LUN has been created from SCVMM 2012.



Create a LUN for the Hyper-V Cluster.
The procedure to create a LUN for a cluster is a little bit different
- Step 1 : create and assign the LUN
- Step 2 has 2 possibilities:
- allocate the LUN to a new VM à to be used as a Cluster Disk for High Availability (not described)
- convert the LUN to a CSV volume à to be used as a Cluster Shared Volume for High Availability​

In details:
In the Fabric, Servers, select the cluster where you want to create a new LUN, right click on the cluster and select “properties”.
pzh.png

In “Available Storage” click “Add…”
pzi.png

In the Cluster Disk wizard, click “Create Logical Unit…”:
pzj.png
pzk.png
- Select the Storage Pool
- Give a Name
- Choose the size of the LUN
- Click OK

Select the format option that will be use for the cluster disk :
pzl.png
Click OK.

pzm.png
Click OK

The progress can be followed in the “Jobs” section where all the SCVMM activities are recorded:
pzn.png

After the LUN creation for the cluster, a new Volume will be available in “Available Storage” in the Cluster.
pzo.png



Use a Cluster Disk as a Cluster Shared Volume for High Availability

This part is not a details instruction, but just a guide to show a possible use of the LUN created with SMI-S Provider.

In the Fabric, Servers, select the cluster where you have just created the new LUN, right click on the cluster and select “properties”.
In “Available Storage”, select the Cluster Disk and click “Convert to CSV” and click OK:
pzp.png

The progress can be followed in the “Jobs” section where all the SCVMM activities are recorded:
pzq.png

When the job is completed, the Hyper-V hosts member of the cluster will have a new Cluster Shared Volume that can be used to store the VM.
The result can be seen in the cluster Property, in “Shared Storage” section:
pzr.png



Create a LUN on the NAS and allocate it from SCVMM 2012

By default, QNAP SMI-S Provider creates only LUN with Thin Provisioning. To be able to allocate LUNs with Instant Allocation (Fixed LUN in SCVMM), the LUN can be created on the NAS first. SCVMM will be able to allocate and connect the LUN created on the NAS to the hypervisors.
- Login on the NAS as administrator
- Create an “iSCSI LUN only” on the NAS, and do not map it to any target. The LUN can be Thin Provisioning or Thick Provisioning
- In this example we will create a Instant Allocation LUN named “MyThickLUN”.
pzs.png
- Login into SCVMM 2012
- In the Fabric, Servers, right click on a host group , select “Properties”
- In Storage, Click “Allocate Logical Units…”
- Right click on the QNAP SMI-S Provider and rescan the SMIS Provider :
pzt.png
- In the Fabric, on a host group, allocate the LUN :
pzu.png
- Select the LUN “MyThickLUN” and click “Add”:
pzv.png

Now the LUN created manually on the NAS can be used by the Hyper-V hosts member of the host group.



References

QNAP SMI-S Provider at www.qnap.com/utility
How to Add and Classify SMI-S and SMP Storage Devices in VMM
Administering System Center 2012 - Virtual Machine Manager
Configuring Storage in VMM
How to Add and Classify SMI-S and SMP Storage Devices in VMM
How to Provision Storage Logical Units in VMM
How to Allocate Storage Logical Units to a Host Group in VMM
How to Allocate Storage Pools to a Host Group in VMM
How to Configure Storage on a Hyper-V Host in VMM