From Fedora Project Wiki

< User:Sumantrom

Revision as of 13:55, 8 February 2021 by Sumantrom (talk | contribs) (Created page with "{{QA/Test_Case |description=Install Fedora CoreOS as a virtual machine with Podman & Docker |setup= # Install '''podman''' by running <code>sudo dnf install podman -y</code> #...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Install Fedora CoreOS as a virtual machine with Podman & Docker

Setup

  1. Install podman by running sudo dnf install podman -y
  2. Download and verify the desired image for QEMU

How to test

  1. Create an working directory by running mdkir ~/coreos && cd ~/coreos. Please skip this step if you already have a working directory.
  2. Download the latest Fedora CoreOS QCOW2 image, we will grab coreos-installer by runningpodman pull quay.io/coreos/coreos-installer:release
  3. Generate Ignition configuration from Fedora CoreOS Config files, we will grab fcct by runningpodman pull quay.io/coreos/fcct:release
  4. Validate Ignition configuration files, we will need ignition-validate by running podman pull quay.io/coreos/ignition-validate:release
  5. 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'
  1. Using coreos-installer to download and decompress the image $coreos-installer download -p qemu -f qcow2.xz --decompress

Expected Results

  1. The system runs in a virtual machine according to the instructions.
  2. You can read the IP address of the machine from the serial console.
  3. You can connect to the machine via SSH.
  4. The linked documentation is clear, all steps are understandable, and nothing important is missing from it.