This section describes how to view and clear network rule files when creating a Linux private image from an ECS.
The OS, xen-pv and VirtIO drivers have been installed on the ECS.
ls -l /etc/udev/rules.d
Replace the italic parts in the commands with actual values at your site.
lsinitrd /boot/initrd-220.127.116.11-0.7-default |grep persistent|grep net
cp /boot/initrd-18.104.22.168-0.7-default /boot/initrd-22.214.171.124-0.7-default_bak
lsinitramfs /boot/initrd.img-3.19.0-25-generic|grep persistent|grep net
If no, you do not need to clear the files in the network rule directory.
If yes, go to 2.
cp /boot/initrd.img-3.19.0-25-generic /boot/initrd.img-3.19.0-25-generic_bak
To enable the ECS to obtain an IP address automatically by static injection, use the predefined configuration file to overwrite the network configuration file in the ECS during the ECS creation to configure an IP address for it.
Therefore, the purpose of configuring the Linux OS online installation method is to disable the NetworkManager function. After it is disabled, the network configuration file in the ECS can be overwritten.
You can run one of the following commands to disable NetworkManager depending on the OS:
# service NetworkManager stop; chkconfig NetworkManager off
# systemctl stop NetworkManager.service; systemctl disable NetworkManager.service
For SUSE Linux, you can also use YaST to disable NetworkManager. The procedure is as follows:
These steps are not required if no NetworkManager is deployed on the OS, for example, SUSE Linux Enterprise 12.
The Global Options page is displayed.
If the shortcut keys provided in the steps do not take effect in practice due to OS version or language diversities, use Tab, ←, and → keys to select the required options.
The command line interface (CLI) is displayed.