OpenStack Mirroring and Passwords

Source: Internet
Author: User

It is estimated that the initial use of OpenStack users will be more confusing. What is the initialization password for the image of OpenStack? Different image initialization passwords are not the same, here is a summary.

Contents [Hide]

    • 1 Virtual machine login mode

    • 2 ubuntu images

    • 3 Cirros

    • 4 CentOS Gold Image

    • 5 Other image resources

    • 6 Appendices

Virtual Machine Login mode

For OpenStack: There are two ways to access a virtual machine,

    • SSH mode

    • Dashboard's console.

Console mode, the equivalent of your server directly before landing. Some virtual machine images are security-enabled and do not allow the root account to be logged directly from the remote SSH.

Ubuntu Image

Http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img

This is a very famous image, we used to test more. By default, this image cannot be logged in with a password and can only be accessed using a key. So you are in the console, also cannot log on to the virtual machine.

The default username is: Ubuntu, you need to use the key to log in.

If you want the console to log in, then you need to do something about it.

This time, created virtual machine, in the console, you can log in with User:ubuntu,pass:ubuntu, do not need a key.

But at this point, you still can't access the virtual machine via SSH, because the SSH default setting is to disable password authentication, so you need to do more work.

#!/bin/shpasswd ubuntu<<eofubuntuubuntueofsed-i ' s/passwordauthentication no/PasswordAuthentication yes/g '/ Etc/ssh/sshd_configservice ssh Restart

This allows you to use SSH to login to the virtual machine without having to go through the console.

Log in with Root

If you want to log in directly with root, you need to set a password for root.

The password set here is the image administrator's password, which is the root password.

The default Redhat RDO configuration is not supported for this feature and you need to modify the nova.conf file for all nodes

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

Remember, it is all the nodes that need to be modified. Restart Compute Service

/etc/init.d/openstack-nova-compute restart

Of course you are still unable to ssh, using root login, you need to combine the above example, you can.

is to enter the following code

#!/bin/shsed-i ' s/passwordauthentication no/passwordauthentication yes/g '/etc/ssh/sshd_configservice ssh restart

At this point, you can ssh and log in as root.

Cirros

The development of OpenStack, basically using this image to test, because he is relatively small, only 10M.

Image Introduction

Address of Image:

Https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img

Cirros, you can log in with a username and password, or you can log in using a key

User:cirros
Password:cubswin:)

This password is very special, so you can use the above method to set the root password of this image, SSH login.

CentOS Gold Image

There are more centos in the country, but the CentOS image on OpenStack can only be made on its own before. This needs to be done by a third party that everyone trusts. Recently, there was a choice.

http://catn.com/labs/centos-images/

http://catn.com/2013/04/18/building-a-virtual-machine-image-for-centos/

Teach you how to create an image of CentOS and provide a ready-made image download

Mirror:

Http://mirror.catn.com/pub/catn/images/qcow2/centos6.4-x86_64-gold-master.img

Mirror Account

    • User:root

    • Passchangeme1122

You can change this root password directly when creating a virtual machine. The default is to run root login.

This image, however, has no integrated cloud-init. Causes you to see the name of the virtual machine, not the computer name you set.

Other image Resources

Http://docs.openstack.org/image-guide/content/ch_obtaining_images.html

Http://openstack.redhat.com/Image_resources

Appendix

You need to set up a security group, open 22 port to SSH login.


OpenStack Mirroring and Passwords

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.