Archived MSDN and TechNet Blogs | Microsoft Learn<\/a><\/p>","upvoteCount":1,"datePublished":"2015-04-07T01:15:43.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/18","author":{"@type":"Person","name":"dreid007","url":"https://community.spiceworks.com/u/dreid007"}},"suggestedAnswer":[{"@type":"Answer","text":"I made a rookie mistake and did not use best practices. I installed hyper-v, promoted to a AD/DC and created several VM’s.<\/p>\n
Found out this would be a problem and not supported so I demoted the Host and cannot access the VM’s any longer.<\/p>\n
Any help out there for me?<\/p>\n
I try to import the VM’s and I am getting a permission error.<\/p>","upvoteCount":4,"datePublished":"2015-04-02T16:38:38.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/1","author":{"@type":"Person","name":"rickbaker","url":"https://community.spiceworks.com/u/rickbaker"}},{"@type":"Answer","text":"
Login in to host, take ownership of the vm files, then try to import again.<\/p>\n
Edit: Typo<\/p>","upvoteCount":5,"datePublished":"2015-04-02T16:42:46.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/2","author":{"@type":"Person","name":"brianlittlejohn","url":"https://community.spiceworks.com/u/brianlittlejohn"}},{"@type":"Answer","text":"
What happens if you log in locally into to hyper-v host? and openthe Hyper-V manager?<\/p>","upvoteCount":0,"datePublished":"2015-04-02T16:43:19.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/3","author":{"@type":"Person","name":"smooney","url":"https://community.spiceworks.com/u/smooney"}},{"@type":"Answer","text":"
Did you join the host to that domain?<\/p>","upvoteCount":0,"datePublished":"2015-04-02T16:46:04.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/4","author":{"@type":"Person","name":"ssurles","url":"https://community.spiceworks.com/u/ssurles"}},{"@type":"Answer","text":"
Remove the role from the box.<\/p>\n
Add the role to one of the VMs.<\/p>","upvoteCount":0,"datePublished":"2015-04-02T16:46:50.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/5","author":{"@type":"Person","name":"michaelmason6027","url":"https://community.spiceworks.com/u/michaelmason6027"}},{"@type":"Answer","text":"
I clicked on this thread because just yesterday I added a Hyper-V VM to my AD/DC. Are you saying that is an issue and is not supported, or did you have your AD/DC on a VM? I’m a bit concerned. Do I need to modify my setup? Sorry I’m no help in fixing your issue.<\/p>","upvoteCount":0,"datePublished":"2015-04-02T16:49:14.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/6","author":{"@type":"Person","name":"netnerd","url":"https://community.spiceworks.com/u/netnerd"}},{"@type":"Answer","text":"
Its not supported from Microsoft to have the Hyper-V Host as a DC. VM’s can without any issue.<\/p>","upvoteCount":0,"datePublished":"2015-04-02T16:51:07.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/7","author":{"@type":"Person","name":"brianlittlejohn","url":"https://community.spiceworks.com/u/brianlittlejohn"}},{"@type":"Answer","text":"
Also it is most likely against licensing agreement to do it<\/p>","upvoteCount":1,"datePublished":"2015-04-02T16:51:31.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/8","author":{"@type":"Person","name":"brianlittlejohn","url":"https://community.spiceworks.com/u/brianlittlejohn"}},{"@type":"Answer","text":"
i did<\/p>","upvoteCount":0,"datePublished":"2015-04-02T16:51:41.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/9","author":{"@type":"Person","name":"rickbaker","url":"https://community.spiceworks.com/u/rickbaker"}},{"@type":"Answer","text":"
I made my HOST the AD / DC, the VM was a member<\/p>","upvoteCount":0,"datePublished":"2015-04-02T16:52:45.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/10","author":{"@type":"Person","name":"rickbaker","url":"https://community.spiceworks.com/u/rickbaker"}},{"@type":"Answer","text":"
Assuming that when you demoted the DC it also destroyed the domain unless you have other DC’s in your enviornment, and the hyper-v host still looking to authenticated against the domain its going to have issues. Unjoin it from the domain and just into a workgroup, then login locally and start your VM’s<\/p>","upvoteCount":0,"datePublished":"2015-04-02T16:54:43.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/11","author":{"@type":"Person","name":"ssurles","url":"https://community.spiceworks.com/u/ssurles"}},{"@type":"Answer","text":"
You can try to create a new VM and attatch the VHD’s to the new machine.<\/p>","upvoteCount":0,"datePublished":"2015-04-02T16:55:15.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/12","author":{"@type":"Person","name":"brianlittlejohn","url":"https://community.spiceworks.com/u/brianlittlejohn"}},{"@type":"Answer","text":"
ah…lol that’s right, so is the Hyper-V host just in a workgroup now?<\/p>","upvoteCount":0,"datePublished":"2015-04-02T16:55:30.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/13","author":{"@type":"Person","name":"ssurles","url":"https://community.spiceworks.com/u/ssurles"}},{"@type":"Answer","text":"
Do you have more than one DC?<\/p>\n
If not, when you removed the one and only DC you would have reverted a bunch of permissions.<\/p>\n
You’ll need to logon to the hyper-v box as a local admin<\/p>","upvoteCount":1,"datePublished":"2015-04-02T16:55:37.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/14","author":{"@type":"Person","name":"Gary-D-Williams","url":"https://community.spiceworks.com/u/Gary-D-Williams"}},{"@type":"Answer","text":"
ouch, yeah the solution depends on whether or not the DC/VM Host was the ONLY DC in the domain.<\/p>\n
I’m hoping it wasn’t but it sounds like it may have been…!<\/p>\n
Like others have said, you’ll have to login to the machine with local admin account to do anything with it.<\/p>","upvoteCount":1,"datePublished":"2015-04-02T16:58:58.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/15","author":{"@type":"Person","name":"briancesario5114","url":"https://community.spiceworks.com/u/briancesario5114"}},{"@type":"Answer","text":"
Need to enble “winrm qc” and then add the hyper-v to TrustedHosts and connect to it remotely?<\/p>","upvoteCount":0,"datePublished":"2015-04-02T17:31:18.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/16","author":{"@type":"Person","name":"smooney","url":"https://community.spiceworks.com/u/smooney"}},{"@type":"Answer","text":"
Problem is actually that hyper-v creates a service account for each vm. These are local accounts except if you are running on a domain controller where they become domain accounts. So, when you demoted that host you effectively deleted the local account.<\/p>\n
I would recommend copying the .VHD/.VHDX files to a new location and create a new vm using the copied files. Then when it’s running delete the old vm. If that fails it will give you an access error in the event log that you can use to track down the files (typically under c:\\ProgramData).<\/p>","upvoteCount":2,"datePublished":"2015-04-03T01:25:56.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/17","author":{"@type":"Person","name":"dreid007","url":"https://community.spiceworks.com/u/dreid007"}},{"@type":"Answer","text":"
OP - Listen to Don007 - he’s on the right track to help you. You horked the permissions.<\/p>","upvoteCount":0,"datePublished":"2015-04-07T01:32:47.000Z","url":"https://community.spiceworks.com/t/hyper-v-as-a-domain-controller-mistake/393011/19","author":{"@type":"Person","name":"da-schmoo","url":"https://community.spiceworks.com/u/da-schmoo"}}]}}
rickbaker
(rickbaker)
April 2, 2015, 4:38pm
1
I made a rookie mistake and did not use best practices. I installed hyper-v, promoted to a AD/DC and created several VM’s.
Found out this would be a problem and not supported so I demoted the Host and cannot access the VM’s any longer.
Any help out there for me?
I try to import the VM’s and I am getting a permission error.
4 Spice ups
Login in to host, take ownership of the vm files, then try to import again.
Edit: Typo
5 Spice ups
smooney
(S.Lee)
April 2, 2015, 4:43pm
3
What happens if you log in locally into to hyper-v host? and openthe Hyper-V manager?
ssurles
(Sean Surles)
April 2, 2015, 4:46pm
4
Did you join the host to that domain?
Remove the role from the box.
Add the role to one of the VMs.
netnerd
(Josh7176)
April 2, 2015, 4:49pm
6
I clicked on this thread because just yesterday I added a Hyper-V VM to my AD/DC. Are you saying that is an issue and is not supported, or did you have your AD/DC on a VM? I’m a bit concerned. Do I need to modify my setup? Sorry I’m no help in fixing your issue.
Its not supported from Microsoft to have the Hyper-V Host as a DC. VM’s can without any issue.
Also it is most likely against licensing agreement to do it
1 Spice up
rickbaker
(rickbaker)
April 2, 2015, 4:51pm
9
rickbaker
(rickbaker)
April 2, 2015, 4:52pm
10
I made my HOST the AD / DC, the VM was a member
ssurles
(Sean Surles)
April 2, 2015, 4:54pm
11
Assuming that when you demoted the DC it also destroyed the domain unless you have other DC’s in your enviornment, and the hyper-v host still looking to authenticated against the domain its going to have issues. Unjoin it from the domain and just into a workgroup, then login locally and start your VM’s
You can try to create a new VM and attatch the VHD’s to the new machine.
ssurles
(Sean Surles)
April 2, 2015, 4:55pm
13
ah…lol that’s right, so is the Hyper-V host just in a workgroup now?
Do you have more than one DC?
If not, when you removed the one and only DC you would have reverted a bunch of permissions.
You’ll need to logon to the hyper-v box as a local admin
1 Spice up
ouch, yeah the solution depends on whether or not the DC/VM Host was the ONLY DC in the domain.
I’m hoping it wasn’t but it sounds like it may have been…!
Like others have said, you’ll have to login to the machine with local admin account to do anything with it.
1 Spice up
smooney
(S.Lee)
April 2, 2015, 5:31pm
16
Need to enble “winrm qc” and then add the hyper-v to TrustedHosts and connect to it remotely?
dreid007
(Don007)
April 3, 2015, 1:25am
17
Problem is actually that hyper-v creates a service account for each vm. These are local accounts except if you are running on a domain controller where they become domain accounts. So, when you demoted that host you effectively deleted the local account.
I would recommend copying the .VHD/.VHDX files to a new location and create a new vm using the copied files. Then when it’s running delete the old vm. If that fails it will give you an access error in the event log that you can use to track down the files (typically under c:\ProgramData).
2 Spice ups
dreid007
(Don007)
April 7, 2015, 1:15am
18
Actually came across the blog that helped me when I ran into this when I moved a machine between domains. Archived MSDN and TechNet Blogs | Microsoft Learn
1 Spice up
da-schmoo
(Da_Schmoo)
April 7, 2015, 1:32am
19
OP - Listen to Don007 - he’s on the right track to help you. You horked the permissions.