Link to home
Start Free TrialLog in
Avatar of bigeven2002
bigeven2002Flag for United States of America

asked on

Network not working in Linux Mint Hyper-V VM

Hello,
I setup a test VM to try out Linux Mint.  I am using the v15 KDE 64-bit distro.  It installed fine except I cannot get the network to work.  I setup a legacy network adapter in the Hyper-V settings.  When booting up Mint, it is able to obtain an IP address from my DHCP server.  I am also able to set a static network config.

In the console, I can ping the IP address of eth0 and the loopback, but I cannot ping the gateway IP or DNS server, or any other IP on the network, nor do I have Internet access.

I am very lost on what went wrong.  I'm still a Linux novice, but I found my way to the network manager and confirmed all settings were correct, but I still cannot ping the gateway or access the Internet.  Any ideas?
Avatar of TobiasHolm
TobiasHolm
Flag of Sweden image

Have you checked the network settings in Hyper-V for the Mint guest? It sounds like all settings in your Mint is ok, so the problem probably is in the Hyper-V network configuration.
Avatar of bigeven2002

ASKER

I did, I'm also running freenas on another vm on the same host and it too uses a legacy adapter and it works fine.  I checked and the settings are the same.
ASKER CERTIFIED SOLUTION
Avatar of rindi
rindi
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you test to install Mint by using this technique:
http://blogs.msdn.com/b/visualstudiouk/archive/2013/11/20/installing-linux-in-hyper-v.aspx

Be sure to read the section "Important networking step before starting the installation".
Avatar of ThomasMcA2
ThomasMcA2

If you are trying to experiment with Mint to see if you like it, and you might install it in dual-boot mode if you do, a VM is not the best way to do that. Besides the complicated network setup, running it in a VM does not test whether Mint works with your hardware because the VM provides virtual hardware. The best way to try out Linux is with a Live (bootable) CD, DVD, or USB stick. The Unetbootin tool makes it easy to create a bootable device, and this page describes how to do that with Mint.
Thanks for the responses.

@rindi, I cannot seem to find a version of the ICs that work with Mint from Microsoft.  The latest version 3.4 supports only Redhat and CentOS.

@TobiasHolm, I did follow that guideline this time around, I setup a legacy network adapter and removed the non-legacy adapter before installation of Mint.  In case it matters, this instance of Hyper-V is on Windows Server 2008 R2.

@ThomasMcA2, it makes sense to use live CD or dual-boot vs virtual, but I'm not testing it to see if it becomes my primary OS, but rather just to test it out play around with it, and I would rather not bring down my primary OS to do this.
It appears that this version of Mint already had the ICs included, my clue was that the synthetic mouse driver was already working out of the box.  So I shut it down and removed the legacy adapter and added the native adapter, it detected it and DHCP assigned the IP address to it and I was able to ping the gateway and can now surf the Internet.
As far as I know newer versions of Hyper-V should support Ubuntu and other Distro's (but I haven't been using Hyper-V for a long time now), and as Linux Mint is based on Ubuntu, those IC's should be compatible. Maybe you also need to make sure your host OS is always fully patched.