ホストOSでなければ、デフォルトでインストールされているKVMは必要ないので、KVMをアンインストールします。
検証した環境
Oracle Linux 8.8で実施しました。
$ cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.8"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:8:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"
ORACLE_BUGZILLA_PRODUCT_VERSION=8.8
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.8
$ uname -r
5.15.0-101.103.2.1.el8uek.x86_64
ネットワークデバイスの状態(アンインストール前)
KVMでは、「virbr0」というKVMのゲストOSがDHCPで自動割り振りされたIPアドレスを使用して、外部のネットワークとNAT変換により通信が可能となります。
$ nmcli device status
DEVICE TYPE STATE CONNECTION
enp0s3 ethernet connected enp0s3
enp0s8 ethernet connected enp0s8
virbr0 bridge connected (externally) virbr0
lo loopback unmanaged --
/var/lib/nfs/rpc_pipefsディレクトリーが残ってしまう対処
アンインストール時に、「nfs_utils」というパッケージもアンインストールしますが、その際、「warning: directory /var/lib/nfs/rpc_pipefs: remove failed: Device or resource busy」と出力され、ディレクトリーが残ってしまうので、先にその対処をします。
$ systemctl status var-lib-nfs-rpc_pipefs.mount
* var-lib-nfs-rpc_pipefs.mount - RPC Pipe File System
Loaded: loaded (/usr/lib/systemd/system/var-lib-nfs-rpc_pipefs.mount; static; vendor preset: disabled)
Active: active (mounted) since Mon 2023-08-14 16:21:27 JST; 10min ago
Where: /var/lib/nfs/rpc_pipefs
What: sunrpc
Tasks: 0 (limit: 22659)
Memory: 20.0K
CGroup: /system.slice/var-lib-nfs-rpc_pipefs.mount
: (省略)
$ sudo systemctl stop var-lib-nfs-rpc_pipefs.mount
$ systemctl status var-lib-nfs-rpc_pipefs.mount
* var-lib-nfs-rpc_pipefs.mount - RPC Pipe File System
Loaded: loaded (/usr/lib/systemd/system/var-lib-nfs-rpc_pipefs.mount; static; vendor preset: disabled)
Active: inactive (dead) since Mon 2023-08-14 16:32:24 JST; 2s ago
Where: /var/lib/nfs/rpc_pipefs
What: sunrpc
: (省略)
アンインストール
$ sudo dnf -y remove qemu-kvm
: (省略)
Removed:
autogen-libopts-5.18.12-8.el8.x86_64
boost-atomic-1.66.0-13.el8.x86_64
boost-chrono-1.66.0-13.el8.x86_64
boost-date-time-1.66.0-13.el8.x86_64
boost-iostreams-1.66.0-13.el8.x86_64
boost-program-options-1.66.0-13.el8.x86_64
boost-random-1.66.0-13.el8.x86_64
boost-regex-1.66.0-13.el8.x86_64
boost-system-1.66.0-13.el8.x86_64
boost-thread-1.66.0-13.el8.x86_64
celt051-0.5.1.3-15.el8.x86_64
cyrus-sasl-2.1.27-6.el8_5.x86_64
edk2-ovmf-20220126gitbb1bba3d77-4.el8.noarch
freerdp-libs-2:2.2.0-10.el8.x86_64
glusterfs-6.0-56.4.el8.x86_64
glusterfs-api-6.0-56.4.el8.x86_64
glusterfs-cli-6.0-56.4.el8.x86_64
glusterfs-client-xlators-6.0-56.4.el8.x86_64
glusterfs-libs-6.0-56.4.el8.x86_64
gnome-boxes-3.36.5-8.0.1.el8.x86_64
gnutls-dane-3.6.16-6.el8_7.x86_64
gnutls-utils-3.6.16-6.el8_7.x86_64
gssproxy-0.8.0-21.el8.x86_64
gtk-vnc2-0.9.0-2.el8.x86_64
gvnc-0.9.0-2.el8.x86_64
iproute-tc-5.18.0-1.0.1.el8.x86_64
ipxe-roms-qemu-20181214-11.git133f4c47.el8.noarch
keyutils-1.5.10-9.el8.x86_64
libcacard-3:2.7.0-2.el8_1.x86_64
libev-4.24-6.el8.x86_64
libfdt-1.6.0-1.el8.x86_64
libiscsi-1.18.0-8.module+el8.8.0+20990+60c1530a.x86_64
libpmem-1.6.1-1.el8.x86_64
librados2-1:12.2.7-9.0.1.el8.x86_64
librbd1-1:12.2.7-9.0.1.el8.x86_64
librdmacm-44.0-2.el8.1.x86_64
libtpms-0.9.1-2.20211126git1ff6fe1f43.module+el8.8.0+21044+01700444.x86_64
libverto-libev-0.3.2-2.el8.x86_64
libvirt-client-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-config-network-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-interface-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-network-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-nodedev-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-nwfilter-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-qemu-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-secret-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-storage-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-storage-core-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-storage-disk-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-storage-gluster-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-storage-iscsi-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-storage-iscsi-direct-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-storage-logical-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-storage-mpath-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-storage-rbd-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-driver-storage-scsi-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-daemon-kvm-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libvirt-gconfig-3.0.0-1.el8.x86_64
libvirt-glib-3.0.0-1.el8.x86_64
libvirt-gobject-3.0.0-1.el8.x86_64
libvirt-libs-8.0.0-19.0.1.module+el8.8.0+21044+01700444.x86_64
libwinpr-2:2.2.0-10.el8.x86_64
mdevctl-1.1.0-2.el8.x86_64
mtools-4.0.18-15.el8_6.x86_64
netcf-libs-0.2.8-12.module+el8.8.0+20990+60c1530a.x86_64
nfs-utils-1:2.3.3-59.el8.x86_64
numad-0.5-26.20150602git.el8.x86_64
openssh-askpass-8.0p1-17.el8.x86_64
qemu-img-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-block-curl-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-block-gluster-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-block-iscsi-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-block-rbd-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-block-ssh-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-common-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-core-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-docs-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-hw-usbredir-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-ui-opengl-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
qemu-kvm-ui-spice-15:6.2.0-32.module+el8.8.0+21044+01700444.x86_64
rpcbind-1.2.5-10.el8.x86_64
seabios-bin-1.16.0-3.module+el8.8.0+20990+60c1530a.noarch
seavgabios-bin-1.16.0-3.module+el8.8.0+20990+60c1530a.noarch
sgabios-bin-1:0.20170427git-3.module+el8.8.0+20990+60c1530a.noarch
spice-glib-0.38-6.el8.x86_64
spice-gtk3-0.38-6.el8.x86_64
spice-server-0.14.3-4.el8.x86_64
swtpm-0.7.0-4.20211109gitb79fd91.module+el8.8.0+20990+60c1530a.x86_64
swtpm-libs-0.7.0-4.20211109gitb79fd91.module+el8.8.0+20990+60c1530a.x86_64
swtpm-tools-0.7.0-4.20211109gitb79fd91.module+el8.8.0+20990+60c1530a.x86_64
systemd-container-239-74.0.1.el8_8.x86_64
usbredir-0.12.0-4.el8.x86_64
yajl-2.1.0-11.el8.x86_64
Complete!
マシンリブート
$ sudo systemctl reboot
ネットワークデバイスの状態(アンインストール後)
「virbr0」は消えています。
$ nmcli device status
DEVICE TYPE STATE CONNECTION
enp0s3 ethernet connected enp0s3
enp0s8 ethernet connected enp0s8
lo loopback unmanaged --