shimas Posted January 6, 2015 Report Share Posted January 6, 2015 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. Quote Link to comment Share on other sites More sharing options...
0 AshleyUk Posted January 6, 2015 Report Share Posted January 6, 2015 KVM does not support password resetting, due to being full Virt and having no access to the OS within the container. Are you sure your not resetting the VNC password from within SolusVM? Quote Link to comment Share on other sites More sharing options...
0 shimas Posted January 7, 2015 Author Report Share Posted January 7, 2015 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. Quote Link to comment Share on other sites More sharing options...
0 mrrsm Posted January 7, 2015 Report Share Posted January 7, 2015 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. Quote Link to comment Share on other sites More sharing options...
0 shimas Posted January 7, 2015 Author Report Share Posted January 7, 2015 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 Quote Link to comment Share on other sites More sharing options...
0 Max Posted January 7, 2015 Report Share Posted January 7, 2015 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. Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted January 7, 2015 Report Share Posted January 7, 2015 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 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. Michael 1 Quote Link to comment Share on other sites More sharing options...
0 shimas Posted January 8, 2015 Author Report Share Posted January 8, 2015 Templates are gen2 And KVM Template documentation says: Root passwords can be set or reset from the client/admin areas (Linux Only). Quote Link to comment Share on other sites More sharing options...
0 shimas Posted January 8, 2015 Author Report Share Posted January 8, 2015 Tyson, unfortunatelly but it looks like you are right. SolusVM API needs upgrade to support password change for KVM VMs. Quote Link to comment Share on other sites More sharing options...
0 Tyson Posted January 8, 2015 Report Share Posted January 8, 2015 Perhaps the SolusVM module should be updated not to show the option to change the password for KVM virtualizations. Michael and Blesta Addons 2 Quote Link to comment Share on other sites More sharing options...
0 Blesta Addons Posted January 8, 2015 Report Share Posted January 8, 2015 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 . Quote Link to comment Share on other sites More sharing options...
0 AshleyUk Posted January 9, 2015 Report Share Posted January 9, 2015 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. Quote Link to comment Share on other sites More sharing options...
Question
shimas
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.
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.