Windows 10: Hyper-V virtualization - Setup and Use in Windows 10  

Page 12 of 39 FirstFirst ... 2101112131422 ... LastLast

  1. Posts : 2
    Windows 10 Pro x64
       23 Nov 2015 #110

    I followed Kari's tutorial to set up a Windows 7 Pro vm running under Windows 10 Pro. All was working without any problems until I booted up this morning and tried to start Windows 7 vm. I received an error condition from Hyper-V Manager that it couldn't start the vm because the vhdx file was being used by another process.



    Being a newbie to virtual machines I've got no idea how this happened and how to resolve the problem. I would not like to start from scratch again as it took some time to bring my Windows 7 Pro SP1 up to date.

    Any help would be much appreciated.
      My ComputerSystem Spec


  2. Posts : 11,232
    Windows 10 Pro
    Thread Starter
       23 Nov 2015 #111

    GoldenOrb said: View Post
    I followed Kari's tutorial to set up a Windows 7 Pro vm running under Windows 10 Pro. All was working without any problems until I booted up this morning and tried to start Windows 7 vm. I received an error condition from Hyper-V Manager that it couldn't start the vm because the vhdx file was being used by another process.
    Your error message tells it clearly that you have either accidentally or on purpose mounted the virtual hard disk on your host system, that's why Hyper-V cannot start the vm.

    Here's what I mean:

    Start situation, my host machine's drives seen in File Explorer:
    Click image for larger version. 

Name:	2015_11_24_01_24_191.png 
Views:	47 
Size:	138.0 KB 
ID:	50203

    Going in to the folder where my virtual hard disks are stored, I double click one of my virtual hard disks, in this case Windows 10 Home virtual machine's disk:

    Name:  2015_11_24_01_26_542.png
Views: 523
Size:  68.5 KB

    This mounts it on my host system, and now I can see two new hard disks (both partitions of the vhd) in my File Explorer:

    Click image for larger version. 

Name:	2015_11_24_01_28_373.png 
Views:	49 
Size:	143.3 KB 
ID:	50205

    This, being able to mount the virtual hard disks on host is a practical feature, allowing for instance fast file copy when I need to transfer lots of data from host to a virtual machine. To do that I simply mount the vm's virtual hard disk, copy what I want to it, unmount it and run the vm.

    Trying to run the vm now tells me that Hyper-V cannot start the vm because the virtual hard disk is used by another process, in this case the system itself because the vhd is mounted to host:

    Click image for larger version. 

Name:	2015_11_24_01_33_164.png 
Views:	69 
Size:	101.9 KB 
ID:	50208

    I need to release, unmount the virtual hard disk from the host system before Hyper-V can use it and I am able to start the vm:

    Click image for larger version. 

Name:	2015_11_24_01_35_095.png 
Views:	106 
Size:	131.5 KB 
ID:	50209

    Right click the mounted virtual hard disk, select Eject to unmount it. Notice that you only need to do this once even if the virtual hard disk had multiple partitions; unmounting / ejecting any of the partitions of a vhd unmounts all of them.

    The virtual machine can now be started normally. If you now try to mount the virtual hard disk you get an error message:

    Name:  2015_11_24_01_39_376.png
Views: 514
Size:  22.9 KB

    A simple principle, really: a vm cannot be started if any of its virtual hard disks is in use by another program or process, for instance when mounted to host, and a virtual hard disk cannot be mounted to host if it belongs to a vm which is currently running.

    Kari
      My ComputerSystem Spec


  3. Posts : 2
    Windows 10 Pro x64
       23 Nov 2015 #112

    So simple. Boy, I've got a lot to learn. Thank you Kari, firstly for the prompt reply, secondly for the great explanation which any newbie could follow and understand, and thirdly for removing all my stress.

    My Windows 7 Pro virtual machine is once again running very smoothly.

    Thank you, thank you.
      My ComputerSystem Spec


  4. Posts : 11,232
    Windows 10 Pro
    Thread Starter
       23 Nov 2015 #113

    You are welcome
      My ComputerSystem Spec


  5. Posts : 14,942
    Microsoft Windows 10 Pro 64-bit 14393, Windows 10 Insider Fast Ring, Windows 8.1 Update, Ubuntu
       27 Nov 2015 #114

    Good morning @Kari

    I've uninstalled VMPlayer and have been trying to create a Hyper -V VM of Ubuntu(also tried Win10 as a test), but it fails every time.
    I've tried it using the CentOS Tutorial and the Windows ones(both Generation 1 & 2).

    I don't have much time today as I have late shift and need to leave at 13:15, but any input would be appreciated. Or if possible, this weekend, get together on Skype with desktop sharing and I can show you what I'm doing, and you can correct me.
    I just don't find it as intuitive as VMPlayer(free version), more powerful yes, but less intuitive

    This is what I have so far(5th or 6th try):

    Name:  Image 001.png
Views: 88
Size:  30.7 KB

    I've tried with a normal network
    Name:  Image 002.png
Views: 87
Size:  57.5 KB

    and I've tried with a Legacy network
    Name:  Image 003.png
Views: 90
Size:  51.2 KB

    No matter what OS or network adapter, I constantly receive this error
    Click image for larger version. 

