Applicable to:
- SolusVM
Symptoms
- Unable to reset KVM VPS password at SolusVM > Virtual Servers > VPS > Root/Admin Pass:
CONFIG_TEXT: Error!
Root/Administrator password could not be changed.
This virtual server may not be linux or Windows - When trying to mount the VPS LVM with libguestfs utilities there is the following error:
# guestmount -a /dev/solusvm/kvm790_img -i --rw /mnt_tmp
libguestfs: error: inspect_os: lstat: /etc/sysconfig/network: Input/output error
Cause
VPS's filesystem is corrupted.
Resolution
- Connect to KVM slave node via SSH
- Stop the VPS:
# virsh destroy KVMID
VMID of a VPS can be found in SolusVM > Virtual Servers > VMID column.
- Backup the VPS
- Find the VPS LVM image path:
virsh domblklist VMID
The example output should be as follows:
# virsh domblklist kvm101
Target Source
------------------------------------------------
hda /dev/solusvm/VMID_img
hdc - - 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 - Run e2fsck on both partition:
# e2fsck /dev/mapper/solusvm-VMID_img1 -y && e2fsck /dev/mapper/solusvm-VMID_img2 -y
- Unmap VPS LVM:
# kpartx -d /dev/solusvm/VMID_img
Comments
0 commentsPlease sign in to leave a comment.