Reset KVM Guest Password

ยท

1 min read

1. Install libguestfs-tools

apt install -y libguestfs-tools
dnf install -y libguestfs-tools

2. Shutdown vm

virsh shutdown vm-1

3. Use virt-customize

virt-customize -a /path/to/disk-root.qcow2 --root-password password:password123

4. Try to access vm

virsh console vm-1

or

ssh root@ip-vm-1
ย