Jump to content
  • 0

Solusvm: Change Root Password (Kvm Guest)


Question

Posted

Hi All,

 

could you please advise if change root password action is working for you in client area? When I try to change it I'm getting following error:

 

An internal error occurred, or the server did not respond to the request.

 

 

In the SolusVM API log there is this message: 

 

status => errornvserverid => 31nmsg => Not supported for this virtualization type

 

 

This is really strange as change root password is working from the SolusVM panel.

 

 

 

 

11 answers to this question

Recommended Posts

  • 0
Posted

In the first place I think that you are wrong saying about "KVM does not support password resetting".

 

And yes I'm sure that it's not VNC password reset. To reset a password on KVM guest reboot is needed. 

  • 0
Posted

In the first place I think that you are wrong saying about "KVM does not support password resetting".

With a default KVM setup you are not able to reset a password without booting into single user mode or a live cd (assuming linux OS).  This could be automated via some panel (I don't know for sure) but it isn't a thing I have normally seen.

  • 0
Posted

As I said before, to reset a password you need to shutdown the VM. Than you need to mount the image of that VM and chroot to it. After that you will be able to run passwd command and change a password for the root user.

 

I think some similar approach SolusVM is using. Though SolusVM API supports root password change:

 

http://docs.solusvm.com/v2/Default.htm#Developer/Admin-Api/Virtual-Server-Functions/Root-Password.htm%3FTocPath%3DDeveloper%7CAdmin%20API%7CVirtual%20Server%20Functions%7C_____17

  • 0
Posted

As I said before, to reset a password you need to shutdown the VM. Than you need to mount the image of that VM and chroot to it. After that you will be able to run passwd command and change a password for the root user.

 

Even inside a chroot, executing untrusted binaries as root on the host system is NOT a good idea.

Customer could have installed a trojan horse and named it /bin/passwd ....

 

Better to start a rescue cd such as sysresccd inside the virtual machine, and run your mount -> chroot -> passwd commands there.

Such actions are usually performed manually, and not automated.

 

 

Not sure if they are using that method for resetting passwords though.

Could also be that they added a custom start-up script to all their OS templates that can fetch and execute instructions from some central server.

That is reasonable secure, but will not work if you install your own OS.

  • 0
Posted

 

 

Hi All,

 

could you please advise if change root password action is working for you in client area? When I try to change it I'm getting following error:

 

An internal error occurred, or the server did not respond to the request.

 

 

In the SolusVM API log there is this message: 

 

status => errornvserverid => 31nmsg => Not supported for this virtualization type

 

 

This is really strange as change root password is working from the SolusVM panel.

 

I think the error says it all. KVM doesn't support root password changes via the API. What 'generation' of KVM templates are you using? See their documentation.

  • 0
Posted

Perhaps the SolusVM module should be updated not to show the option to change the password for KVM virtualizations.

i have already this in my proxmox module :)

so many feature of openvz is not available in kvm architecture .

  • 0
Posted

One is a OS virtualization layer that has a shared kernel, so can drop into the OS and reset the password.

 

The other is Hardware virtualization and has no access to the Guest OS, hence the difference in features.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...