Creating a VM Using virt-manager
Four VMs are required in this document. You can perform operations in this section for four times in sequence.
- Download the QCOW image provided by openEuler.
wget https://mirrors.yacloud.net/openeuler/openEuler-24.03-LTS-SP1/virtual_machine_img/aarch64/openEuler-24.03-LTS-SP1-aarch64.qcow2.xz
Using the QCOW2 image provided by openEuler that has the OS installed can simplify operations by skipping the OS installation procedure. However, the /boot directory in the image uses the VFAT file system, which does not support the ln soft link. When the make install command is executed during kernel compilation and installation, the "Operation not permitted" error is reported, as shown in the following figure.

Solution:
Go to the /boot directory, copy the compiled System.map-6.6.0* and vmlinuz-6.6.0* files, rename them System.map and vmlinuz respectively, and restart the server. You do not need to run make install again.
- Decompress the QCOW package.
unxz -k openEuler-24.03-LTS-SP1-aarch64.qcow2.xz
- Open virt-manager and click the icon in the red box to open the VM configuration page.
virt-manager

- Select Import existing disk image and click .

- Click > Browse Local, select the openEuler 24.03 LTS SP1 image decompressed in 2, and click Open. Enter Generic Linux 2022 and click .



- Set Memory to 180000 and CPUs to 80, and click .

The memory setting 180000 is for reference only. You can allocate memory as required.
- Set Name to vmX (X = 0, 1, 2, or 3). If the bridge mode is configured for the host machine in Configuring the Host Network, select Bridge device... from Network selection, enter the bridge name, and click .

If SR-IOV is selected in Configuring the Host Network, you do not need to configure Network selection, which will be deleted later.
- The OS boots automatically. Click the following icon to access the peripheral configuration page.

- On the following page, click and add the following devices in sequence.
- Add peripheral 1:
- Add peripheral 2:
- Add GPU PCIe devices (each VM requires two GPUs and thus eight GPU nodes need to be added): Add Hardware > PCI Host Device > Select a node > Finish
- If the SR-IOV solution is used in Configuring the Host Network, add a vNIC to the VM: Select a node > Finish For details about NIC nodes, see the command output in 5.

- Create a data drive. Two methods are provided. Select either of them as required.
Method 1: Use a drive image as the data drive. This method is relatively easy to implement, but its drive I/O performance is suboptimal, rendering it unsuitable for drive I/O-intensive scenarios.
Create a drive image.
512 GiB is for reference only. Allocate drive storage space as required.

Method 2: Mount a drive partition to improve the VM's drive I/O performance. This method is recommended for drive I/O-intensive scenarios, such as high-density cloud gaming.
- Mount a drive partition as the data drive of the VM.
lsblk
Select a partition as the data drive of the VM. The following uses nvme0n1p7 as an example.

- Open virt-manager and choose . Set Bus type to VirtIO and Cache mode to none.

- Choose .

- Click Finish.

- Mount a drive partition as the data drive of the VM.
- If the SR-IOV solution is used, delete unnecessary virtual network interfaces.

- Restart the VM for the configurations to take effect.

- (Optional) Change the default password of the root account.
The default password is openEuler12#$. You can change the password after logging in to the OS.
passwd root