Configuring the ECS and Creating a Linux System Disk Image
Scenarios
After installing an OS for the temporary ECS, configure the ECS and install Xen and KVM drivers to ensure that ECSs created from this temporary ECS can work properly.
This section describes how to configure a Linux ECS, install drivers, and create a Linux system disk image.
Procedure
- Configure the ECS.
- Configure the network.
- Run the ifconfig command to check whether the private IP address of the ECS is the same as that displayed on the console. If they are inconsistent, delete files from the network rule directory as instructed in Deleting Files from the Network Rule Directory.
- Check whether DHCP is configured. If the ECS is configured with a static IP address, change its IP address assignment mode to DHCP as instructed in Configuring DHCP.
- Run the service sshd status command to check whether SSH is enabled. If it is disabled, run the service sshd start command to enable it. Ensure that your ECS firewall, for example, Linux iptables, allows access to SSH.
- Install drivers.
To ensure that the network performance and basic functions of the ECSs created from the private image are normal, install native Xen and KVM drivers on the ECS used to create the image. Before installing native Xen and KVM drivers, uninstall PV drivers.
Disable your antivirus and intrusion detection software. You can enable them after the installation of Xen and KVM drivers.
- Uninstall PV drivers. For details, see Uninstalling PV Drivers from a Linux ECS.
- Install native Xen and KVM drivers. For details, see How Do I Install Native Xen and KVM Drivers?
- After the drivers are installed, you need to clear log files and historical records. For details, see Clearing System Logs.
- Configure a file system.
- Change disk identifiers in the GRUB file to UUID. For details, see Changing Disk Identifiers in the GRUB File to UUID.
- Change disk identifiers in the fstab file to UUID. For details, see Changing Disk Identifiers in the fstab File to UUID.
- Clear the automatic mount configuration of non-system disks in the /etc/fstab file. For details, see Detaching Data Disks from an ECS.
- (Optional) Configure value-added functions.
- Install and configure Cloud-Init. For details, see Installing Cloud-Init and Configuring Cloud-Init.
- Enable NIC multi-queue. For details, see How Do I Enable NIC Multi-Queue for an Image?
- Configure dynamic assignment of IPv6 addresses. For details, see How Do I Configure an ECS to Dynamically Acquire IPv6 Addresses?
- Configure the network.
- Create a Linux system disk image.
For details, see Creating a System Disk Image from a Linux ECS.
Follow-up Procedure
After the system disk image is created, delete the temporary ECS in a timely manner to avoid generating any additional charges.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot