adding a new VIF in XO doesn't UP the the interface on Debian13
-
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 -
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).
-
@olivierlambert
ok thanks for the well written explanation -
@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.
-
@bvitnik
Thanks for giving more details.
I will give a try with each of them (netplan, ..etc)
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