Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Virtualization Components

Before the operation, ensure that the server is connected to the Internet or the local source has been configured. CentOS and openEuler require different virtualization components. Install the components based on your OS requirements.

CentOS

Install virtualization components on CentOS.
1
yum -y install qemu* libvirt* AAVMF virt-install bridge-utils net-tools

openEuler

  1. Obtain the virt-manager source code.
    1
    git clone https://gitee.com/src-openeuler/virt-manager.git -b openEuler-20.03-LTS-SP1
    
  2. Compile and install virt-manager.
    1. Go to the source code directory.
      1
      cd virt-manager
      
    2. Install required software packages.
      1
      2
      yum install rpm-build 
      yum-builddep virt-manager.spec
      
    3. Create a compilation directory.
      1
      mkdir -p ~/rpmbuild/SOURCES
      
    4. Copy the source file to the compilation directory.
      1
      cp * ~/rpmbuild/SOURCES
      
    5. Perform the compilation.
      1
      rpmbuild -bb virt-manager.spec
      
    6. Install the generated RPM package.
      1
      yum install ~/rpmbuild/RPMS/noarch/*.rpm
      
  3. Install virtualization components.
    1
    yum -y install qemu libvirt openssl-devel numactl numactl-devel libcap-ng-devel traceroute iperf3 python2-paramiko edk2-aarch64.noarch edk2-devel qemu-guest-agent bridge-utils net-tools