Ask Your Question
2

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
1

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:

[libvirt]

inject_password=true

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
0

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

frz59 gravatar image

You can use openstack-guest-agents-unix

    https://github.com/rackerlabs/openstack-guest-agents-unix
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 1,202 times

Last updated: Apr 06 '15