Intune managed laptop, Hyper-V not responding to DHCP requests from guests

Hefin James 5 Reputation points
2023-08-09T11:14:36.9333333+00:00

I have an Azure joined laptop, and I'm running a local Hyper-V service, on which I've installed Ubuntu 22.04. On booting the guest for the first time, the guest does not get a IP address via DHCP service on the virtual Hyper-V switch.

If I statically assign an IP address to the guest from the range gathered from tcpdump, then the client is connected to the network fine and get's NAT'ed to the outside world as expected.

Any idea's what's going on?

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,739 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,231 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. dominique broder 0 Reputation points
    2023-08-09T17:32:35.5866667+00:00

    Hello,

    It sounds like you're experiencing DHCP-related issues with your Ubuntu 22.04 guest running on Hyper-V. When you manually assign an IP address, the guest functions as expected, but DHCP doesn't seem to work during the initial boot.

    Here are a few troubleshooting steps you can consider:

    Check DHCP Server Configuration: Ensure that the DHCP server on your Hyper-V virtual switch is properly configured and running. Verify the IP address range and subnet settings.

    Hyper-V Virtual Switch Settings: Double-check the settings of your Hyper-V virtual switch. Make sure that the appropriate network adapter is selected, and review any VLAN settings if applicable.

    Ubuntu Network Configuration: Inside the Ubuntu guest, confirm that the network adapter is set to obtain an IP address automatically via DHCP. You can check and modify this configuration in the /etc/netplan directory.

    1.


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.