This commit is contained in:
colben 2025-01-06 20:53:22 +08:00
parent a327861eca
commit a8b42881bb

View File

@ -69,19 +69,9 @@ categories: ["kvm", "container"]
### 安装 incus 环境
- 安装 incus 包
```BASH
dnf copr enable neil/incus
dnf config-manager --enable crb
dnf -y copr enable ligenix/enterprise-qemu-spice
dnf install lvm2 incus incus-tools
```
- 此时的环境足以运行 lxc 容器了,如果要运行 kvm 虚拟机,还需要安装 qemu 包
```BASH
# 卸载自带的 qemu 包
yum remove qemu-img qemu-kvm-common qemu-kvm-core
# 安装完整的 qemu 环境
curl -LO https://mirror.ghettoforge.org/distributions/gf/el/9/gf/x86_64/gf-release-9-13.gf.el9.noarch.rpm
rpm -ivh gf-release-9-13.gf.el9.noarch.rpm
dnf --enablerepo=gf install qemu-system-x86
ln -s /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64
```
- 修改 incus 服务文件