From Fedora Project Wiki
Description
Install Fedora CoreOS as a virtual machine with Podman & Docker
Setup
- Install podman by running
sudo dnf install podman -y
- Download and verify the desired image for QEMU
How to test
- Create an working directory by running
mdkir ~/coreos && cd ~/coreos
. Please skip this step if you already have a working directory. - Download the latest Fedora CoreOS QCOW2 image, we will grab coreos-installer by running
podman pull quay.io/coreos/coreos-installer:release
- Generate Ignition configuration from Fedora CoreOS Config files, we will grab fcct by running
podman pull quay.io/coreos/fcct:release
- Validate Ignition configuration files, we will need ignition-validate by running
podman pull quay.io/coreos/ignition-validate:release
- To make config easier, add the following alias
$ alias coreos-installer='podman run --pull=always \ --rm --tty --interactive \ --security-opt label=disable \ --volume ${PWD}:/pwd --workdir /pwd \ quay.io/coreos/coreos-installer:release'
$ alias ignition-validate='podman run --rm --tty --interactive \ --security-opt label=disable \ --volume ${PWD}:/pwd --workdir /pwd \ quay.io/coreos/ignition-validate:release'
$ alias fcct='podman run --rm --tty --interactive \
--security-opt label=disable \ --volume ${PWD}:/pwd --workdir /pwd \ quay.io/coreos/fcct:release'
- Using coreos-installer to download and decompress the image
$coreos-installer download -p qemu -f qcow2.xz --decompress
Expected Results
- The system runs in a virtual machine according to the instructions.
- You can read the IP address of the machine from the serial console.
- You can connect to the machine via SSH.
- The linked documentation is clear, all steps are understandable, and nothing important is missing from it.