Hyper-v VM shows 'Limited Connectivity' when using External Switch? - virtual-machine

I have been trying to setup a Win7 VM on Hyper-v that connects to the internet through my Win 8 host machine.
I can't seem to figure out why the VM can't ever get passed limited connectivity. Any ideas?

NO sure why but all I had to do was Disable/enable the vEthernet adapter and everything worked great!

Check that you have a Virtual Switch with an "External Network" using the Virtual Switch Manager.
The other network types offer VM isolation. If your VM is on an "Private Network" it can only talk to other VMs on the server. The "Internal Network" allows VMs can talk to other VMs and to the host.
In contrast, an External Network allows the VM to contact machines on the network that the host is attached to.

I worked on this issue for a while myself after upgrading to Windows 8.1 and losing connectivity. Added and removed the adapter to no avail. The solution was to upgrade the VM's Integration Services.

I had the same issue because my DHCP settings on my guest VM was setup wrong.
So check the DHCP setting if they are on obtain automatically.
Control Panel\Network and Internet\Network Connections
Network adapter properties -> Internet Protocol Version 4 (TCP/IPv4) -> Properties ->
Obtain DNS server address automatically

I have had great success with Hyper-V and windows 8 and windows 10 virtuals using external switches with a Windows 8.1 host. Unfortunately I could not get the external switch to ever work on windows xp virtual running under Hyper-V. Instead, after reading a lot of sites/suggestions, I followed this guide to bridge an internal virtual switch (with Hyper-V legacy network adapter for XP) to the host wifi. I hope this saves someone else some time when working on an XP virtual.
Using Hyper-V with a Wireless Network Adapter

Related

Can't find hyper-v virtual machine for HoloLens 2 emulator

