You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.8 KiB

  1. # Fedora CoreOS
  2. Tested with stable version 34.20210611.3.0
  3. Because package installation with `rpm-ostree` requires a reboot, playbook may fail while bootstrap.
  4. Restart playbook again.
  5. ## Containers
  6. Tested with
  7. - containerd
  8. - crio
  9. ## Network
  10. ### calico
  11. To use calico create sysctl file with ignition:
  12. ```yaml
  13. files:
  14. - path: /etc/sysctl.d/reverse-path-filter.conf
  15. contents:
  16. inline: |
  17. net.ipv4.conf.all.rp_filter=1
  18. ```
  19. ## libvirt setup
  20. ### Prepare
  21. Prepare ignition and serve via http (a.e. python -m http.server )
  22. ```json
  23. {
  24. "ignition": {
  25. "version": "3.0.0"
  26. },
  27. "passwd": {
  28. "users": [
  29. {
  30. "name": "ansibleUser",
  31. "sshAuthorizedKeys": [
  32. "ssh-rsa ..publickey.."
  33. ],
  34. "groups": [ "wheel" ]
  35. }
  36. ]
  37. }
  38. }
  39. ```
  40. ### create guest
  41. ```ShellSeasion
  42. machine_name=myfcos1
  43. ignition_url=http://mywebserver/fcos.ign
  44. fcos_version=34.20210611.3.0
  45. kernel=https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/${fcos_version}/x86_64/fedora-coreos-${fcos_version}-live-kernel-x86_64
  46. initrd=https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/${fcos_version}/x86_64/fedora-coreos-${fcos_version}-live-initramfs.x86_64.img
  47. rootfs=https://builds.coreos.fedoraproject.org/prod/streams/stable/builds/${fcos_version}/x86_64/fedora-coreos-${fcos_version}-live-rootfs.x86_64.img
  48. kernel_args="console=ttyS0 coreos.live.rootfs_url=${rootfs} coreos.inst.install_dev=/dev/sda coreos.inst.stream=stable coreos.inst.ignition_url=${ignition_url}"
  49. sudo virt-install --name ${machine_name} --ram 4048 --graphics=none --vcpus 2 --disk size=20 \
  50. --network bridge=virbr0 \
  51. --install kernel=${kernel},initrd=${initrd},kernel_args_overwrite=yes,kernel_args="${kernel_args}"
  52. ```