Hyper-V virtualization - Setup and Use in Windows 10  

Page 12 of 46 FirstFirst ... 2101112131422 ... LastLast

  1. Posts : 2
    Windows 10 Pro x64
       #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.

    Hyper-V virtualization - Setup and Use in Windows 10-screenshot-1-.png

    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 Computer

  2. Kari's Avatar
    Posts : 17,120
    Windows 10 Pro
    Thread Starter
       #111

    GoldenOrb said:
    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:
    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_24_01_24_191.png

    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:

    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_24_01_26_542.png

    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:

    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_24_01_28_373.png

    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:

    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_24_01_33_164.png

    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:

    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_24_01_35_095.png

    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:

    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_24_01_39_376.png

    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 Computer


  3. Posts : 2
    Windows 10 Pro x64
       #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 Computer

  4. Kari's Avatar
    Posts : 17,120
    Windows 10 Pro
    Thread Starter
       #113

    You are welcome :)
      My Computer

  5. Cliff S's Avatar
    Posts : 24,325
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       #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):

    Hyper-V virtualization - Setup and Use in Windows 10-image-001.png

    I've tried with a normal network
    Hyper-V virtualization - Setup and Use in Windows 10-image-002.png

    and I've tried with a Legacy network
    Hyper-V virtualization - Setup and Use in Windows 10-image-003.png

    No matter what OS or network adapter, I constantly receive this error
    Hyper-V virtualization - Setup and Use in Windows 10-image-004.png
      My Computers

  6. Kari's Avatar
    Posts : 17,120
    Windows 10 Pro
    Thread Starter
       #115

    @Cliff S,
    Cliff S said:
    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:
    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_27_11_24_461.png

    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:
    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_27_11_25_522.png

    For connection, select Not connected:
    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_27_11_26_163.png

    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:
    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_27_11_27_194.png

    Still in vm Settings, remove the not connected network adapter...
    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_27_11_28_045.png

    ...and add a Legacy Network Adapter:
    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_27_11_28_396.png

    Finally, connect the Legacy Network Adapter to an external switch:
    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_27_11_29_267.png

    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:
    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_27_11_30_438.png

    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:
    Hyper-V virtualization - Setup and Use in Windows 10-2015_11_27_11_41_121.png


    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 Computer

  7. Cliff S's Avatar
    Posts : 24,325
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       #116

    @Kari
    I just followed what you've done, but still a fail.
    Hyper-V virtualization - Setup and Use in Windows 10-image-001.png

    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 Computers


  8. Kari's Avatar
    Posts : 17,120
    Windows 10 Pro
    Thread Starter
       #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 Computer

  9. Cliff S's Avatar
    Posts : 24,325
    Win10 Pro, Win10 Pro N, Win10 Home, Win10 Pro Insider Fast Ring, Windows 8.1 Pro, Ubuntu
       #118

    Kari said:
    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 Computers

  10. Kari's Avatar
    Posts : 17,120
    Windows 10 Pro
    Thread Starter
       #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 Computer


 

Tutorial Categories

Hyper-V virtualization - Setup and Use in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
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 17:38.
Find Us




Windows 10 Forums