Linux interface networking bride configuration to test KVM nested VM

William TP 20 Reputation points
2024-10-18T06:03:36.2866667+00:00

For testing purposes, I'm setting up an Azure VM Oracle Linux to test KVM. I attach 2 NIC. One primary with a single ipconfig, and a secon one NIC with a 10 ipconfigs. When I start the VM I see the 2 interfaces with the IPs configured.

  1. Are we able to manage the Azure VM network configuration. It seems the network configuration is managed by cloud-init but changes on cloud-init VM regarding network doesn't take effect.
  2. Also, if I manually add the configuration bridge in /etc/sysconfig/network-scripts, IP's remains in eth1 when I set the specific IP's for the bridge. I can see the same IP's on the eth1 and on the related bridge.
  3. Is it possible to have VM inside VM's?

Thanks!

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,762 questions
{count} votes

Accepted answer
  1. Sai Prasanna Sinde 6,645 Reputation points Microsoft External Staff Moderator
    2024-10-21T11:53:58.04+00:00

    Hi @William TP,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    Answering your questions,

    1. Whatever network configuration you want to do, please do it by using Azure Portal/PowerShell/CLI, please don't do it with in the OS. You can have multiple IP addresses to a VM but if you want to do it, please make sure you need to configure a guest OS to support it. For your reference: https://learn.microsoft.com/en-us/azure/virtual-machines/linux/multiple-nics#configure-guest-os-for-multiple-nics https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/virtual-network-multiple-ip-addresses-portal#os-config
    2. As these things looks to be non-Microsoft related and whatever configuration which you have done so far needs to be investigated by the third-party KVM.
    3. Create a KVM VM and Cloud stack, this looks like OS level virtualization, so please check with the distros.
    4. Whatever the virtualization you are trying to run, it looks like it needs an investigation by third-party as or to the distros. Kindly let us know if the above helps or you need further assistance on this issue.

    Yes. It is possible to have a VM inside a VM. It's called Nested Virtualization.

    For your reference: https://azure.microsoft.com/en-us/blog/nested-virtualization-in-azure/

    https://learn.microsoft.com/en-us/answers/questions/813416/how-do-i-know-what-size-azure-vm-supports-nested-v
    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/enable-nested-virtualization

    Please click **Accept Answer** and **Yes** for was this answer helpful so that other community members facing the same issue can find the right answers.

    Kindly let us know if the above helps or you need further assistance on this issue.

    Thanks,

    Sai Prasanna.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.