does anybody know why I can't see the HoloLens 2 emulator as a virtual machine in the hyper-v manager? As far as I know, it is hyper-v based. I'm doing this so that I can change the default virtual switch to an external one (virtual as well) so that other client devices can connect to a server on the HoloLens 2 emulator. If I misunderstood something, tell me that as well.
The HoloLens 2 Emulator uses the Host Compute Service (https://learn.microsoft.com/en-us/virtualization/community/team-blog/2017/20170127-introducing-the-host-compute-service-hcs). Virtual Machines created in this way are not visible in Hyper-V Manager. Modifying the virtual machine to use an external network adapter is not supported. That said, a solution is coming in an emulator update to allow connectivity from other devices. Please keep an eye on https://learn.microsoft.com/en-us/windows/mixed-reality/hololens-emulator-archive for emulator updates.

Calling selfhosted WCF service from Windows Phone 8 Emulator

My selfhosted WCF wervice works fine with any browser on the domain, and also with a WinForm client. In a Windows Phone 8 app I can create Service References OK. Trying to consume the service from within the app running in the emulator it causes the System.Net.WebException: The remote server returned an error: NotFound.
What I have done:
allowed URL registration
firewall inbound rule for the specified port
enabled WCF Services, HTTP Activation (Windows Features)
In the Hyper-V settings for the Emulator it lists 4 network adapters: Windows Phone Emulator Internal Switch, Intel...Gigabit Network Connection Virtual Switch and 2 VMware related switches.
Can the presence of VMware cause this problem? (I have stopped the (4) VMware related services.)
What else can I check or do?
After a full day of working on the issue (not knowing anything about Hyper-V didn't help) I (we) worked out the problem:
In this particular, but quite common setup, both Ethernet and Wireless Network Adapters were enabled, and Ethernet ranked above Wireless, as you do to give the cable connection precedence over wireless when both are available.
Even though the Ethernet cable was disconnected at the time the Emulator was started/created, Hyper-V created Ethernet as the only external Network adapter to use. But the because there was no cable, the adapter was physically disabled and the local WCF service (which was running on the wireless network) could not be found.
Disabling the Ethernet (hardware) adapter (Control Panel), then deleting the emulator, and reconstructing it by launching a phone app in VS fixed the connection issue. On inspection the Wireless adapter is then assigned as the external adapter ("Virtual Switch") to use.
Hope that helps someone.

Hyper-V kills internet connection when bridging

I am using Hyper-V for the first time (running Windows 8). When I create a new virtual network switch, external, it bridges the VMs network adapter with the WiFi - and that for some reason kills the WiFi's internet connection. Why, and what could I be doing wrong?
Thanks,
A.
If you have VirtualBoxinstalled, check if any of the Hyper-V virtual adapters/bridge connection has the VirtualBox Bridged Networking Driver ticked in the connection properties. If they do, simply untick this service where it is present and this should fix it up for you. No need to uninstall VirtualBox.
I had a static ip-address in my ethernet adapter.
Removed the static entry.
Made my external virtual switch.
Had the extra vEthernet adapter, made my static entries (ip-address, dns-server) in this adapter.
Everything is working fine now.
Chris
I had the same problem, it takes a couple of seconds to setup the connection again. Check this tutorial: https://superuser.com/questions/469806/windows-8-hyper-v-how-to-give-vm-internet-access
I just ran into the same problem, losing the internet connection when creating the virtual switch. Uninstalling VirtualBox which I had installed at the same time fixed the problem for me (just disabling the VBox adapters was not enough), so they seem to be unable to happily coexist.
I ran into the same problem recently when creating an external switch in Hyper-V. Long story short, every time an external switch was created, it would bring my ethernet connection down on my host laptop. I had wifi connection option also but disabled it to just strictly troubleshoot the ethernet network adapter.
I brought down the VM, once turned off, deleted the external network adapter from hyper V virtual switch manager. On the host machine, disabled and re-enabled the network adapter from within network connections (ethernet). Once connected, I brought the VM back online FIRST, then created the external switch second which connected with no issues. Verified I was able to access outside world aka internet on both host and VM.
Maybe you unchecked by accident the Allow management OS to share this network adapter setting that is enabled by default. Disabling this setting will leave your hypervisor OS without network connectivity.
I was able to fix such an issue by disabling Internet sharing on the wireless adapter, creating an Internal virtual switch in Hyper-V first, then disabling VMWare bridge on all involved interfaces, then I made a bridge in Network sharing center by selecting my internal switch and Wi-Fi adapter and after that I was able to select external network in Virtual switch manager in Hyper-V
I ran into the same problem too. I don't know for sure, but after trying all of the solutions above and any others I could find, I renamed my virtual switch to 'realtek' (the type of network card I have installed) instead of taking the default name that I think was 'new virtual switch'. Something else I did may have solved the problem (I modified everything I could find for two days), but I think renaming it is what finally gave me internet access to the vm.

How can I configure a Client Hyper-V (on Windows 8) to connect to the host and other VMs without a network connection?

I'm trying to develop an interface to an application that doesn't run on Windows 8. Hence, I've created a VM with Windows 7 running the integration service and another service running on the Windows 8 host.
I have three Virtual Network scenarios configured for Hyper-V: Wireless, Shared and Internal. Where Wireless allows all VMs and the host to connect to a wireless network (External), Shared let's the VMs connect through the host via a VPN (Internal) and Internal creates a network within the host where the VMs don't have network access (Private).
When I'm in Wireless (External) mode and there's a wireless network to connect to, everything works fine as if I were testing using to physical PCs on a wireless network. However, today I had a situation where I wasn't connected to a network but still wanted to do some testing and I could not get the VM to see the host and vice-versa. This scenario was quite straight forward to create on VMware which I used before switching to Hyper-V...
Has anyone managed to make Client Hyper-V VMs and the host communicate without a network? Can you guide me how to set it up?
Wireless networking under Windows 8 Hyper V can not communicate with multiple VM the Wireless NIC is assign to only one Hyper V internet connection,
Meaning only one Hyper V can connect to the Internet preventing others from connecting unless you use multiple Nic's Wireless Network Cards or USB Wireless Network.
It is only after you restart or shut down your computer that Hyper-V problems start.
So if you can not connect any of your Hyper VMs then you problem could be due to a shutdown error that Hyper-v in counted Try restarting the whole computer then Hyper- VMs your problem should fix itself.
Might want to try this. I am having similar problems as you and all signs point to this particular solution working, but for me it is not. Might help you, though.
http://blogs.technet.com/b/doxley/archive/2008/07/07/disconnecting-hyper-v.aspx
The solution that DID end up working for me was this:
http://www.elmajdal.net/Win2k8/Enabling_Wireless_Network_For_Hyper_V_Virtual_Machine.aspx

How do you enable the network on a virtual machine running Vista x64?

I'm running Server 2008 64bit with Hyper-V. I've created a virtual machine with Vista 64bit and installed it. I can't get the Vista virtual machine to see the network adapter.
I've set-up an external network on the Virtual Network Manager (Hyper-V) and associated that with the virtual machine (Vista). I've also tried using a Legacy Network Adapter but that didn't work either although that time the Vista machine saw the network card but couldn't connect through it.
This is (obviously) the first time I've tried to set-up a virtual machine.
Any ideas?
EDIT: I notice that this question has been voted down a couple of times. I know that it's not a programming question but I'm a developer setting up a virtual machine to test my C#/ASP.NET code on and thought that other developers may hit this problem as well when they're doing this...
I don't know Hyper-V, but I know in VMWare you can create a network connection in Bridged mode (meaning the VM will get it's own IP address via DHCP if that's enabled) or host-only mode (meaning the VM can only communicate with the host). When Vista could see the card, could it communicate with the host machine (which would indicate a host-only connection was specified)? What kind of IP address did it have (I would guess Hyper-V has a built-in DHCP server like VMWare does?) -- that might give additional clues.
Sorry I don't know Hyper-V better...
Make sure you have the Hyper-V Tools installed on the Guest VM. You shouldn't need the legacy adapter.
You also may want to make sure you have all of the latest updates which may have addressed your issue. Particularly, KB950050
http://support.microsoft.com/kb/950050
It turns out that Vista x64 running as a VM through Hyper-V doesn't support the virtual network connection/card and that you have to set it up as a legacy network card. When I eventually got the config settings correct for the legacy network and disable the virtual network it connected.
Thanks for the help guys - much appreciated!