On 1/29/20 4:28 PM, Dusty Mabe wrote:
On 1/28/20 6:48 AM, arnaud gaboury wrote:
> I run a cloud bare metal server with Fedora Silverblue. The server is
> far from being full of services and settings, so I would like to take
> the opportunity to migrate to FCOS before too many apps are deployed.
>
> Following Fedoraproject documentation[0], I have been able to write a
> simple ignition file with no issues. But then I have no idea how to
> proceed to install FCOS, as I can't boot the server from an ISO file.
> My first though is to install coreos-installer, via a package or a
> docker image, then run coreos-installer as described in the coreos
> github[1] with my .ign file, then reboot. Will I be able to thereafter
> ssh the server as core user with the given ssh key? Or shall I write
> sshd settings in my ignition file to allow ssh from key for user core?
After you boot the ISO image you are given a bash prompt on the system. You
can then run /usr/bin/coreos-installer to install Fedora CoreOS to the disk
you desire as described in
https://docs.fedoraproject.org/en-US/fedora-coreos/bare-metal/#_installin...
I can't boot from ISO as the server is a non managed one (i.e I don't
have access to the upper "layer"). I have only access to the OS in the
cloud. The OS is already installed when I take hand on the server. That
is my worry.
You should be able to add an ssh key pretty easy. If you follow the lab to the
end we add an SSH key to the ignition config in the advanced example.
https://dustymabe.com/2020/01/23/devconf.cz-2020-fedora-coreos-lab/
Adding an ssh key is also the simplest example in the docs:
https://docs.fedoraproject.org/en-US/fedora-coreos/producing-ign/#_writin...
> Is it the correct process? Or is the process something more complicated
> involving PXE?
This is the correct process. You can use PXE if you like (typically better
for automation), but it's not required. Just use the live ISO for now.
> I have read the excellent paper, as usual, written by Dusty[2], but the
> process is dedicated to a VM. Maybe can I make some changes to adapt the
> method?
Your Ignition file you create can be the same
> Thank you for any hint to a clear way to install coreOS from Silverblue.
> I may then write a How-To as it seems clear directions are missing.
You can't migrate a server "in-place". i.e. you can install Fedora CoreOS
to
the same disk your Fedora Silverblue instance is booted from. You can boot the
Fedora CoreOS live ISO image and do the install from that "live" environment,
though.
OK, I *can't *install from my in place server, and don't have access to
the VM manager. The only solution I see in this case is net booting, i.e
rebooting my Silverblue server to an external server with everything to
net install FCOS.