Rate This Document
Findability
Accuracy
Completeness
Readability

Verifying QEMU

Prerequisites

Download the CentOS image before running the virt-install command to create a VM.

Verification Process

  1. Create a VM drive file in QCOW2 format.
    qemu-img create -f qcow2 /home/test1 10G
  2. Create a VM.
    virt-install --name test1 --ram 2048 --vcpus=4 --cdrom=/dev/cdrom  --disk path=/home/test1,size=80
    Modify the following parameters as required:
    • name test1: VM name
    • ram 2048: size of the virtual memory
    • vcpus=4: number of virtual CPUs
    • cdrom=/dev/cdrom: path to which the OS image is mounted, for example, /home/qemu/CentOS-8.1.1911-aarch64-dvd1.iso
    • path=/home/test1: VM file; size=80: file size