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)