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
- Obtain the virt-manager source code.
1git clone https://gitee.com/src-openeuler/virt-manager.git -b openEuler-20.03-LTS-SP1
- Compile and install virt-manager.
- Go to the source code directory.
1cd virt-manager
- Install required software packages.
1 2
yum install rpm-build yum-builddep virt-manager.spec
- Create a compilation directory.
1mkdir -p ~/rpmbuild/SOURCES
- Copy the source file to the compilation directory.
1cp * ~/rpmbuild/SOURCES
- Perform the compilation.
1rpmbuild -bb virt-manager.spec
- Install the generated RPM package.
1yum install ~/rpmbuild/RPMS/noarch/*.rpm
- Go to the source code directory.
- Install virtualization components.
1yum -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
Parent topic: Configuring the Installation Environment