Home > Tintri VMstore™ > Knowledge Base > Setting Up VMstore File Shares for Use with Hyper-V Host without SCVMM

Setting Up VMstore File Shares for Use with Hyper-V Host without SCVMM

Applies To

 

Product(s): Tintri OS

Product Version(s): 3.2.0.2, 3.2.1.1 or later

Bug(s): 30327, 33174

Introduction

 

This article describes the procedure to set up file shares on the VMstore for use with Hyper-V host(s) where the Virtual Machine Manager (VMM) operations are performed through the Hyper-V Manager.

Note: This procedure is required only when there is no SCVMM instance in the environment or if there is a need to manage file shares directly on the Hyper-V host.

Recommendation: If there is an SCVMM instance, it is strongly recommended to use the SCVMM to manage the file shares.

How-To

By default, the VMstore provides a default file share called hyperv. This default file share is for administrative purposes only and should not be used to place virtual machines. It is simply a container for other file shares.

Create one or more file shares using the Tintri PowerShell Toolkit (version 1.5 or newer) and store the virtual machines on those file shares. If and when an SCVMM instance is set up, all the file shares created through the Tintri PowerShell Toolkit, except the default file share (hyperv), can be seamlessly managed through SCVMM.

 

The Tintri PowerShell Toolkit can be installed on any Hyper-V host or any system running Windows Server 2012 R2.

  1. Download the Tintri PowerShell Toolkit from Tintri support portal and install the package.
  2. Invoke the Tintri PowerShell Toolkit by selecting the application from the Windows application.  Press Windows Start button, type Tintri and select Tintri PowerShell Toolkit).

 

Note: This article outlines only a few options.  Refer to the Tintri PowerShell Toolkit documentation for complete command usage and examples.

 

Procedure:

1. Connect to VMstore (vmstore1.vmlevel.com).

Connect-TintriServer –Server vmstore1.vmlevel.com

 

2. Enter the username and password in the pop up dialog box. Either the username or both username and password can be entered on the command line for scripting purposes. 

  • Use the following syntax to specify username (admin) on the command line:

Connect-TintriServer -Server VMstore1.vmlevel.com –UserName admin

  • Use the following syntax to specify username (admin) & password (test) on the command line:

Connect-TintriServer –Server VMstore1.vmlevel.com –Username admin –Password test

 

3. List the file shares.

Get-TintriSmbShare                                                           

Name...: hyperv

Path...: \\vmstore1-data.vmlevel.com\hyperv

Comment:

Server.: vmstore1.vmlevel.com

Note: The path refers to the SMB data path host name for this VMstore.

 

4. Create a file share (TestShare1) with a comment.

New-TintriSmbShare -Name TestShare1 -Comment “For test VMs”

The comment parameter is optional.

 

5. List the file shares.

Get-TintriSmbShare

Name....: hyperv

Path....: \\vmstore1-data.vmlevel.com\hyperv

Comment.:

Server....: vmstore1.vmlevel.com

Name....: TestShare1

Path....: \\ vmstore1-data.vmlevel.com\TestShare1

Comment.: For test VMs

Server..: vmstore1.vmlevel.com

 

6. Grant access for the Hyper-V host (VMLEVEL\hyperv01$) to the newly created share.

Grant-TintriSmbShareAccess -Name TestShare1 -User ‘VMLEVEL\hyperv01$’ -Access FullControl

 

7. Check the access control list on TestShare1.

Get-TintriSmbShareAccess -Name TestShare1

AceId.............: S-1-5-32-544_2032127

User..............: BUILTIN\Super Admins

SID...............: S-1-5-32-544

AccessControlType.: FULL_CONTROL

AccessMask........: 2032127

Share.............: TestShare1

Server............: vmstore1.vmlevel.com
 

AceId.............: S-1-5-21-4117786418-643926125-3100845902-1805_2032127

User..............: VMLEVEL\hyperv01$

SID...............: S-1-5-21-4117786418-643926125-3100845902-1805

AccessControlType.: FULL_CONTROL

AccessMask........: 2032127

Share.............: TestShare1

Server............: vmstore1.vmlevel.com

 

8. Repeat the Grant-TintriSmbShareAccess command for each Hyper-V host that hosts VMs from the VMstore.

 

The file share (TestShare1) is ready for the Hyper-V host (VMLEVEL\hyperv01) to create the virtual machines.

 

9. Revoke access for the Hyper-V host (VMLEVEL\hyperv01$) when it no longer needs access to the share.

Revoke-TintriSmbShareAccess -Name TestShare1 -User ‘VMLEVEL\hyperv01$’

 

10. Check the access control list on TestShare1:

Get-TintriSmbShareAccess -Name TestShare1

AceId.............: S-1-5-32-544_2032127

User..............: BUILTIN\Super Admins

SID...............: S-1-5-32-544

AccessControlType.: FULL_CONTROL

AccessMask........: 2032127

Share.............: TestShare1

Server............: vmstore1.vmlevel.com

 

11. Remove a file share (TestShare1) when it is no longer needed.

Remove-TintriSmbShare -Name TestShare1

 

 

 

 

 

You must to post a comment.
Last modified
13:35, 10 May 2017

Tags

Classifications

This page has no classifications.