Po importu Linux VM z prostředí VMware je třeba provést ještě několik kroků, abychom se zbavili pozůstatků VMware a naopak VM připravili na optimální běh pod PVE.
Celou akci demonstruji na oblébeném CentOS 9 Stream, ale postup je obdobný na jiných distribucích.
Nejrpve odstraníme VMWare Tools pomocí příkazu dnf remove open-vm-tools
[root@proxy ~]# dnf remove open-vm-tools
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Dependencies resolved.
=====================================================================================================================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================================================================================================================
Removing:
open-vm-tools x86_64 12.5.0-1.el9 @appstream 3.3 M
Removing unused dependencies:
fuse3 x86_64 3.10.2-9.el9 @appstream 115 k
fuse3-libs x86_64 3.10.2-9.el9 @appstream 281 k
libdrm x86_64 2.4.121-1.el9 @appstream 406 k
libmspack x86_64 0.10.1-0.7.alpha.el9 @AppStream 144 k
libpciaccess x86_64 0.16-7.el9 @baseos 48 k
libxslt x86_64 1.1.34-9.el9 @appstream 754 k
pciutils x86_64 3.7.0-5.el9 @anaconda 213 k
xmlsec1 x86_64 1.2.29-13.el9 @appstream 596 k
xmlsec1-openssl x86_64 1.2.29-13.el9 @appstream 281 k
Transaction Summary
=====================================================================================================================================================================================================================
Remove 10 Packages
Freed space: 6.0 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: open-vm-tools-12.5.0-1.el9.x86_64 1/10
Removed "/etc/systemd/system/multi-user.target.wants/vmtoolsd.service".
Removed "/etc/systemd/system/vmtoolsd.service.requires/vgauthd.service".
Erasing : open-vm-tools-12.5.0-1.el9.x86_64 1/10
Running scriptlet: open-vm-tools-12.5.0-1.el9.x86_64 1/10
Erasing : fuse3-3.10.2-9.el9.x86_64 2/10
Erasing : xmlsec1-openssl-1.2.29-13.el9.x86_64 3/10
Erasing : xmlsec1-1.2.29-13.el9.x86_64 4/10
Erasing : libdrm-2.4.121-1.el9.x86_64 5/10
Erasing : libpciaccess-0.16-7.el9.x86_64 6/10
Erasing : libxslt-1.1.34-9.el9.x86_64 7/10
Erasing : fuse3-libs-3.10.2-9.el9.x86_64 8/10
Erasing : libmspack-0.10.1-0.7.alpha.el9.x86_64 9/10
Erasing : pciutils-3.7.0-5.el9.x86_64 10/10
Running scriptlet: pciutils-3.7.0-5.el9.x86_64 10/10
Verifying : fuse3-3.10.2-9.el9.x86_64 1/10
Verifying : fuse3-libs-3.10.2-9.el9.x86_64 2/10
Verifying : libdrm-2.4.121-1.el9.x86_64 3/10
Verifying : libmspack-0.10.1-0.7.alpha.el9.x86_64 4/10
Verifying : libpciaccess-0.16-7.el9.x86_64 5/10
Verifying : libxslt-1.1.34-9.el9.x86_64 6/10
Verifying : open-vm-tools-12.5.0-1.el9.x86_64 7/10
Verifying : pciutils-3.7.0-5.el9.x86_64 8/10
Verifying : xmlsec1-1.2.29-13.el9.x86_64 9/10
Verifying : xmlsec1-openssl-1.2.29-13.el9.x86_64 10/10
Installed products updated.
Removed:
fuse3-3.10.2-9.el9.x86_64 fuse3-libs-3.10.2-9.el9.x86_64 libdrm-2.4.121-1.el9.x86_64 libmspack-0.10.1-0.7.alpha.el9.x86_64 libpciaccess-0.16-7.el9.x86_64 libxslt-1.1.34-9.el9.x86_64
open-vm-tools-12.5.0-1.el9.x86_64 pciutils-3.7.0-5.el9.x86_64 xmlsec1-1.2.29-13.el9.x86_64 xmlsec1-openssl-1.2.29-13.el9.x86_64
Complete!
Nyní naopak nainstalujeme QEMU Guest Agenta pomokcí příkazu dnf install qemu-guest-agent
[root@proxy ~]# dnf install qemu-guest-agent
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered with an entitlement server. You can use subscription-manager to register.
Last metadata expiration check: 0:09:59 ago on Sun 19 Jan 2025 03:54:44 PM CET.
Dependencies resolved.
=====================================================================================================================================================================================================================
Package Architecture Version Repository Size
=====================================================================================================================================================================================================================
Installing:
qemu-guest-agent x86_64 17:9.1.0-7.el9 appstream 498 k
Installing dependencies:
liburing x86_64 2.5-1.el9 appstream 39 k
Transaction Summary
=====================================================================================================================================================================================================================
Install 2 Packages
Total download size: 537 k
Installed size: 1.9 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): qemu-guest-agent-9.1.0-7.el9.x86_64.rpm 69 kB/s | 498 kB 00:07
(2/2): liburing-2.5-1.el9.x86_64.rpm 5.4 kB/s | 39 kB 00:07
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 41 kB/s | 537 kB 00:13
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : liburing-2.5-1.el9.x86_64 1/2
Installing : qemu-guest-agent-17:9.1.0-7.el9.x86_64 2/2
Running scriptlet: qemu-guest-agent-17:9.1.0-7.el9.x86_64 2/2
Created symlink /etc/systemd/system/dev-virtio\x2dports-org.qemu.guest_agent.0.device.wants/qemu-guest-agent.service → /usr/lib/systemd/system/qemu-guest-agent.service.
Unit /usr/lib/systemd/system/qemu-guest-agent.service is added as a dependency to a non-existent unit dev-virtio\x2dports-org.qemu.guest_agent.0.device.
Verifying : liburing-2.5-1.el9.x86_64 1/2
Verifying : qemu-guest-agent-17:9.1.0-7.el9.x86_64 2/2
Installed products updated.
Installed:
liburing-2.5-1.el9.x86_64 qemu-guest-agent-17:9.1.0-7.el9.x86_64
Complete!
Ještě nastartovat a zároveň zajistit automatický start QEMU Guest Agenta pomocí příkazů a zkontrolovat stav.
systemctl enable --now qemu-guest-agent
systemctl status qemu-guest-agent