Ask Your Question

Reset password root not successfully?

asked 2014-11-19 19:35:49 -0500

anhdenday gravatar image

updated 2014-11-19 19:36:23 -0500

Dear All,

I am using Openstack with KVM as hypervisor. Now I have a problem that I cannot reset password root. I do it by the command: nova root-password serverId but it's appear a message that unable to change admin password. How can I do? Thanks

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-11-19 23:21:25 -0500

Ram.Meena gravatar image

With KVM hypervisor resetting the password of an instance is not supported using nova 'root-password' due to limitations of KVM. The 'nova root-password' is only supported in xenapi with a guest agent running.

However you may inject password in instances at launching time on Libvirt-based hypervisors (KVM, QEMU, LXC).

For hypervisors such as KVM that use the libvirt backend, admin/root password injection is disabled by default. To enable it, set the following option in /etc/nova/nova.conf:



When enabled, Compute will modify the password of the root account by editing the /etc/shadow file inside of the virtual machine instance.

Users can only ssh to the instance by using the admin password if:

  1. The virtual machine image is a Linux distribution
  2. The virtual machine has been configured to allow users to ssh as the root user. This is not the case for Ubuntu cloud images, which disallow ssh to the root account by default.
edit flag offensive delete link more

answered 2015-04-06 04:33:24 -0500

frz59 gravatar image

You can use openstack-guest-agents-unix
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-11-19 19:35:49 -0500

Seen: 3,302 times

Last updated: Apr 06 '15