How do I specify a NIC for installing ZSvirt on a host with multiple NICs?
ZSvirt was open-sourced from the ZStack ZSphere commercial project and has since developed independently. Some code, configuration, and documentation still retain historical ZStack/ZSphere names (such as environment variables, configuration items, dependencies, paths, and commands). These names are for compatibility only and do not affect the normal use of ZSvirt.
Solution
-
When installing the Management Node service on a host with multiple NICs, the system randomly selects one NIC as the management IP by default. To specify a NIC as the management IP, log in to the host and run one of the following commands:
[root@localhost ~]# bash /opt/zstack-installer.bin -I $NIC name[root@localhost ~]# bash /opt/zstack-installer.bin -I $NIC IP