I'm currently using XCP-ng 7.6.3, and wanting to add a little security and take advantage of traffic shaping, I decided to PCI pass-through the NICs. In order to be able to reach the dom0, I created a SSPN shared only between the dom0 and the firewall sitting in a domU. Starting the domU spawns a virtual interface vif<X>.<Y>
with an attached xapi<Z>
, and by manually assigning an IP to the latter, I'm enable to remote in the management. So far, so good, and everything works as intended.
The problem is that I found no way to let the dom0 automatically assign an IP for itself when bringing up the virtual interface. I've been looking at XCP, Xen and XenServer documentation for a long time, but can only find ways to automatically assign an IP to the domU on the other end, not the dom0. Is it possible to do so automatically?
If not through xapi/XCP configuration, is there a way (even scripted) to attach a static IP to the spawned interface programmatically, even when the interface spawns with a different name?
Any pointer is appreciated.