Működik: "config.yaml"
version: "1.0.0"
variant: fcos
passwd:
users:
- name: core
password_hash: $y$j9T$iov................................
storage:
files:
- path: /etc/hostname
mode: 0644
contents:
inline: fcos1
systemd:
units:
-
contents: |
[Unit]
Description=Run a hello world web service
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/bin/podman run --pull=always --name=hello --net=host -p 8080:8080 quay.io/cverna/hello
ExecStop=/bin/podman rm -f hello
[Install]
WantedBy=multi-user.target
enabled: true
name: hello.service
Az ignition fájl:
$ sudo dnf install fcct
$ fcct -output config.ign config.yaml
A virt install:
$ virt-install --name=fcos --vcpus=2 --ram=2048 --import --network=bridge=virbr0 --graphics=none --qemu-commandline="-fw_cfg name=opt/com.coreos/config,file=${PWD}/config.ign" --disk=size=20,backing_store=${PWD}/fedora-coreos-32.20200907.3.0-qemu.x86_64.qcow2
Konzolon beenged. :)
A virt-manager ezeket a VM-eket nem látja, csak amit virt-manger-ben hozok létre?