Creation of VHDs hangs on Hyper-V 2012

Unanswered Creation of VHDs hangs on Hyper-V 2012

  • Friday, January 04, 2013 3:10 PM
     
     

    I really need some help here!

    Here is my setup:

    1. Two Windows Hyper-V server 2012 joined to our domain.
    2. Firewall on Hyper-V server disabled
    3. Windows 8 Enterprise Workstation “client” with RSAT installed.
    4. DCOM access permissions set for anonymous

    From the client I am able to connect via Hyper-V manager and Server manager. No issues or errors.

    Problem:

    When I try to create a VM on either of the two servers, the wizard gets hung on “Creating the new virtual hard disk” stage. There is no animation shown…I mean the blue bar which goes from left to right.

    The same thing happens if I try to create a virtual hard disk [either expanding or fixed, VHD or VHDx].

    Interestingly, this behavior is exhibited only on these two domain joined servers. I have another server which is standalone…that works fine.

    I have been pulling my hair out for the past three days on this problem. Searched on ‘net , tried all scripts, workarounds etc etc. I suspect there is something in our GPO which is causing this. I don’t have permissions to modify GPOs here.

    Where should I look to solve this issue? I really need to start using those two Hyper-V servers for new server VMs.

    I  have already looked at these threads:

    http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/thread/c97354f8-3f39-4ae0-969d-0c34b9e3f67b

    http://social.technet.microsoft.com/Forums/en-US/windowsserver2008r2virtualization/thread/6f791bbc-a683-4495-934e-e2c7d81ef9dd

    Note:

    1. I know running them with firewall disabled is a no-no…but I had so many issues enabling rules in the firewall that I gave it up…and disabled it altogether.
    2. I am running the Hyper-V 2012 server, not the Hyper-V role on a Windows 2012 server. I guess someone people call it the free Hyper-V also. It looks like the Hyper-V on a 2012 Core.
    3. I installed Hyper-V 2012 on these servers without using SmartStart CD or similar tools.

