3

I am trying to play around with CoreOS, and I just went to their ISO download site and downloaded the latest stable ISO. I then created a new VM instance with that ISO, and it looks like the instance is up and running beautifully.

I would now like to SSH into this machine, but it just dawned on me that I don't have a username/password. Any ideas as to what the default/root passwords would be? I checked the CoreOS site and can't seem to find any.


Nitty gritty details: I actually uploaded the ISO to a local OpenStack cluster, which took care of creating the image for me, but I don't think that matters.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
smeeb
  • 201
  • 1
  • 5
  • 13

2 Answers2

3

I don't have the rep to comment, but Micheal Hampton is correct, CoreOS has a root user and a core user, neither of which have passwords.

If you have the Openstack CLI set up, you can issue nova keypair-list to see your keys and nova keypair-add --pub-key ~/.ssh/id_rsa.pub <keyname> to add a new one. You should then be able to SSH in as the core user, with that key. (Though you may have to cycle the VM - not sure.) Note that this is passed through the openstack metadata service.

As Brian Redbeard points out, you can also put ssh-keys in the cloud-config yaml file. That can be passed through either the metadata service or the cloud drive as the user-data flag.

Morphit
  • 226
  • 1
  • 7
1

The correct thing to do in this case is to specify the use of an ssh-key through a cloud-config file. This can be done via a command line boot argument or with a config drive.

Brian Redbeard
  • 349
  • 3
  • 12