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.
- Install the libvirt software of the openEuler 24.03 LTS SP2 source.
- View information about the libvirt software package in the system.
yum list | grep libvirt

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

- 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.
- View the current user.
whoami

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

- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the /etc/libvirt/qemu.conf file.
- 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

- Reload the libvirtd configuration.
systemctl reload libvirtd
- View the current user.
Parent topic: Software Deployment