Hyper-V virtualization - Setup and Use in Windows 10  

Page 29 of 47 FirstFirst ... 19272829303139 ... LastLast

  1. Posts : 27,180
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #280

    Something interesting I found @Kari:
    Hot add memory and network adapter:
    You can adjust the amount of memory assigned
    to a VM while it is running, even if Dynamic Memory isn’t enabled. This option works for both
    generation 1 and generation 2 VMs. On VMs created using the Generation 2 option, you can
    also add or remove a network adapter while the virtual machine is running.
      My Computers


  2. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #281

    Cliff S said:
    Something interesting I found @Kari:
    Yes, that is a practical feature. You cannot toggle dynamic memory on and off when the vm running but you can increase / decrease the amount of assigned RAM.
      My Computer


  3. Posts : 27,180
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #282

    Kari said:
    Yes, that is a practical feature. You cannot toggle dynamic memory on and off when the vm running but you can increase / decrease the amount of assigned RAM.
    Yup, if a VM is running a bit slow(say an update/upgrade) you can now add a bit more if you can spare it.
      My Computers


  4. Posts : 27,180
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #283

    Oh @Kari, because I have added a lot more to my OneDrive and it's syncd with my VM, I ran out of space for the new build upgrade.
    I figured out what to do, all by myself(I'm so proud, even though it was simple logic, and trial & error:))

    I had to shut down the Insider Preview VM,
    delete all checkpoints,
    Edit the hard drive to enlarge it,
    ***example of Ubuntu VM***
    Hyper-V virtualization - Setup and Use in Windows 10-image-001.png

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

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

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

    then restart the machine,
    go into Disk Management and extend the virtual partition.
    Done.

    Now you can make a tutorial about it, my friend and teacher

    "How to enlarge your virtual hard drive, if you run out of room to update or upgrade"
      My Computers


  5. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #284

    That was well done!

    However, you can of course think this in advance and set the max size of a vhd to something that for sure is enough. The vhd is dynamically expanding, the amount you give the allowed max size, not the actual size. The thing is, although the host system only uses as much as is needed, the vm sees it as a HDD as big as your given max size.
    Hyper-V virtualization - Setup and Use in Windows 10-2016_02_19_16_01_101.png

    An example: You create a 1 TB vhd when creating a vm, and install Windows 10 on that vhd. After the installation the host sees the vhd as an about 15 to 20 GB file, but the vm sees it as a 1TB HDD.
      My Computer


  6. Posts : 5,478
    2004
       #285

    Kari said:
    That was well done!
    Oh yes it was. I was never into the gold look but that looks great. well done @Cliifs

    Kari said:
    The thing is, although the host system only uses as much as is needed
    Don't overstate that. Reason being that it isn't true.

    I have a 32 bit install which I use for testing (I use it for Tor and other small things). The VHDX maximum size is 20GB. Installed is <5GB. The size on the host is ~7GB.

    After an upgrade it goes to ~18GB and even though (after cleanup) the VM says 4.5GB and I have compacted it the disk space taken is never less than 11GB.

    I have to save it and restore. Hyper-V isn't good at compacting small (virtual) disks I think.

    You should also mention taking the default 127GB is not wise if you want to ever boot it native.
      My Computer


  7. Posts : 27,180
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #286

    @Kari, I have this Insider VM on my C: drive an SSD(over 500GB) but that I only use it to test the upgrading and just to see what's new, and not really "use" it, I might migrate it to the spinner that has more space and already a VM library prepared. For the migration I might need your help next time we're on Skype. For now though, I have given it a total of 45GB and that shoulöd be enough.

    It was only because, now I have more OneDrive space, I added more files to it, and forgot that it downloads & syncs to the VM too. I could turn it off(in the VM), but in the VM I'm trying what you said you do with OneDrive. And in my post in the themes forum, you see it works darn good.
      My Computers


  8. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #287

    lx07 said:
    Don't overstate that. Reason being that it isn't true.
    Sorry, I was not thinking clear enough to explain this simply enough for even you to understand:

    A Hyper-V vhd behaves as any dynamically expanding disk on any virtualization platform; of course when the content is deleted from the vhd it does not shrink the same amount; deleting 10 GB might only reduce the host vhd file size with a gig or two. Over a time, any vhd file grows bigger than what is actually needed.

    That's why Hyper-V has the Compact feature:
    Hyper-V virtualization - Setup and Use in Windows 10-2016_02_19_17_07_021.png

    I will try in the future explain these things even more simplified.

    Kari
      My Computer


  9. Posts : 5,478
    2004
       #288

    Cliff S said:
    @Kari,It was only because, now I have more OneDrive space, I added more files to it, and forgot that it downloads & syncs to the VM too. I could turn it off(in the VM), but in the VM I'm trying what you said you do with OneDrive. And in my post in the themes forum, you see it works darn good.
    @Kari may disagree, (or have a better idea), but I only sync programs between my various VM's (saves installing them). For me it is only 100MB which is nothing.

    I was wondering if it was possible to use the same place (for various test machines) with the same OneDrive.

    Honestly though, I think it would not work as the SID would be different.

    It would be the same as relocating your user folders from 2 computers to the same external drive. And share it. It would not (I certainly hope) work.

    I think if you run lots of VMs (like I do) you only share stuff you have space for.
      My Computer


  10. Posts : 5,478
    2004
       #289

    Kari said:
    That's why Hyper-V has the Compact feature
    Really? Gosh.

    lx07 said:
    After an upgrade it goes to ~18GB and even though (after cleanup) the VM says 4.5GB and I have compacted it the disk space taken is never less than 11GB.

    I have to save it and restore. Hyper-V isn't good at compacting small (virtual) disks I think.
    Guess as usual you found it a little difficult to read someone post before replying huh?
      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 Discussions
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 23:54.
Find Us




Windows 10 Forums