Hyper-V questions

Page 1 of 6 123 ... LastLast

  1. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #1

    Hyper-V questions


    In Hyper-V, is there any way to change NEWCOMP to a different name after it's already being used?

    Hyper-V questions-image.png

    When I run one of the VMs it shows

    Hyper-V questions-image.png

    which I don't like.
      My Computers


  2. Posts : 17,661
    Windows 10 Pro
       #2

    Ztruker said:
    In Hyper-V, is there any way to change NEWCOMP to a different name after it's already being used?

    Hyper-V questions-image.png
    That is your Hyper-V Server name, which is the same than the host computer (aka Hyper-V Server) name. Change your PC name, it will also be changed in Hyper-V Manager and title bar in virtual machine connection windows.

    In your case, it means that your host machine / Hyper-V Server is named as NEWCOMP.

    Kari
      My Computer


  3. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #3

    Hmmm, when the heck did that get changed. It's been Desktop for years, my webserver is Webserver and my laptop is Laptop (makes it easy to know which computer I'm on). Changed it and will reboot when I get a chance.

    Thank you.
      My Computers


  4. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #4

    That Pro EFI ISO (Win10 Pro 18362.239 X64 1903 Sysprep UEFI.iso) I was having all kinds of problems with under Oracle VB just finished installing under Hyper-V (Gen 2) without any problem.

    I think you are right when you said before that the weird problems I was having were due to Oracle VB. I uninstalled it last night and things are going great with Hyper-V now.
      My Computers


  5. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #5

    Booted my first VHD on real hardware, pretty neat. Took awhile for the device drivers to get straightened out, especially video. I'm logged in here from the VHD now.
    What I find weird is the Disk Management layout:
    Hyper-V questions-image.png

    It shows a 128GB Disk 5 for the VHD which was defined as 50GB. It picked up C: so all the other drives moved up one letter. It runs very quickly
      My Computers


  6. Posts : 17,661
    Windows 10 Pro
       #6

    Ztruker said:
    It shows a 128GB Disk 5 for the VHD which was defined as 50GB. It picked up C: so all the other drives moved up one letter. It runs very quickly
    I have never seen size of a VHD shown wrong, be it fixed size or dynamically expanding.

    Easy to check: boot back to your host OS, then in Hyper-V Manager, select the settings of VM that VHD belongs to. Select Hard Drive on left pane, click Inspect on right pane. This will show the actual size of the VHD if size is fixed, or maximum size of the VHD if it is dynamically expanding:

    Hyper-V questions-image.png

    Notice that although the sample VHD in above screenshot shows the actual VHD file size being under 10 GB (fresh, clean install), when the VHD is mounted or used in native VHD boot, it is shown in Disk manager as a 50 GB disk because that's the max size of that VHD I set when creating it..

    In your case, I am willing to bet that when you inspect that VHD, you'll find it's max size is 127 GB, which is Hyper-V default.

    Kari
    Last edited by Kari; 30 Aug 2019 at 06:58.
      My Computer


  7. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
    Thread Starter
       #7

    Yup ...

    Hyper-V questions-image.png

    and I somehow got a IDE controller instead of a SCSI controller. I need to be more careful when I'm setting these up.

    Couldthe IDE controller be why Hyper-V is running so slow? It's feels about a third slower then Oracle VB. Think I'll redo it and set RAM to 4GB, 2 cores, SCSI controller and 50GB and see how that does.
      My Computers


  8. Posts : 17,661
    Windows 10 Pro
       #8

    Ztruker said:
    Could the IDE controller be why Hyper-V is running so slow? It's feels about a third slower then Oracle VB. Think I'll redo it and set RAM to 4GB, 2 cores, SCSI controller and 50GB and see how that does.
    No, IDE is not the culprit. Your VHD is MBR partitioned, which means that it can only be used on Generation 1 virtual machine. The clear tell-tales that it is an MBR disk in your screenshot are the IDE controller, on GPT partitioned Generation 2 VM it would be SCSI, and on left pane, under Security, it shows Key Storage Drive setting, which in Gen, 2 VM on GPT partitioned disk would be Secure Boot.

    The real culprits for your VM being slow are the vRAM and vCPUs. With 1 GB vRAM and only 1 vCPU, it can't be anything else than slow.

    Always leave enough RAM for host. My own "rule of thumb" is to find out how much RAM my computer uses in normal use, and add 2 GB for that. I boot the PC, open a browser with half a dozen or so tabs, and for the next half an hour, I browse the net, reading news and checking forums. Doing it on this laptop, I've noticed it uses about 5GB RAM after this half an hour session, when it has settled. Basically, I could now simultaneously run multiple virtual machines as long as their combined vRAM would not be more than 11 GB. But in my case, I set my "max vRAM in use at any given time" as follows:

    16 GB total RAM - 5 GB for PC to run smoothly - 2 GB reserve = 9 GB vRAM in use at any given time. This allows me to run two VMs at the same time, both using 4 GB vRAM.

    Then the vCPU. Check how many logical processors you have:

    Hyper-V questions-image.png

    The number of logical processors on host is the maximum number of vCPUs you can use on a single VM. My recommendation is to use half of that on all Linux and Windows 7 and later guests. I have 8 logical processors, so I give all VMs 4 vCPUs.

    I think that I will write a tutorial later today about optimizing Hyper-V virtual machines. I'll post a link here when done.

    Kari
      My Computer


  9. Posts : 17,661
    Windows 10 Pro
       #9

    @Ztruker, I asked mods to move this Hyper-V discussion from the tutorial thread to its own thread, for various reasons. We can and will continue discussing image customization and deployment in the tutorial thread, but let's keep the Hyper-V stuff here.

    I hope you don't mind.

    Kari
      My Computer


  10. Posts : 2,667
    Windows 11 21H2 (22000.593)
       #10

    I'll be sure to throw in my questions as needed.

    Thanks for having this thread created, @Kari
      My Computers


 

  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 10:13.
Find Us




Windows 10 Forums