Rate This Document
Findability
Accuracy
Completeness
Readability

Deploying Libvirt

This section explains how to deploy and configure libvirt in a confidential computing environment to prepare for the subsequent deployment of confidential computing applications.

  1. Install the libvirt software of the openEuler 24.03 LTS SP2 source.
    1. View information about the libvirt software package in the system.
      yum list | grep libvirt 

    2. Install the libvirt software package whose version is 16 or later.
      yum install -y libvirt
  2. Verify that the installed version contains the main command word for secure memory observability.
    virsh help | grep tmm

  3. If you need to input the dtb dump parameter when starting libvirt, modify the libvirt configuration to ensure that the QEMU startup user is the same as the current OS user.
    1. View the current user.
      whoami 

    2. Modify the libvirt configuration file. Change the values of user and group to root.
      1. Open the /etc/libvirt/qemu.conf file.
        vim /etc/libvirt/qemu.conf
      2. Press i to enter the insert mode and change the values of user and group to root.

      3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
    3. Check the libvirtd status.
      systemctl status libvirtd
      If the libvirtd status is inactive, run the following command to start libvirtd. Otherwise, skip this step to step 4.
      systemctl start libvirtd

    4. Reload the libvirtd configuration.
      systemctl reload libvirtd