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 255 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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post