Does anyone know this offhand?
Hyper-V on WWAN connection
Hello, just a quick question, does Hyper-V know when I am on a metered connection? If it does, is it automatic? If it doesn't, is there a way for me to tell it it's on a metered connection? Thanks!
Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
5 answers
Sort by: Most helpful
-
-
Evgenij Smirnov 541 Reputation points
2021-01-31T15:04:53.137+00:00 Do you mean 'does a Hyper-V VM tag its LAN connection as metered if the vSwitch it is connected to is the default vSwittch uplinked to a cellular network'?
AFAIK, it doesn't. Not all OSes have this ability anyway.
-
Xiaowei He 9,936 Reputation points
2021-02-01T06:42:47.487+00:00 Hi,
What is the OS of the Hyper V host?
If the OS is upper windows 10 and Windows Server 2016, we can enable the metered connection on the Hyper V host.
Thanks for your time!
Best Regards,
Anne-----------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
-
Anthony 26 Reputation points
2021-02-01T14:57:09.94+00:00 Hello so the host is Windows 10 and the VM is Windows 10
The host will connect to the Internet via a WWAN (a cellular connection either through a hotspot or through a sim card in the PC)
I know I can set the host to use the metered connection but if I don't check off that option I am wondering if the virtual machine is smart enough to know that the host is on a metered connection so it doesn't download windows updates over a cellular connectionAlso, while on the topic of networking, I am curious to know if it is possible to block the connections to the host. For example, if the host is connected to a VPN the VM can access the resources from the VPN tunnel. Such as network shares, is it possible to configure the VM to not allow that.
As far as I know it can't because the VM is using the network card from the host and since it's going to be portable there won't be a switch on the back end to do any v-lan tagging. Any insight on this?
-
Xiaowei He 9,936 Reputation points
2021-02-04T01:58:36.79+00:00 Hi,
I know I can set the host to use the metered connection but if I don't check off that option I am wondering if the virtual machine is smart enough to know that the host is on a metered connection so it doesn't download windows updates over a cellular connection
It needs to test while we didn't have the environment to test for you, you may try to enable the metered connection on the VM, check if it could work.
I am curious to know if it is possible to block the connections to the host. For example, if the host is connected to a VPN the VM can access the resources from the VPN tunnel. Such as network shares, is it possible to configure the VM to not allow that.
I am also curious, if the host connect to the VPN server, does the VM connect to the VPN automatically? Does it work in your environment?
If yes, as far as I'm concerned, you may add another NIC on the Hyper V host that can access the VPN server for VPN connection, at the same time, make the physical NIC used for external virtual switch not have access to the VPN server, in this way, the VM connect to the external virutal switch won't have access to VPN server, so won't have access to the internal network.
Thanks for your time!
Best Regards,
Anne-----------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.