Azure VM installed with Windows 11, enabled HyperV and on HyperV CentOS is installed, Guest OS is not reachable

Rajkumar V 40 Reputation points
2025-12-11T11:30:20.0633333+00:00

In Azure VM , Win 11 is installed and Enabled Hyper V. CentOS is installed as guest OS in Hyper V.

I tried Internal switch and External switch to enable connectivity but it is not working


Moved from: Community Center | Not monitored

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
{count} votes

1 answer

Sort by: Most helpful
  1. Himanshu Shekhar 1,935 Reputation points Microsoft External Staff Moderator
    2025-12-11T11:58:15.1666667+00:00

    Hello @Rajkumar V Iyer Thanks for reaching Microsft QnA platform

    if you have trouble connecting to your CentOS guest operating system running on Hyper-V inside your Azure VM with Windows 11. Here are some steps you can try to troubleshoot the connectivity issues:

    Check Network Configuration: Ensure that your Hyper-V internal switch is correctly configured. If using an external switch, confirm that your physical network supports it, and it is connected correctly.

    Make sure that the CentOS VM has a valid IP address. You can check this by logging into the CentOS VM console and running the command:

    ip addr

    If you're using DHCP to assign an IP, try setting a static IP to see if that resolves the issue.

    Firewall Settings:

    Confirm that there are no firewall rules in place on the CentOS VM that might be blocking inbound connections. You can check the firewall status with:

    sudo firewall-cmd --state

    If the firewall is active, ensure that it’s configured to allow connections to the services you are trying to access (like SSH).

    Virtual Network Settings: Ensure that the network settings on the CentOS VM are correctly configured. Confirm that the network card is connected to the correct virtual switch.

    If you're expecting to connect to this VM from an external network, you'll need to set up port forwarding or ensure that the related NSG rules on the Azure side allow for external traffic.

    Check Hyper-V Settings: Make sure the virtual machine is running without issues. Sometimes a simple restart of the VM can also help.

    If using Generation 2 VM, remember to check if Secure Boot is causing issues, especially with certain Linux distributions.

    Logs and Diagnostics: Review the logs of both the Azure VM and the CentOS guest VM for any error messages that might provide clues on what is happening. You can access the logs in the Azure portal or via SSH if you get that working.

    Reference Links:

    0 comments No comments

Your answer

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