Install fcos on KVM - LVM

Hi Sergey,

To clarify, here’s the summary:

  • You can install using coreos-installer from a privileged container on the host
  • You can install using the live ISO in the VM and manually typing out the coreos-installer command on the auto-login prompt
  • You can automate the live ISO install by using an unprivileged container of coreos-installer to inject the necessary coreos.inst.* kargs into the live ISO using coreos-installer iso kargs

Can you provide more information on what you tried and how it failed?

no i use
virt-install on CentOS 7x and

–location ‘/var/lib/libvirt/images/fedora-coreos-33.xxx-live.x86_64.iso’
–extra-args=“coreos.inst.install_dev=/dev/vda coreos.inst.ignition_url=${IGN} console=ttyS0,115200n8 serial”

As mentioned earlier, --location doesn’t work with FCOS yet. Try using coreos-installer iso kargs modify --append instead to inject the kernel arguments.

It’s not quite clear what I’m supposed to do. I can put VM FCOS with ISO in manual mode, I can put VM FCOS with PХE in automatic mode.
But I can’t do it simply, in regular Fedora I could slip my kickstart file without any problem …

UPD.
I’m sorry, but I must have misled YOU because of the translation.
I just don’t understand if this feature will be implemented in the future, or should I stop waiting and use only libvirt from CentOS 8x ?

My working script :

#!/bin/sh

VER_FCOS=“34.20210626.3.2”
IGN=“http://192.168.1.64:8000/fcos-test-01.ign
ROOTFS=“http://192.168.1.62/ftp/fedora/coreos/stable/x86_64/pxe/fedora-coreos-${VER_FCOS}-live-rootfs.x86_64.img

virt-install --name fcos-test-01
–ram 2048
–disk path=/dev/vg2/fcos-test
–vcpus 2
–os-type linux
–os-variant fedora32
–network bridge=br1
–graphics none
–noreboot
–location “/var/lib/libvirt/images/fedora-coreos-${VER_FCOS}-live.x86_64.iso”
–extra-args=“coreos.live.rootfs_url=${ROOTFS} coreos.inst.install_dev=/dev/vda coreos.inst.platform_id=qemu coreos.inst.ignition_url=${IGN} consol
e=ttyS0,115200n8 serial”

Unfortunately I have to keep 2 image files. Maybe this can be improved in some way?

P.S. CentOS Linux release 7.9.2009 (Core),

@mx , do you still have this problem?
I just completed the tutorials at:
Provisioning Fedora CoreOS on libvirt :: Fedora Docs and they worked well
… after I got through the noise at the beginning. There were too many choices at first.