Skip to content

Reset KVM Guest Password

Published: at 06:20 AMSuggest Changes

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

Previous Post
19 - Setup Neutron on Compute
Next Post
18 - Setup Neutron on Controller