我要评分
获取效率
正确性
完整性
易理解

Installing the VM Runtime

1. Before the installation, you need to configure the Yum repository and prepare the system image file required for VM installation. During the installation, modify the path information as required.

2. If the VM uses openEuler 24.03 LTS SP1, add the --osinfo detect=on,require=off option to the end of the VM creation command.

  1. Install QEMU and libvirt.
    1
    yum -y install qemu libvirt edk2-aarch64.noarch virt-install
    
  2. Create a VM. The following describes how to create a 20 GB driver image file in QCOW2 format.
    1
    virt-install --name=<vmname> --vcpus=32 --ram=65536 --disk path=/home/images/img.qcow2,format=qcow2,size=20,bus=virtio --location /home/openEuler-22.03-LTS-SP4-everything-aarch64-dvd.iso --network network=default --nographics