Name:	Image 004.png 
Views:	107 
Size:	1.77 MB 
ID:	50709
      My ComputersSystem Spec


  6. Posts : 11,232
    Windows 10 Pro
    Thread Starter
       27 Nov 2015 #115

    @Cliff S,
    Cliff S said: View Post
    I've uninstalled VMPlayer and have been trying to create a Hyper -V VM of Ubuntu(also tried Win10 as a test), but it fails every time.
    I tested just now, I have no issues. Let's see we do it in the same way. First, setting up the vm, please remember that the Generation 2 (UEFI) can only be used for Windows 8 or later, Windows Server 2012 and later, Red Hat Enterprise Linux and CentOS Linux 6 or later guests, and that the Generation 2 guest must be 64 bit.

    In case of Ubuntu, this is the first important choice, it must be Generation 1:
    Name:  2015_11_27_11_24_461.png
Views: 89
Size:  47.7 KB

    Next, although OK to change later, do not use dynamic memory when setting up a vm and installing guest OS. Unselect it in vm wizard:
    Name:  2015_11_27_11_25_522.png
Views: 89
Size:  45.6 KB

    For connection, select Not connected:
    Name:  2015_11_27_11_26_163.png
Views: 77
Size:  36.1 KB

    Add virtual processors from the vm's settings after creating it but before launching it the first time. I use the maximum my hardware allows, 4 virtual processors:
    Name:  2015_11_27_11_27_194.png
Views: 91
Size:  98.6 KB

    Still in vm Settings, remove the not connected network adapter...
    Name:  2015_11_27_11_28_045.png
Views: 79
Size:  104.9 KB

    ...and add a Legacy Network Adapter:
    Name:  2015_11_27_11_28_396.png
Views: 85
Size:  86.1 KB

    Finally, connect the Legacy Network Adapter to an external switch:
    Name:  2015_11_27_11_29_267.png
Views: 76
Size:  112.5 KB

    The vm in above screenshots had no issues in starting and connecting to the network. It's still installing, here's the vm exactly this moment I am writing this:
    Click image for larger version. 

Name:	2015_11_27_11_30_438.png 
Views:	105 
Size:	930.0 KB 
ID:	50724

    When installed, shut down the vm, remove the Legacy Network Adapter and add a normal network adapter connecting it to an external switch. Boot Ubuntu vm. Should work now:
    Click image for larger version. 

Name:	2015_11_27_11_41_121.png 
Views:	151 
Size:	629.5 KB 
ID:	50727


    It took me less than 25 minutes from the first screenshot above to the last, to create a new vm, stopping by to make the above screenshots, install Ubuntu and get it connected to network

    Kari
      My ComputerSystem Spec


  7. Posts : 14,942
    Microsoft Windows 10 Pro 64-bit 14393, Windows 10 Insider Fast Ring, Windows 8.1 Update, Ubuntu
       27 Nov 2015 #116

    @Kari
    I just followed what you've done, but still a fail.
    Click image for larger version. 

Name:	Image 001.png 
Views:	115 
Size:	810.9 KB 
ID:	50728

    I have to get ready to go to work now, but maybe I have some software interfering with Hyper -V(like RAPID mode from Samsung Magician).

    I'll have to do some more troubleshooting(which I like doing) this weekend when I have more time.

    Thanks for your help though, now I know it wasn't me( have tried different settings too) I mean I did understand the tutorials, it must be some conflict somewhere.
      My ComputersSystem Spec


  8. Posts : 11,232
    Windows 10 Pro
    Thread Starter
       27 Nov 2015 #117

    I suspect you the same issue I addressed just before your post: Have you mounted the virtual hard disk to the host? If yes, you should unmount it first. Read this post.
      My ComputerSystem Spec


  9. Posts : 14,942
    Microsoft Windows 10 Pro 64-bit 14393, Windows 10 Insider Fast Ring, Windows 8.1 Update, Ubuntu
       27 Nov 2015 #118

    Kari said: View Post
    I suspect you the same issue I addressed just before your post: Have you mounted the virtual hard disk to the host? If yes, you should unmount it first. Read this post.
    Nope I haven't mounted it. But would it make a difference if the ISO is in my Documents library on my 2nd internal drive, instead of my C: drive?
      My ComputersSystem Spec


  10. Posts : 11,232
    Windows 10 Pro
    Thread Starter
       27 Nov 2015 #119

    No, I have all my ISO images used to install guests on external drives. I need to go for an hour or so, I will check different scenarios later today and post if I find something.
      My ComputerSystem Spec


 
Page 12 of 39 FirstFirst ... 2101112131422 ... LastLast

Related Threads
I've been using Windows 7 Home Edition 64bit since it's release &, by in large, I'm pretty pleased with it. During a motherboard change & RAM upgrade to 32G, I upgraded to Windows 7 Pro (to enable all RAM to be used) which I choose in preference to...
Used this tool, Download Microsoft® Hardware-Assisted Virtualization Detection Tool from Official Microsoft Download Center No go VMware said the same thing boo-hoo anyone have instruction to enable in bios ? Spec's are added, Cheers.
Hi I'm getting there, I've downloaded the .ISO file, I've made 2 images of my C:\ drive (using 2 different backup programs) and I've created a 100 GB partition on my second hard drive labeled Windows 10. Now I'm going to create the install...
Solved Windows 10 and Hyper-V in Installation and Upgrade
I tried to install the preview as a virtual machine and everything went fine until after a reboot following the download and installation of the updates. Both 8.1 & 10 locked up with a strange crackling noise through the speakers every few seconds....
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:57.
Find Us