Showing posts with label HyperV. Show all posts
Showing posts with label HyperV. Show all posts

Friday, March 13, 2015

How to enable “Share file instead of Copying it “ for VMM

I came across many deployment and keep forgetting it how to enable “Share file instead of copying it ” option for VMM. Yes I know Microsoft Article explain how to do this but missing screenshot Smile .

image

Provided that all the library share has been setup perfectly , when we try to share the ISO instead of mounting we get following error message

“Error (12700)
VMM cannot complete the host operation on the xyz.com server because of the error: 'xyz' failed to add device 'Virtual CD/DVD Disk'. (Virtual machine ID 86AF5EBE-0B3D-4075-8BF2-DA7117C54322)

'xyz': User account does not have permission required to open attachment '\\Mxyz\DataStore\ISO\XenApp_and_XenDesktop7_6.iso'. Error: 'General access denied error' (0x80070005). (Virtual machine ID 86AF5EBE-0B3D-4075-8BF2-DA7117C54322)
Unknown error (0x8001)

Recommended Action
Resolve the host issue and then try the operation again.”

We need to give access to VMM server for all the node. Select the Hyper V node and then choose “Use any authentication protocol” and add services.

image

Select VMM server as computer name. This will list CIFS share.

image

We need to repeat this step for all the node

Saturday, February 15, 2014

Autoconfiguration IPv4 on Hyper V VM

I configured on hyperV VM on SCVMM2012R2 and it was not able to communicate over the LAN. When I checked network property it had Autoconfiguration IPv4 enabled with APIPA ( Automatic Private Internet Protocol Addressing ) .

image

Not sure what was causing it, tried googling but couldn’t find anything relevant. Checked for hidden nic but couldn’t find any. Finally changed IP address and that worked. Looks like above IP was somewhere on the network and this is enabling Autoconfiguration IPv4

image

Friday, February 14, 2014

Adding second node to the virtual SQL cluster 2012 on Windows 2012R2 using VMM–Part 3

In my previous  blog I explained how to install  the first node in this blog I will explain how to add the second node to the existing cluster.   Run the SQL setup and choose “Add node to a SQL Serverfailover cluster ”

image

This will run the check for prerequisite and validate it

image 

Don’t run the check for updates and then exist the steps. It will run again SQL cluster install rule

image

Next it will check for product key and then license term. Post which it will identify SQL cluster node and will populate the info

image

Then it will validate the network for fail over cluster

image

Next it will pick  account for which you must retype the password

image

Then it will prompt for error reporting which you can choose as per wish. Click next and proceed further where it will check for node rules

image

It will give beautiful summary to add the node.

image

Finally installation of SQL second node will be done

image

Finally node has been added and here is the summary

image

Thanks for reading my blog, today I configured DDC on fail over cluster

Thursday, February 13, 2014

How to setup virtual SQL 2012 cluster on windows 2012R2 VM using SCVMM2012R2 Part-2

Post windows cluster validation describe in part1, prerequisite like  .Net3.5 feature must be installed on all the SQL server. Other than it will be normal windows fail over cluster and then start SQL setup as follows.

image 

It will check for necessary support files and then validated it by running test

image

Next it will check for the latest update , uncheck it and click next

image

This will check install file post which it will run the validation for setup support rules

image

Setup rules will finish with some warning which can be ignored

image

Now this will ask for product key and if this has already downloaded with key then it will appear

image

For my Citrix XenDesktop deployment I just need following feature

image

Feature rules will test for cluster support

image

Here I am using  network name as CitrixSQL. It does not accept special character

image

Next it will check validate the space

image

Don’t worry about qualified as red . I spend lots of time figuring that out but next will explain why it was . So hit next here

image

Once hit next make sure select both the cluster disk. If you recall in my previous post, I did mention why labeling of disk is mandatory. This was the reason. Update the message with correct reference.

image

This cluster IP is for SQL cluster node name.

image

I usually run SQL service using specific account

image

Next we have server config  where I specify SA password

image

On the same option Data Directories tab is important. This will insure that database and logs stored separately. After changing click on next.

imageI don’t want to do error reporting to MS so I hit next where it check for cluster installation rules.

image

With this we are ready to install and keep our finger crossed

image

For me SQL installation finish with the following error message

image

I followed article and manually created  the cluster resource under AD and then gave full control to windows cluster name. Post which all the resource came online.

image

Creating Microsoft virtual SQL cluster 2012 on SCVMM 2012 R2 Part-1

I wanted to setup Microsoft 2012 virtual cluster using SCVMM 2012R2. Current setup didn’t have option for  ISCSI lun so we have to either use passthrough  lun or use new feature of  windows 2012 R2 “ Shared the disk across the service tier” .

image

From the HyperV cluster option will looks like this

image

I couldn’t find option to create this using GUI. I followed PS command to create the disk and attached to the VM. For SQL fail over cluster , we need to setup windows cluster in such a way that disk are presented as available disk  and not as a CSV . We separated logs/Data and quorum disk. Now we need to create these 3 disk as shared disk.

image

Now make sure we attach this disk to both the SQL server which would be part of the cluster

image

Once these disk are attached it will showup under VM properties under VMM like this

image

Open diskmgmt.msc and scan for new disk. You will find all the disk. Disk should be initialize/format/assign drive letter and then offline. Once disk is offline

image

It is mandatory  that disk should be added in specific fashion with driver letter and stuff  like that or else SQL cluster validation will not go through. Rest of the cluster setup is same as normal but while running validation of cluster make sure that you uncheck option under storage “Validate Microsoft MPIO-based disks”

image

Until Cluster Validation is passed SQL cluster installation will not start

image

and it will throw error

image

Make sure NIC binding is set properly and domain NIC is first one in Advance network property . Here I am not dedicating separate NIC for HeartBeat

image

These clustered VM’s can not be storage motioned . To perform storage motion attached SCSI disk has be removed by following this post

image

In the next series I will explain how to install SQL and then how to add SQL node. This will be 3 blog set Smile Stay tune

The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks

I was trying to remove the shared virtual hard drive from the VM

image

and it was failing with error

Error (23317)

The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks.

Recommended Action

The operation Change properties of virtual machine is not permitted on a virtual machine that has shared virtual hard disks

First try removing harddisk but when it ask save the config cancel and click on generate script

image

Script will come with many lines but focus on this

image

Add force to the line

image

Source