Hyper-V can't work external network

15,023

Ernest,

First thing you want to double check is how many physical network ports do you have on this server. Is it one or more?

A. If you only have one port, then read this next section. Otherwise, skip to section B.

With only one physical network port, you must configure the network adapter for shared use by Hyper-V and the Management OS. When configuring the Virtual Network, you will need to check the box "Allow management operating system to share this network adapter".

If you are connected to the server via RDP, you will lose connectivity briefly while the configruation changes are saved. You may need to reestablish the RDP session if it doesn't come back by itself.

Once you configure this option, the static IP address you originally assigned to the physical adapter will be ported to the virtaul adapter created for use by the Parent Partition.

Now you can connect your VMs to the Virtual NEtwork you defined. In my case, it would be CorpNet.

B. Two physical network ports (based on your description, I think this is the option that applies for you).

If you have two ports, one can be used to manage the Parent Partition and the other can be used for VM traffic. This allows the traffic to be separated (security and performance). When you create your Virtual Network, select the adapter that does NOT have the #2 at the end and do NOT select the "Allow management operating system to share this network adapter" option. Ensure the network cable is plugged into both ports on the server. If you are configuring IP within your VM via DHCP, then make sure your DHCP server is up and running. If you are configuring it manually, then make sure you use the proper IP settings.

Share:
15,023

Related videos on Youtube

Jeferson Tenorio
Author by

Jeferson Tenorio

Strategic and technical performance in several areas and market segments; Large experience in software architecture, development, cloud computing, horizontal and vertical scalability, parallelism, real-time app, data replication, high availability; Experience in migration of systems and databases, mergers, acquisitions, team leadership and project coordination; Excellent understanding of enterprise applications architecture, especially for web based projects. Self-taught with the ability to work in different platform and technologies, implementation and support in production for large IT projects. • Technologies: C#, .NET Core, ASP.NET MVC, JavaScript, HTML5, CSS, JAVA, PHP, Json, Nodejs; AngularJS, VueJS, jQuery, Ionic, Xamarin, WebAPI/WCF (Rest/Soap), SPA; Elmah, Entity Framework, Dapper, FluentValidation, Json.NET, JWT, OAuth, AutoMapper, NLog, Razor; Parallelism (MapReduce), Thread, Reflection, CodeDom, Fluent style codding, Linq; Docker Containerization, Windows Azure, Amazon Web Services, Cluster; • Knowledges: System Architecture, Object Orientation, SOLID, TDD, DDD, Async; Threads, SOA, IOC, IOW, Repository; UML, Requirements Gathering, Use Case, Case Diagram, Sequence Diagram; PMI, Cobit, ITIL, SWOT, BSC, SEO, Semantic WEB, Agile, Scrum; Code Review, Thread Safety, Performance, Security; WINDOW, BASH/LINUX (ubuntu/centos/etc), Android, frontend and backend development, DevOps; • Tools: GIT, TFS (continuous and deployment integration, workflow process); IIS, NGINX, Apache, WCF, Restify, ExpressJS, Nodejs; ERP, CRM, BI, SalesForce, Sharepoint, BizTalk; SonarQube, Nexus, NuGet, Jenkins; Microsoft Test Manager, Test Automation, Unit Test; Visual Studio, Eclipse, Android Studio, Atom, Visio, MS Project, Rational Rose; • Databases: SQL SERVER (Integration Services, Analysis Services, Reporting Services), ORACLE, MySQL, Postgre, SQLite; MongoDB, ElasticSearch, Solr, Couchbase, CouchDB, Redis, Cassandra, DynamoDB, PouchDB, RavenDB, BrightstarDB;

Updated on September 18, 2022

Comments

  • Jeferson Tenorio
    Jeferson Tenorio over 1 year

    I setup my Hyper-V under Windows 2008 R2 Standard. But i can´t access internet (network) in virtualized machines.

    First. I setup the hyper-v using this manual http://www.howtogeek.com/103884/install-hyper-v-on-windows-server-2008-r2/

    The first doubt its on step "Create Virtual Networks", my dedicated server show only one network adapter "Intel(R) 82580 Gigabit Network Connection #2"

    I dont check this adapter because the warning message in window -> "We recommend that you reserve one network adapter for remote access to this server. To reserve a network adapter, do NOT select it for use with a virtual network"

    What I use a dedicated server (I access the machine by RDP), and the settings of external IP address its typed in properties of this adapter "Intel(R) 82580 Gigabit Network Connection #2". If I check it option box in wizard, can lost my RDP connecting forever? (because I order a dedicated and dont access phisically the machine).

    I´m scared to check this option and lose the connection with the server. Then I kept uncked the click next, finish.

    After installed, I access "Virtual Network Manager", create a new virtual network of type External. Connected to "Intel(R) 82580 Gigabit Network Connection", I have two options "Intel(R) 82580 Gigabit Network Connection #2" and "Intel(R) 82580 Gigabit Network Connection", the adapter with final #2 have my static IP address configered, when I selected the option "Intel(R) 82580 Gigabit Network Connection" its a other adapter, possible created by Hyper-V.

    I created my VM (windows xp) with the Virtual External Adapter, but when the windows start, the connection with internet fault. I try put my secondary IP address with gateway, dns, and mask subnet, but the problem its same.

    Can anyone help to connect correct with the Internet in my VM, and setup my secondary external IP address?

  • samantha
    samantha almost 12 years
    Glad to hear my answer was helpful for you.
  • Jamie Hanrahan
    Jamie Hanrahan almost 8 years
    @HaroldWong In plan A, is it required that the physical adapter have a static IP address? What if I want it to get an address from my router via DHCP (hosted in the router)?