Ask Your Question
0

Centos 7 password issue for guest image .. Kindly suggest

asked 2015-03-20 23:28:04 -0500

updated 2015-03-21 02:43:26 -0500

I am unable to login my centos7 image..

I have downloaded the 1st image from below link.. http://cloud.centos.org/centos/7/images/

Have used below text file for mapping the key-pair..

cat centos7.txt
#cloud-config
chpasswd:
 list: |
   root:stackops
   centos:stackops
expire: False

Also created key file using ssh-key and import to nova key file..

nova keypair-list
+-----------+-------------------------------------------------+
| Name      | Fingerprint                                     |
+-----------+-------------------------------------------------+
| cloud-key | b2:bd:77:1a:0d:78:73:fa:ae:b2:ed:bc:dd:10:41:88 |
+-----------+-------------------------------------------------+

Have create instance using nova command with below parameter. But still I am unable to loging the same password "stackops".

nova boot --flavor m1.small --image CentOS-7-x86_64 --nic net-id=75b34ee0-ffbf-4dcb-9511-b270b0229f99 --security-group default --key-name cloud-key --user-data=centos7.txt test2

Please advise me to fix the issue

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-21 00:59:04 -0500

dbaxps gravatar image

--user-data=./myfile.txt

#cloud-config
password: mysecret
chpasswd: { expire: False }
ssh_pwauth: True
edit flag offensive delete link more

Comments

Boris, No luck tried below command as above parameter. Pls help me..

nova boot --flavor m1.small --image CentOS-7-x86_64 --nic net-id=75b34ee0-ffbf-4dcb-9511-b270b0229f99 --security-group default --key-name cloud-key --user-data=./myfile.txt test2
Pradipta_OS_M gravatar imagePradipta_OS_M ( 2015-03-21 01:17:09 -0500 )edit

Also tried without key pair parameter,, Kindly suggest me on this..

nova boot --flavor m1.small --image CentOS-7-x86_64 --nic net-id=75b34ee0-ffbf-4dcb-9511-b270b0229f99 --security-group default --user-data=./myfile.txt test2
Pradipta_OS_M gravatar imagePradipta_OS_M ( 2015-03-21 01:22:32 -0500 )edit
1

Install libguestfs http://bderzhavets.blogspot.ru/2014/0...
Mount qcow2 image before uploading to glance. See /etc/cloud/cloud.cfg

dbaxps gravatar imagedbaxps ( 2015-03-21 02:50:16 -0500 )edit

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: 2015-03-20 23:28:04 -0500

Seen: 1,171 times

Last updated: Mar 21 '15