Need help with HyperV - can't acces internet with the guest OS

KimZS 21 Reputation points
2021-11-28T03:12:32.257+00:00

Hello,
I am new to Hyper V and I have been searching and trying fixes and I couldn't solve the problem.
I installed windows server 2019, installed hyper V, create my first VM.
My current server has 2xIPs, one is already assigned to the windows server 2019 and the other IP I am trying to assign to the VM.
I added the IP as static but the VM is not getting any internet access.
Can you guys give me some hints.

Thanks

Windows for business | Windows Client for IT Pros | Storage high availability | Virtualization and Hyper-V
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-11-28T13:07:16.21+00:00

    internet is working is fine

    Glad to hear of success. Please close this one by marking answer and open a new thread for new question/

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

8 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-11-28T03:40:30.943+00:00

    My current server has 2xIPs, one is already assigned to the windows server 2019 and the other IP I am trying to assign to the VM

    That's not at all how it works. When you create a new external vSwitch the internet protocols are removed from the adapter and the Hyper-V Extensible Switch protocol is added turning that physical port into a multi-port virtual switch. Connect your VMs to this vSwitch and use each VM's vEthernet to configure the addressing in the exact same manner as if it were a physical NIC
    https://blogs.technet.microsoft.com/jhoward/2008/06/17/hyper-v-what-are-the-uses-for-different-types-of-virtual-networks/

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  2. KimZS 21 Reputation points
    2021-11-28T03:50:27.487+00:00

    Unfortunately it doesn't work.
    I have already set the switch settings to external and the vm is set to use the vswitch external.
    I tried to add the ip to the vm same manner as physical nic. I don't know what I am missing.

    0 comments No comments

  3. Anonymous
    2021-11-28T03:52:21.263+00:00

    Simplest solution is to set the guest to DHCP assigned and let the router give it the correct settings.

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  4. KimZS 21 Reputation points
    2021-11-28T03:59:40.94+00:00

    Using dhcp couldn't apply correct settings

    https:/i.ibb.co/T0cGvhJ/20211128-055613.jpg/img/url

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.