Skip to content

Update centos-6-openstack.ks#2

Open
srenatus wants to merge 3 commits intoprjrd:masterfrom
srenatus:patch-1
Open

Update centos-6-openstack.ks#2
srenatus wants to merge 3 commits intoprjrd:masterfrom
srenatus:patch-1

Conversation

@srenatus
Copy link

a couple of small fixes:

  • enable console-logging in the way Nova expects (i.e. make nova console-log $VM work; see here for more information)
  • add ec2-user for cloud-init (the user that gets the SSH key injected in the default config)
  • add NOZEROCONF variable that prevents CentOS from adding a 169.254.0.0-route that troubles fetching metadata (at least with Quantum, but Zeroconf's probably not needed in a cloud VM anyways)

Thanks for Raindrops btw, it's quite perfect for effortless image creation... I've been waiting for this ;)

srenatus added 3 commits May 26, 2013 14:42
a couple of small fixes:

- enable console-logging in the way Nova expects (i.e. make `nova console-log $VM` work; see [here](https://ask.openstack.org/question/108/configuring-image-to-write-to-console-log/) for more information)
- add `ec2-user` for `cloud-init` (the user that gets the SSH key injected in the default config)
- add `NOZEROCONF` variable that prevents CentOS from adding a 169.254.0.0-route that troubles fetching metadata (at least with Quantum, but Zeroconf's probably not needed in a cloud VM anyways)
@timfallmk
Copy link

@srenatus Default policy is actually to use the 'centos' cloud user for CentOS images in openstack (see #3 ).

CentOS also won't add the default metadata route if you remove NetworkManager. This actually the usual way of solving this problem.

See https://github.com/dtroyer/image-recipes for some good examples

@kbsingh
Copy link
Member

kbsingh commented Feb 24, 2014

hi,

Firstly, apologies for not moving faster on this - 've been waiting to see how the CentOS Project conversations around the user issue go; and so far it looks like the root account is going to remain the default policy there.

Having said that, we should do whatever we need to here...

@timfallmk
Copy link

@kbsingh You're right that it really doesn't matter what you set the default user to. I was just pointing out that each OS has their own conventions that they use for their images. Ubuntu uses "ubuntu", RHEL uses "cloud-user" and CentOS images use 'centos'. Amazon overwrites some of these as well, so it's entirely up to you what you want to use. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants