wesupport

25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

25% off on first invoice for all services*

SPRING SALE

Use coupon

*Offer valid for new customers only

Need help?

Our experts have had an average response time of 11.43 minutes in March 2024 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Reset password for KVM VPS in SolusVM

by | Oct 11, 2021

Most often, we may fail to reset the password for KVM VPS in SolusVM.

This is likely to occur due to a corrupt VPS’s filesystem.

As part of our Server Management Services, we assist our customers with several SolusVM queries.

Today, let us see how our techs resolve this issue for our customers.

 

Reset password for KVM VPS in SolusVM

Generally, the most common symptoms of this error include:

  • Failure to reset KVM VPS password at SolusVM > Virtual Servers > VPS > Root/Admin Pass:

Error!
Root/Administrator password could not be changed.
This virtual server may not be Linux or Windows

  • Error when we try to mount the VPS LVM with libguestfs utilities:

guestmount -a /dev/solusvm/kvm790_img -i –rw /mnt_tmp
libguestfs: error: inspect_os: lstat: /etc/sysconfig/network: Input/output error

Moving ahead, let us see how our Support Techs resolve this error.

We can resolve this in a few steps. Let us see them below:

1. Initially, we connect to the KVM slave node via SSH.

2. Then we stop the VPS:

virsh destroy KVMID

We need to find the VMID of a VPS. To do so, we go to SolusVM > Virtual Servers > VMID column.

3. Eventually, we backup the VPS.

4. After that, we find the VPS LVM image path:

virsh domblklist VMID

Our example output will be like this:

virsh domblklist kvm101
Target Source
————————————————
hda /dev/solusvm/VMID_img
hdc –

5. In addition, we need to map the VPS LVM image using its path from the previous step:

kpartx -a -v /dev/solusvm/VMID_img
add map solusvm-VMID_img1 (253:44): 0 7859840 linear /dev/solusvm/VMID_img 2048
add map solusvm-VMID_img2 (253:45): 0 524288 linear /dev/solusvm/VMID_img 7861888

6. Later, we run e2fsck on both partitions:

e2fsck /dev/mapper/solusvm-VMID_img1 -y && e2fsck /dev/mapper/solusvm-VMID_img2 -y

7. Finally, we unmap the VPS LVM:

kpartx -d /dev/solusvm/VMID_img

 

Conclusion

In short, we fail to reset the password due to a corrupt VPS’s filesystem. Today, we saw how our Support Techs fix this issue quickly in an effective method.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Categories

Tags