All Replies

  • Friday, January 04, 2013 4:01 PM
    Moderator
     
     

    Try using the PowerShell cmdlets on the Hyper-V Servers themselves.

    Then you will know if it is related to you using the MMC from a remote machine, or if it is related to other issues.

    (personally, I never, ever use SmartStart, I have never had good results - I stopped using it many years ago).

    http://itproctology.blogspot.com/2012/03/handy-powershell-tasks-for-hyper-v-in.html


    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • Friday, January 04, 2013 4:57 PM
     
     

    thanks for your reply.

    I used PS on the server itself to create a VHDX and it worked fine.

    Interestingly, I also see that the MMC also created virtual HDDs while the wizard was hung.

    Now what?


    -Rajiv rajdude.com

  • Friday, January 04, 2013 5:08 PM
     
     

    Hello

    yes it can happen  that rsat stuck but the operation on the other side goes fine..

    can you check on rsat computer if  there's something strange in winrm configuration

    winrm get winrm/config

    have you tried to simply do a clean reinstall of rsat ?


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 5:29 PM
     
     

    Here is the winrm output from the hyper-v server:

    Config
        MaxEnvelopeSizekb = 500
        MaxTimeoutms = 60000
        MaxBatchItems = 32000
        MaxProviderRequests = 4294967295
        Client
            NetworkDelayms = 5000
            URLPrefix = wsman
            AllowUnencrypted = false
            Auth
                Basic = true
                Digest = true
                Kerberos = true
                Negotiate = true
                Certificate = true
                CredSSP = false
            DefaultPorts
                HTTP = 5985
                HTTPS = 5986
            TrustedHosts
        Service
            RootSDDL = O:NSG:BAD:P(A;;GA;;;BA)(A;;GR;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD)
            MaxConcurrentOperations = 4294967295
            MaxConcurrentOperationsPerUser = 1500
            EnumerationTimeoutms = 240000
            MaxConnections = 300
            MaxPacketRetrievalTimeSeconds = 120
            AllowUnencrypted = false
            Auth
                Basic = false
                Kerberos = true
                Negotiate = true
                Certificate = false
                CredSSP = false
                CbtHardeningLevel = Relaxed
            DefaultPorts
                HTTP = 5985
                HTTPS = 5986
            IPv4Filter = *
            IPv6Filter = *
            EnableCompatibilityHttpListener = false
            EnableCompatibilityHttpsListener = false
            CertificateThumbprint
            AllowRemoteAccess = true
        Winrs
            AllowRemoteShellAccess = true
            IdleTimeout = 7200000
            MaxConcurrentUsers = 10
            MaxShellRunTime = 2147483647
            MaxProcessesPerShell = 25
            MaxMemoryPerShellMB = 1024
            MaxShellsPerUser = 30

    I'm re-installing RSAT now. Will report back.


    -Rajiv rajdude.com


    • Edited by rajdude2 Friday, January 04, 2013 5:30 PM
    •  
  • Friday, January 04, 2013 5:36 PM
     
     

    Hello

    is win 8 rsat client joined to domain as well ? 

    Parameters are all ok.., i am askin this because the only thing i could say is you have no trustedhost there.

    Regards


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 5:55 PM
     
     

    yes the Win 8 client machine is a part of the domain. I am logged onto that machine using a OU level pseudo admin account. This admin account is in the local administrator's group of both the server and client via a GPO. From the documentation I see that the trusted host was not needed if both machines are in the same domain.

    By the way, does Hyper-V Server 2012 really work for anyone?

    I have another issue...

    On both the domain joined Hyper-V servers and standalone one...when I try to boot a VM off an ISO in order to install an OS... using Hyper-V manager >> connect to VM >>>Media >> DVD Drive >>> Insert disk >>> point it to an ISO............at this point I get some 'access denied' type error.

    MAN ! VMware works right out of the box......Hyper-V is making me jump through hoops for almost a week  now and still the very first VM is not even installed.

    Maybe I should breakdown and install the full Server 2012 + Hyper-V role and manage it locally on the server itself. Is that what everyone else is doing out there?


    -Rajiv rajdude.com

  • Friday, January 04, 2013 6:02 PM
     
     

    VERY INTERESTING!

    I re-installed RSAT on the Windows 8 client machine and now things are working fine!

    I was able to create a VHD and also able to create a new VM. Now lets see if I can install the OS on it.

    BTW, I uninstalled the RSAT package from control panel >>> rebooted >>> downloaded a fresh RSAT from Microsoft's website >>> installed it>>>>rebooted again... and it worked!

    Thanks for the tip...I should have tried re-installing in the first place..........I wonder why the first install did not work.


    -Rajiv rajdude.com

  • Friday, January 04, 2013 6:04 PM
    Moderator
     
     

    Where is your ISO located?

    It must be on a share with the proper permissions for the Hyper-V Server, or copied locally to it.  It cannot be on your workstation.

    Personally, I am forcing myself to use PowerShell.  But yes, no problems with the local MMC.  It just requires a Full install on the management OS.

    Most likely your issue is remotely communicating with the Disk Management subsystem of the remote server.  Many folks have reported this particular issue (unable to remotely manage the disks of a 2012 Server).


    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • Friday, January 04, 2013 6:05 PM
     
     

    :)

    i dont know your background, but if these are your first experiences with windows hyper v.. well.. its not that easy and comfortable to begin with the free hyper visor.. too much things to know for the very first time.

    i would install the hyper role on a windows 2012 server and eventually run it without the gui wich is a middle step, you can practice with powershell and at the same if something not clear use most of the gui features.

    i am supposing you get access denied errors on the iso.. so something is ofcourse not correct in permission somewhere, folder or file itself..

    can you run in powershell this command targetted to the iso file .

    get-itemproperty-path c:\iso\vhd.iso | format-list -property* -force

    regards


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 6:07 PM
     
     

    ok  now if I boot that VM from an ISO I get this error. Maybe I should start a new thread for this problem.


    -Rajiv rajdude.com

  • Friday, January 04, 2013 6:10 PM
    Moderator
     
     

    No.  You are hitting a hidden share.  And I bet the permissions are not correct.

    As it is the Hyper-V Server itself that needs permissions, not your user account.  The error might say "user" but it is the account being used.

    (many folks have run into this for many years).

    Try copying the ISO local to the Hyper-V Server.


    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • Friday, January 04, 2013 6:10 PM
     
     

    :)

    i always start troubleshooting from what normally i wouldn't do :)

    regards


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 6:11 PM
     
     

    The iso is located on a network share. So THAT is the problem!

    However I do not understand...I am logged into the client AND server with enough permissions on that share. So what more permissions are needed on the Hyper-V server?

    As for disk management,,,, I was able to use disk management remotely and create and format partitions on Hyper-V 2012


    -Rajiv rajdude.com

  • Friday, January 04, 2013 6:16 PM
     
     

    can you review share and ntfs permission on the whole thing .. just a review..

    you are asking hyper v to go into a share located elsewhere.. so someone from that machine and this case the  hyper host need permission to go in and mount the iso

    regards


    ------------------------------------------------------- I understand a little computers.


    • Edited by Ales75 Friday, January 04, 2013 6:18 PM correct
    •  
  • Friday, January 04, 2013 6:17 PM
     
     

    my background?.........well I have been working with VMware for a long time now.....even before ESXi was not even released....however I am NOT a VMware fanboy. With a (rather old) MCSE and MCSA certifications Microsoft's OSes are my bread and butter.

    I REALLY want Hyper-V 2012 to work here. They have the volume licenses and everything here.....it is a total microsoft shop. I don't really have to run the free hypervisor......I can easily install Windows 2012 server full version + hyper - V role.....but the smaller number of OS updates was a very lucrative point for me.

    However at this time I think I am very near...........all I need is the ISO to work and I am off to a start, at least. .....then gotta install and configure SCVMM!!


    -Rajiv rajdude.com

  • Friday, January 04, 2013 6:21 PM
     
     

    :)

    sorry i thought it you were approching hyper v now and coming from vmware..thats why i said that.. at least if you dont' have plenty time to play with it and study and learn everything.

    Regards


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 6:24 PM
     
     

    no no... no need for Sorry....I totally understand your point here....there surely IS a learning curve with Hyper-V......lots of things have to be 'undone' in my mind .....since I have a VMware midset of doing things.

    I guess my bad install of RSAT REALLY threw me in a spin. I literally wasted a week's worth of free time at work troubleshooting my pet project.....Hyper-V 2012 :-)


    -Rajiv rajdude.com

  • Friday, January 04, 2013 6:30 PM
     
     

    Thanks for the tip...I am sure the "computer account" of my hyper-v servers don't have access to our it_software$ network share.

    Gotta give it and will report back here ASAP.


    -Rajiv rajdude.com

  • Friday, January 04, 2013 6:32 PM
     
     

    ok in the meanwhile i give you this link.. very helpful without the GUI :)

    http://technet.microsoft.com/en-us/library/hh848705.aspx

    Regards


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 8:00 PM
     
     

    Update:

    The only way I am able to boot a VM off an ISO is to copy that ISO to the Hyper-V server’s own local drive. All these options don’t work for me:

    1. I gave read permissions [both NTFS and share level] to the network share to the computer accounts of the Hyper-V server…..did not work.
    2. I mapped a drive on the Hyper-V server….as a S drive using net use command…….S drive was not even visible to the MMC…only local C and D drives were visible. S drive was visible on the powershell command prompt. I copied the ISO to D:\ISO and ONLY THEN it works.

    I would really like to use ISOs on a network share. As my Hyper-V farm grows I don’t want to copy my OS ISOs to each and every Hyper-V host’s local drive….just like we used to do in free VMware.

    How do you guys do it?


    -Rajiv rajdude.com

  • Friday, January 04, 2013 8:11 PM
     
     

    well..

    can you be little more clear ? 

    in the folder auth properties share and ntfs did you add the hyper host computer ? as an object of your domain ? 

    just for a try and exclude further issues..

    please give full control to share and ntfs permissions and try again.

    Regards


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 8:19 PM
     
     

    yes, i added the hyper-v servers' computer accounts from the AD domain into both. see below:

    Looks good, right?

    I don't think full control is needed....but will try it later.


    -Rajiv rajdude.com

  • Friday, January 04, 2013 8:27 PM
     
     

    Rajiv right ?

    ok..

    well it's friday here and it's late.. and i am so tired and very confused about lots of things about myself/life and computers related too ! :)

    but i would like to see a computer there, not ugly men with black hairs.. is it possibile ? am i wrong ?

    :)

    regards


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 8:31 PM
     
     

    I mean something like this.. for example


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 8:36 PM
     
     

    oh $hit! did not realize that. yes...a computer account does have a different icon.......but notice the $ sign at the end........in our AD computer accounts show up like that....does not make sense

    Double checking now.


    -Rajiv rajdude.com

  • Friday, January 04, 2013 8:46 PM
     
     

    aaa ok. sorry well lets go forward.. :)

    well even if i dont understand too much among your account.. i assume they are correct..

    so first thing to sum it up, give full controll to share and ntfs,

    second at this point you need to configure delegations on domain controller.. i do this for scvvm

    in active directory go to the hyper computer object and click

    click delegation

    click trust this computer for delegation to the specified service only

    click use any authentication protocol

    click add

    click computers 

    add there the computer where iso shares are present

    add the cifs service type

    and click ok and then give it a try

    Ciao


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 8:46 PM
     
     

    man! you got me scared......I thought I lost it for a sec there. No I am doing it right :-)

    As a test I tried adding that hyper-v account to a temp folder on my file server.

    Here is what it looks like before I press OK button:

    Notice the computer icon. After I press the OK button and I open the properties back again...that icon changes to this:

    Interesting, eh?


    -Rajiv rajdude.com

  • Friday, January 04, 2013 8:47 PM
     
     

    P.S.

    it could need a reboot

    at least if you still get the error.. reboot


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 8:48 PM
     
     
    dont worry for that behavior old story.. doesn'tmatter, go on.. with what i suggested you

    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 8:51 PM
     
     

    reboot?....yeah! that fixes everything............let me tell you a story about a time I was sitting in an airplane on the Denver airport's runway........they were having some trouble......after about 15-20 minutes of troubleshooting the pilot comes on the PA system and announces that he has tried everything else..........and now it going to do the only thing left to do........yes..... you guessed it.........a reboot!!

    So he turned off everything........the airplane went dead silent for 2-3 minutes........the he started it again........and we flew out of Denver without an issue.

    Now THAT is the power of a reboot!

    LOL!!

    PS: what happens if a plane needs a reboot mid flight?


    -Rajiv rajdude.com

  • Friday, January 04, 2013 8:54 PM
     
     
    no problem i already live migrated 200 passengers on another host rebooted and then fail back with no issue :-|

    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 8:56 PM
     
     

    BTW, just tried with full control ........same problem :-(

    All right........my time is up this week. I will continue next week. Thanks a lot for your help. have a good weekend.


    -Rajiv rajdude.com

  • Friday, January 04, 2013 9:01 PM
     
     

    Ok rajiv, however full control could not be enough.. you need delegations

    give a try and let me  know

    Regards


    ------------------------------------------------------- I understand a little computers.

  • Friday, January 04, 2013 9:04 PM
    Moderator
     
     

    Damien talks about it here in the context of SCVMM but the share permissions are the same.

    http://www.damianflynn.com/2011/02/22/hyper-v-mounting-and-sharing-iso-files/


    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.
    Disclaimer: Attempting change is of your own free will.

  • Tuesday, January 08, 2013 9:31 PM
     
     

    Thanks for the tip about setting up an ISO library and delegation.

    For the past 2 days I am going back and forth with our parent AD domain folks.......they are not willing to give me permissions to make the change in AD :-(

    However, I have more problems.......posting it in another post here.


    -Rajiv rajdude.com

  • Tuesday, January 08, 2013 9:43 PM
     
     

    ok here is my latest issue..........I have the exact same problem [for which I started this thread, so scroll all the way to the top, if you wanna know] on another machine I built. On this machine no matter how many times I re-install RSAT I cannot create a VM or create a VHD/VHDX.

    Also I realized that RSAT does not need to be installed to get Hyper-V manager. HV management tools are already there in Windows 8. It just needs to be enabled as a Windows feature. I blogged about it.

    So what do I do about this machine on which I cannot do anything...re-install Windows 8??

    By this time I am sooooo frustrated with Hyper-V...........I think it may not be worth it......I may want to switch back to VMware......at least it works out of the box.......sure the free version it may have less features........but at least it works..........Hyper-V...two weeks later.........still am unable to boot a VM off an ISO unless it is on the servers' own HDD.

    In VMware, any ISO in any location....can be used through the client utility to boot. You wanna boot off a Gparted ISO to quickly change a partitition size....download latest gparted from the 'net and boot..........5 minutes later you are done!

    Learning curve...sure...but this is too steep.


    -Rajiv rajdude.com

  • Tuesday, January 08, 2013 11:52 PM
     
     

    Hello

    well really dont.. know i can tell you that with the proper configurations.. as my simply laptop has with rsat, i can do it..

    can you make the same steps on the new computer and see if it works ? 

    do you have a windows 2003 domain controller ?

    Regards


    ------------------------------------------------------- I understand a little computers.

  • Wednesday, January 09, 2013 2:07 AM
     
     

    See my point is......you don't need RSAT at all for Hyper-V management.

    Hence I removed RSAT altogether.........that did not help....then I removed the feature and re-enabled it again....multiple times..........nothing helps on that machine.

    That machine is a Windows 8 VM I created on the Hyper-V server

    I dont know what they have here as a DC........I don't have any rights here. I bet if I ask, they wont tell me :-(  or just wont respond....I am up against a brick wall in that respect here.....very frustrating place to work.


    -Rajiv rajdude.com

  • Wednesday, January 09, 2013 3:11 AM
     
     

    yes of course not at all.. 

    i see..  to be honest and after what already discussed dont know what else suggest you..

    except trying to reinstall the win 8 machine..

    and did you install integration services ? just a question..


    ------------------------------------------------------- I understand a little computers.

  • Friday, February 15, 2013 2:41 PM
     
     

    Here is an update:
    I have seen that on many virtual machines (no matter what I do) HV manager does not work properly. At first I suspected that this is because that Windows 8 machine is actually a VM running on the  host which HV mgr is trying to manage. Maybe it makes some sort of a loop or something.
    So I created a VM on a XenServer we had here. Interestingly, it does NOT work even on a VM running on a completely different hyper vizor.. My conclusion is that Hyper-V manager needs to be running on a physical machine to work properly.

    Has anyone got Hyper-V manager working properly on a Windows 8 Virtual Machine?


    -Rajiv rajdude.com