/r/HyperV
all microsoft virtualilzation topics covered here:
Blog spam is not permitted.
/r/HyperV
hi all,
ive got 2x 6 nodes ASHCI clusters. each node has 18x 15.36TB NVMe's, dual 48 core procs and 2TB of RAM per host, so i have quite a nice amount of storage and compute. the company im with is currently in the middle of a split, and MS SQL is the next thing on the cards. my initial thought process was to use this cluster to house it, using our existing licensing. however the current MS SQL estate is built on bare metals using separate storage. the current MS SQL hosts are dual 32 core procs. from a vCPU point of view the MS SQL instances are using 116 cores.
the licenses that ive got currently are well under being able to cover all 116 cores, i dont even have sufficient to cover one of my new hosts.
options i can see that ive got - purchase the license delta between what ive got and the ASHCI hosts, and lock the MS SQL VMs to that single host (and its AG replica on the other cluster) - this comes in at around £300k, or buy delta of license to cover every vCPU in use (that is a very large number i dont want to even contemplate)
option 2 look at buying dedicated hardware (compute and storage) for MS SQL that matches the license count that ive got - downside to this is that we may be moving away from MS SQL for a large number of our dbs, but not within a 2 year period, so it seems a shame buying hardware to just cover this and then have it 'wasting away' once the majority of the MS SQL estate has been decommissioned.
option 3 - can i present storage in ASHCI to bare metal servers? so i buy 2 servers - one 'attached' to each cluster, and the storage for MS SQL is presented from the ASHCI clusters.
My company has a key card system with a web interface that requires using Internet Explorer or Edge in compatibility mode. I would like to create a VM which does not access the internet and only has access to the one specific IP address. What is the proper way to handle this?
The VM would be created on a physical server which also hosts our domain controller VM and remote desktop VM. The VM has an ip address of 192.168.1.122 and the key card panel has an ip address of 192.168.1.250.
New to HyperV and trying to figure out vlan configurations.
My setup:
Thanks in Advance
I was Shutting down VMS after installing updates. I needed to check the box to allow migrate to physical computer with different processor version, as I am close to having my new hosts and msa set up.
I get to one VM, a linux VM. It will not restart, getting the error in the title.
I do some digging and discover we messed up, and the VHDX is on the local C drive of the host, causing there to be little to no space left on the drive.
So I copied the entire folder to the volume in my cluster storage. I changed the path for the VHD for the new location, and I get the same error upon starting the VM.
Stumped, any one with a similair experience, and solution?
Many thanks, in advance!
Hi Folks,
I'm new to Hyper-v and trying to setup a 2 node cluster. This error is repeating in the Hyper-V-High-Availability log every minute on each node but I can't find the issue.
Failed to register cluster name in the local user groups: Incorrect function. (0x80070001). Hyper-V will retry the operation.
I've been trying to correct this for the past 2 days but come up with no solutions. Has anyone encountered this issue before and fixed it?
Hi Guys!
I would like to have a small NAS on my home network.
Quick back story so that everyone understands my current situation:
I always was a die hard windows pc user. I didn't like laptops only home rigs that had proper cooling and performance. Long story short, I had to go to Uni and needed a laptop. I bought myself an m-series macbook, bc I heard about the good battery life that they had. After some time I started using my windows pc less and less, to the point where I sold it, mainly bc not using it at all. Now after 2 years I have regretet that decision. My MacBook only has 500gb storage bc SSD upgrade was too expensive. I bought myself some external drives, but those quickly filled up and I don't even remember where my files are on the external drives. So I thouht "Why not build a computer that can fill my Windows and Storage needs.
Windows needs: I am a Electrical Engineering student and have some platform specific programms. Im always going to the computer lab in my Uni but would like to have acces to those programms from home as well. My friend and I have also been talking about some light gaming that I could manage on MacOs before by virtualizing windows or translation layers, but does not work anymore bc some games that we would like to play use AntiCheat.
I need help in the folllowing: How can I run TrueNas in Hyper-V? Is Windows 10/11 pro enough for that VM? Do I need Windows server? Is VHD or Dive passtrough the better option? Can I even do Drive passtrough to VM on non-server Windows? Maybe pass the sata controller to the VM. I would install windows on m.2 ssd. Would simple windows SMB be enough? (Windows server license is caryz expensive and MC Azure doesn't include W server license in the student subscription anymore. (or at least not in Austria) Can I activate W server somehow else?)
My Storage needs aren't anything crazy, not like the die hard homelabbers who have 100tb of storage. I only need 4-8tb of usable space. What drive array should I be using? Is ssd caching worth it? Would it speed up the transfer of files? Currently using a 1gib ethernet in my room, but can upgrade to 2.5 if needed.
Most probable specs of my soon to be bought computer:
-Ryzen 7 5700g (very good idle power efficiency of Ryzen APU's compared to 5700) or 5900x (worse power efficiency, but 4 more cores, total of 12) Is it worth it? Only 70€ difference
-Asus b550 mobo
-32gb ram
-4tb wd blue hdd as a start
-128gb sata ssd for TrueNas
-2tb m.2 ssd for windows.
I would still be using the Mac as my daily machine so do not want to sell it.
Thank you for reading my post!
I wish everyone a nice day!
Hi all,
I've noticed something odd. If I start the Hyper-V manager, UAC does not ask me for elevation. However, FancyZones does display "there is an application running with administrative privileges".
Hyper-V also is capable of interacting with VMs. It can start / stop etc.
If I try the same activities from PowerShell, I explicitly need to run PowerShell "as administrator".
Does anyone know how Hyper-V manager does this? Is it exempt from UAC? Is it communicating directly with VMMS?
I would like to know as I started writing an API for Hyper-V and I continuously have to remember to start my webserver elevated. If I can avoid that, that would help.
I have set up a Windows XP Sr3 VM but the display won't show. I cannot find the display anywhere in the setting. Any ideas
Does anyone know if setting google drive to sync the active VM directory will work for restoring a lost machine?
I'm very inexperienced with networking/vm's/etc. I have a host machine that is running Windows Server 2022 and Hyper-V. The host machine has internet access. I've created an external virtual switch in Hyper-V and attached it to the network card in the host machine. I have a VM running in Hyper-V with Windows 10 installed. I've set the network adapter of the VM to be the external switch I created however, the VM cant access the internet. I've looked at a lot of different forums and articles and nothing I've tried has worked. Can anyone help?
This is ipconfig for the host machine
And here is what ipconfig for the VM looks like.
The windows network troubleshooting wizard on the VM says that the default gateway cant be reached. I am unable to ping 192.168.1.1 from the VM.
Here is a screenshot of the network adapters for the host.
And here is the vswitch config
I disabled the enhanced session options and I boot with GRUB_CMDLINE_LINUX_DEFAULT="" which are the two fixes I found online but I still have the same problem
I'm on a snapdragon arm laptop in case it matters
Long time user of Win 2012 R2 Hyper-V (and before that 2008 Hyper-V). Now playing with Server 2022 with Hyper-V role.
Can someone briefly describe or link an article with the current best practices? Please note this is homelab situation. No Active Directory or anything complicated. This is just a hobby now.
Back in the day, when I wanted to cookie-cutter rollout a new VM (generally Windows VMs such as XP and Win 7). I created a new Gen1 VM and copied in a "Golden Master" of a previously configured VM into the VHD location. Then booted it, changed the PC name, and voila a new Windows VM.
I'm not sure if that was the best way back then, but it mirrored what I did whenever a new staff person came on board and needed a physical new computer (booted PC with a Ghost CD, paved over the hard drive with the golden image, booted it, name change, and off the new staff member went).
Hi, I have some hyperv instances in a professional environment, we rent bare metal the servers and all the bare metal hyperV host are in a vRack.
Currently all the VM are in the same VLAN but we aim to segment the network for security. We currently use OPNSense virtualized on HyperV for the interVLAN routing. We started by adding VLAN by directly adding virtual NIC to the VM and set the default vlan of thoses NIC, is that a good idea ? Should we just manage the VLAN directly on OPNsense ?
Also, our HyperV host have Mellanox Connectx6 25Gbps NIC. Should we use SR-IOV to increase the bandwidth in the routing of Opnsense ? It gonna change something with the vlans? What about safety ?
And lastly, I had to disable VMQ on the VM because it make the Opnsense Os weird. What are the downsides ?
Thank in advance
After spending two weeks trying to get Virtual Box to run on my Win 11 pro with a Window XP 32 bit Guest and never able to get XP to fully install without BSOD. I am now trying to negotiate Hyper V.
I am getting the message
This is Window XP 32 bit. I thought it would run in 512mb. Do I just need to increase the amount of memory to 5 GB? Anything else? Is it me, Hyper V does not seem to as intuitive as Virtual Box. Thank you for your council.
I'm having an issue that makes me wonder if I'm doing something that can't be done or if there's a config error that I haven't been able to find yet.
I have two clusters, Cluster A is the primary with 9 hosts and Cluster B is at a different DC in a different city for DR purposes with 4 hosts - all hosts are on Server 2022 DC and each cluster has 4 CSVs. I noticed when I set up the Replica Broker role in both clusters that the default location has to be the CSV that the broker node currently owns, any other CSV locations results in a "Parameter is incorrect" error. Is that expected?
When I replicate a VM, in this scenario the VM is currently sitting on Host 1, CSV 1 in Cluster A. I set it up to replicate to Cluster B's broker which is currently owned by Host 1 in Cluster B with CSV 1. The VM replicates and ends up on Host 1, CSV 1 in Cluster B.
I then want to reverse replication to fail it back to Cluster A. I select the broker in Cluster A, which is currently owned by Host 2, which has a default replica file location of CSV 2. When I get to the end of the replica wizard I get an Access Denied (0x80070005) error stating that Host 1 on Cluster A failed to authorise the connection. If I then move the role and storage to be owned by Host 1, I can then reverse replication.
I've noticed on Host 1 when looking at its Hyper-V settings, the Replica settings are not identical to the Brokers settings. On the Broker I have it set to Allow Replication from any server, while the individual hosts select the option to only allow from specific servers with a blank list. I did try switch the broker to this option and specified the broker from each end, but the individual hosts don't populate the list in this mode either.
Am I missing something or is the replica feature a bit broken with clusters?
I’m on a snapdragon x elite copilot laptop and my vms just say “start pxe over IPv4” and it won’t start. Any help? I have default switch on.
Engineer of our MSP, who I trust with almost anything, has setup a new Hyper-V cluster with DataCore shared storage underneath. Both nodes (only 2) of the cluster are Dell R760s with NVME in raid storage. Both nodes are direct connected through dual fiber 10Gbit.
I was just doing some sanity checks on the VMs that were migrated from our previous Hyper-V environment (non clustered). I'm not seeing the blazingly fast performance I was expecting, but my engineer explained that reads are very fast, because data is present on both nodes, but writing takes a hit, because has to be replicated due to data core.
What speeds am I expecting to see for, let's say, copying some files from 1 VM to another?
We have many servers running on windows hyper-v. The only backup running is using the builtin replication. But this is really only good for hardware failures. What about software failures to the OS for example? If a server crashes due to an update or corruption how can we restore a recent backup? Other than manually running checkpoints all the time.
Is Veeam the solution to this?
I am adding GPU support for my VMs and everything appears to be working except for Windows recognizing the driver inside of the guest VM.
The interesting thing is if I:
I get the GPU acceleration. However, on reboot of the VM guest I again get the above.
Is there any way to keep these settings intact between startups?
I am on windows 11.
how do I make a system image backup that backs up everything on my computer all my apps and hyperv virtual machines.
or do I have to individually back up the hyperV virtual machines?
Due to a hardware failure, I'm going to reinstall my Hyper-V server onto a new box. The old one running Server 2012 R2 with the Hyper-V role was rock-solid and did what I needed it to do with various Windows XP, 7, and 10 VMs. I even dabbled in Linux but it was only so-so (am too much of a rookie with Linux to know what the actual problem was).
The new box at my disposal is basically just a new motherboard and CPU with the 32GB of old DDR3 RAM transferred over.
I could easily put 2012 R2 back on it or even disaster-recover the old server.
But there is now the opportunity to install Server 2016 and its Hyper-V role.
The one reason I can think of for going 2016 is its Hyper-V can fake TPM and so I can now play with Windows 11 VMs properly. Currently, the TPM requirement can be gotten around. (As an example, I'm typing this on a i5-4th gen box with no TPM with a hacked-in Win 11.) But maybe that won't be the case going forward.
Is there any other benefit to using 2016?
The reason I'm shy about using 2016 is that it likely requires more memory and disk space. And the hardware I'm using is maxed out at 32GB of RAM.
While I've got your attention, is there any benefit to jumping to Server 2019 or even 2022? I foresee even more memory and disk requirements with those newer versions.
My needs are pretty basic. Server 2012 R2 has run my virtual infrastructure for over 11 years(!) and Windows 11 aside, I don't need any more than what it provides. Though I'm not super impressed with how it supports Linux (is 2016 better? 2019/2022 better?)
Hi all. Looking at possibly moving a client to Hyper-V for host stack management. I understand that 2-core packs are needed in addition to the Win Server Data Center licensing. Is that right? The price per license is $380 per 2-core packs?
So, if my client has 292 cores, they're looking at needing 146 2-core packs. That's $55,480, correct?
Host Distribution 2x12=24-core hosts: 7 2x10=20-core hosts: 3 2x8=16-core hosts: 4
Total Cores 2x12=24-core hosts: 7 * 24 = 168 cores 2x10=20-core hosts: 3 * 20 = 60 cores 2x8=16-core hosts: 4 * 16 = 64 cores
Total number of cores: 168 + 60 + 64 = 292 cores
I'm assuming this is possible but I'm just trying to find out how it would work? What the install process would be.
I was told a few years ago to do this and I still haven't done it so I'm going to give it a go.
I'm about to lose it. I'm trying to install Windows Server 2022 on Hyper-V and hitting walls literally every step of the way.
I have to do this because it's a school assignment. So, I'm also working on a school computer. I'm at the part where I'm asked to create a password for the Administrator. since it's just for school, I want to keep it simple and I know my teacher had no issues using "cisco" as a pw.
But it won't let me do that. It tells me to put in the password that can be used to login as the "integrated Admin account", but if I put something simple, it tells me that it doesn't meet the requirements that have been set for the network/group.
I didn't set any admin password requirements though??? and if it means requirements that were set by my school admin, how would I know those? and why can my teacher use cisco? I'm lost and ready to toss this damn computer out the window.
Can I use the same USB for different hard drives of the virtual machines I create with Hyper-V? And what I mean is to make a partition on my USB that allows me to have more than one Hyper-V hard drive on the same USB.
In VMware, I can go into the UEFI settings and add my secure boot keys.
How do I do this in Hyper-V?
I'm working on installing some software on a HyperV guest for a proof of concept. Our lab has all bare-metal VMWare so I have a Windows 2022 guest that I enabled HyperV on and installed Rocky Linux. Try as I might, I cannot get the network adapter on the Rocky server to pass traffic to the LAN or accept traffic from the LAN that the VMWare host lives in. Is there an issue using virtual network interfaces on a HyperV host? Thanks!
EDIT: Found the answer on https://www.bdrsuite.com/blog/nested-hyper-v-vms-on-a-vmware-esxi-server/ It was the settings on the VSwitch. Many thanks to the community for the help!
I create an external switch in Hyper-V to allow my virtual machine to have internet access. However, I noticed that my host internet become no internet while still connecting to the Wi-Fi. My phone is still able to connect to the Wi-Fi with no issue. Is that how every virtual machine does?
Can't find related information on the internet. Maybe I just don't understand the concept of switch. Any alternative to keep both host and virtual machine to have internet access?
I got the following error:
I did some research, some said that the port was occupied (while I'm only browsing the internet?), some said the firewall block it (When I only have the default windows security?) Also try to google the instance ID, doesn't saw anything relevant.