hyper v vhdx disk on another server permission error

Hi, i had one storageserver (2012 Storage server) in a domain, i removed it from domain to a workgrup, i did the same with my hyper-v server. They are now in same workgroup. BUT the hyper-v server now cant start guest-os since the hyper-v cant access the vhdx files on the storage server. I get error that maschine management service or the user initiating the vm managemtn operation do not have the required access to the file share. I can open the files share and i can make new files and folders. I can also make a new vhdx file on that fileshare from that hyper-v, but i cant start the new vhdx file. I have tried ti icacls "path to vhdx file" /grant "NT VIRTUAL MACHINE\<GUID that is in the error messate>":(F)
But it says no mapping between account names and security IDs was done
per-wAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

per-wAuthor Commented:
It looks like its not possible to have a VHDX file on a SMB network/share in a workgroup since there must be Active Directory to be able to give permission to computers?
https://technet.microsoft.com/en-us/library/jj134187.aspx
0
Manojkumar RaneCommented:
Detach and reattach VHDX file from VM and try to start VM.
0
per-wAuthor Commented:
Have tried that many times. Cant make a New VM, it makes the disk, but cant start since the vhdx file or the folder it is in dont have the correct permission. So i can make as many disks i want, but they cant be used if the two servers isn't in domain. If one of them is in a workgroup or both it doesn't work.
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Manojkumar RaneCommented:
Can you share the error message.
0
per-wAuthor Commented:
Error message
0
per-wAuthor Commented:
Server-1
Windows 2012 Storageserver
name: Storageserver
IP 10.0.0.20
Fileshare: SQL-Backup
Workgroup: HYPER

Server-2
name: Hyper-V-02
Windows 2012 R2
IP 10.0.0.30
Workgroup: HYPER
Hyper-V role


Same logon name and passwords.

To get it to work i need to add both to a domain that have Active Directory. I dont have to make the VMs after join the domain, everything starts to work. I think the problem is that there isnt any computers object under permissions when not in domain/AD, so its not possible to add the Virtual Machine ID under NT Virtual Machines since it isnt there as long as its not in the domain. But is there a workaround?
0
Manojkumar RaneCommented:
This problem occurs because the Hyper-V host does not have permission on the network share.

You can make you storage server as iSCSI target, create new iSCSI Virtual Disk and attach that disk to both of Hyper-V server.
Refer below article to configure  Windows Server 2012 as Storage Server.
http://www.windowsnetworking.com/articles-tutorials/windows-server-2012/configuring-iscsi-storage-part1.html

http://blogs.technet.com/b/keithmayer/archive/2013/01/24/step-by-step-building-a-windows-server-2012-storage-server-in-the-cloud-with-windows-azure.aspx

After that you need to move vhd files on  iSCSI Virtual Disk.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
per-wAuthor Commented:
ok, is it possible to use iSCSI disk directly in Hyper-V, skip the VHDX file ?
0
Manojkumar RaneCommented:
Yes, you can create iSCSI target on Storage server and configure you iSCSI initiator on Hyper-V hosts to use Storage server as iSCSi target.

After you attach the Storage iSCSI target to Hyper-V host, you will see that target in disk management and you can format that if necessary, and store your vhdx files on that drive.
0
per-wAuthor Commented:
ok, but does the iscsi disk show as logical disk so i can use that disk in the VM, when creating new disk in VM its possible to select logical and not make a vhdx file. If that is possible, is that a better way since it then only will be on vhdx file (the vhdx file iscsi on storage server create) and not a vhdx file inside another vhdx file? If one hyper-v server have many VMs that have vhdx files on the storegae server, is it best to make one iscsi disk for each or one large one to hold multiple vhdx files?
Today the share on the storageserver has 15-20 vhdx files on it. Would the performance be better with multiple iscsi disks? Its 10Gb network between the hyper-v servers and the storage server, all hyper-v servers are Windows 2012R2.
0
Manojkumar RaneCommented:
Yes, you can user iSCSI target as disk in VM. You need to configure it as pass-through disk in VM.
http://blogs.technet.com/b/askcore/archive/2008/10/24/configuring-pass-through-disks-in-hyper-v.aspx

Yes. You can make one large volume to store all VM's vhdx files.
0
per-wAuthor Commented:
Thanx. But what is best for perfomance? Many iscsi disk so each VM disk get one logical iscsi disk, or one large to store all VMs vhdx files on?
0
Manojkumar RaneCommented:
If you create multiple LUNs on your storage server, it will stored on same partition or drive and it will use the I/Os from that disk. It will create confusion also.  Its good, if you use one or two iSCSI disk to share with your hyper-v server. In future, if you want to configured Hyper-V cluster, it will help you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Hyper-V

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.