flatcar / Flatcar

Flatcar project repository for issue tracking, project documentation, etc.
https://www.flatcar.org/
Apache License 2.0
774 stars 32 forks source link

What is username / password for Hyper-V stable production image? #229

Closed gprakosa closed 4 years ago

gprakosa commented 4 years ago

Hi,

Just boot using image from https://stable.release.flatcar-linux.net/amd64-usr/current/flatcar_production_hyperv_image.vhd.bz2 (2605.7.0) just don't know how to login. Tried username / password with core and still no luck.

Ah, before this I already tried using the ISO file, it was stuck on downloading, verifying the-image-name.bin.bz2 when fire-up flatcar-install -d /dev/sda -i ignition.json

Thanks.

anthr76 commented 4 years ago

You would have to specify one or provide a SSH key with your ignition file.

vbatts commented 4 years ago

Thanks for the report!

There is no password for root or core. Like @anthr76 said, most often an ssh-key is provided to ignition or cloudinit, via userdata.

Refer to https://github.com/kinvolk/ignition/blob/flatcar-master/doc/configuration-v2_3.md for information on setting the password or ssh-keys via ignition It is also possible to set a password with cloudinit https://github.com/kinvolk/coreos-cloudinit#configuration-with-cloud-config

pothos commented 4 years ago

A flatcar.autologin kernel parameter exists to not require a password for the VGA or serial console.

gprakosa commented 4 years ago

I used to know how to use guest customization on VMWare, but not sure how to do that on Hyper-V for supplying my user-data using ignition file or cloudinit.

But, I confirmed that @pothos solution is works on my Hyper-V instead it's stated for Azure. The rest is to put my pubkey into ~/.ssh/authorized_keys.

Thanks all!

pothos commented 4 years ago

The Hyper-V and Azure OEM images are different. If you are on Azure, you can use our official images there.