Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

By default nova boot will generate an admin password. If your compute nova.conf has the options to allow the injection of a password; however if you are using cloudinit you would use something like this.

cloud-config

hostname: instance-hostname fqdn: instance-hostname manage_etc_hosts: true password: password chpasswd: { expire: False } ssh_pwauth: True

Then for the compute nodes nova.conf make sure you have.

Inject the admin password at boot time, without an agent.

(boolean value)

libvirt_inject_password=True

Inject the ssh public key at boot time (boolean value)

libvirt_inject_key=true

The partition to inject to : -2 => disable, -1 => inspect

(libguestfs only), 0 => not partitioned, >0 => partition

number (integer value)

libvirt_inject_partition=-1

NOTE for the password parameter you put on your cloudinit file will be for the default user you have on cloudinit.cfg, so if your is set to admin and that user doesn't exist' on the image you wont be able to login, so before using cloud-init make sure the image user exist.

Hi,

By default nova boot will generate an admin password. If your compute nova.conf has the options to allow the injection of a password; however if you are using cloudinit you would use something like this.

cloud-config

#cloud-config hostname: instance-hostname fqdn: instance-hostname manage_etc_hosts: true password: password chpasswd: { expire: False } ssh_pwauth: True

Then for the compute nodes nova.conf make sure you have.

# Inject the admin password at boot time, without an agent.

agent. # (boolean value)

value) libvirt_inject_password=True

# Inject the ssh public key at boot time (boolean value)

value) libvirt_inject_key=true

# The partition to inject to : -2 => disable, -1 => inspect

inspect # (libguestfs only), 0 => not partitioned, >0 => partition

partition # number (integer value)

value) libvirt_inject_partition=-1

NOTE for the password parameter you put on your cloudinit file will be for the default user you have on cloudinit.cfg, so if your is set to admin and that user doesn't exist' on the image you wont be able to login, so before using cloud-init make sure the image user exist.

Hi,

By default nova boot will generate an admin password. If your compute nova.conf has the options to allow the injection of a password; however if you are using cloudinit you would use something like this.

#cloud-config hostname: instance-hostname fqdn: instance-hostname manage_etc_hosts: true password: password chpasswd: { expire: False } ssh_pwauth: True

Then for the compute nodes nova.conf make sure you have.

# Inject the admin password at boot time, without an agent. # (boolean value) libvirt_inject_password=True

# Inject the ssh public key at boot time (boolean value) libvirt_inject_key=true

# The partition to inject to : -2 => disable, -1 => inspect # (libguestfs only), 0 => not partitioned, >0 => partition # number (integer value) libvirt_inject_partition=-1

NOTE for the password parameter you put on your cloudinit file will be for the default user you have on cloudinit.cfg, so if your is set to admin and that user doesn't exist' on the image you wont be able to login, so before using cloud-init make sure the image user exist.

Hi,

By default nova boot will generate an admin password. If your compute nova.conf has the options to allow the injection of a password; however if you are using cloudinit you would use something like this.

#cloud-config

Blockquote

cloud-config

hostname: instance-hostname fqdn: instance-hostname manage_etc_hosts: true password: password chpasswd: { expire: False } ssh_pwauth: True

Blockquote

Then for the compute nodes nova.conf make sure you have.

# Inject the admin password at boot time, without an agent. # (boolean value) libvirt_inject_password=True

# Inject the ssh public key at boot time (boolean value) libvirt_inject_key=true

# The partition to inject to : -2 => disable, -1 => inspect # (libguestfs only), 0 => not partitioned, >0 => partition # number (integer value) libvirt_inject_partition=-1

NOTE for the password parameter you put on your cloudinit file will be for the default user you have on cloudinit.cfg, so if your is set to admin and that user doesn't exist' on the image you wont be able to login, so before using cloud-init make sure the image user exist.

Hi,

By default nova boot will generate an admin password. If your compute nova.conf has the options to allow the injection of a password; however if you are using cloudinit you would use something like this.

Blockquote

cloud-config

#cloud-config hostname: instance-hostname fqdn: instance-hostname manage_etc_hosts: true password: password chpasswd: { expire: False } ssh_pwauth: True

Blockquote

Then for the compute nodes nova.conf make sure you have.

# Inject the admin password at boot time, without an agent. # (boolean value) libvirt_inject_password=True

# Inject the ssh public key at boot time (boolean value) libvirt_inject_key=true

# The partition to inject to : -2 => disable, -1 => inspect # (libguestfs only), 0 => not partitioned, >0 => partition # number (integer value) libvirt_inject_partition=-1

NOTE for the password parameter you put on your cloudinit file will be for the default user you have on cloudinit.cfg, so if your is set to admin and that user doesn't exist' on the image you wont be able to login, so before using cloud-init make sure the image user exist.