XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    adding a new VIF in XO doesn't UP the the interface on Debian13

    Scheduled Pinned Locked Moved Management
    5 Posts 3 Posters 46 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      delacosta456
      last edited by

      hi
      I didn't know if this is the expected behavior, but after completely (install and configure with added vif during setup) deploying a VM,
      when i add another VIF(on debian 13 ), i noticed that the interface is created but remain down. i had to manually
      edit /etc/network/interfaces and add new line specifying the new interface with options (auto and dhcp).
      Is that the expected behavior?
      Thanks

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by olivierlambert

        Hi,

        Adding a VIF is like plugging "live" a new network card in a physical system. It's still up to your operating system to handle it. XCP-ng doesn't know what's inside a VM, it's up to the VM OS to do what it has to do (like on a regular physical hardware system).

        D 1 Reply Last reply Reply Quote 1
        • D Offline
          delacosta456 @olivierlambert
          last edited by

          @olivierlambert
          ok thanks for the well written explanation

          bvitnikB 1 Reply Last reply Reply Quote 0
          • bvitnikB Offline
            bvitnik @delacosta456
            last edited by

            @delacosta456 This is a limitation of Debian's "/etc/network/interfaces" network configuration mechanism. It quite old and static - in other words it just applies network configuration on manual networking service restart. There is no hot plug handling.

            For something more advanced, you have to use netplan (like Ubuntu) and/or NetworkManager (some other distros)... or possibly systemd-networkd.

            D 1 Reply Last reply Reply Quote 1
            • D Offline
              delacosta456 @bvitnik
              last edited by

              @bvitnik
              Thanks for giving more details.
              I will give a try with each of them (netplan, ..etc)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post