[How to] Run Flatcar Container Linux on Proxmox

ddt3

Member
Feb 9, 2022
4
0
6
54
I started using Flatcar Container Linux to run my docker containers on Proxmox sometime ago. At some point I realized that I wanted a more structured approach to creating a flatcar vm (read: more automated). So I started creating some scripts that made that possible.

Next to that I created some Butane (yaml) snippets that I can include in other Butane files (e.g. add my ssh keys to all flatcar vms at ignition, add docker-compose, etc.).

I put those scripts and Butane (yaml) files here:
https://github.com/ddt3/proxmox-flatcar

Excerpt from the README:
-----

Overview of the process steps​

The following steps need to be performed

  1. Create a Butane (yaml) file for a new flatcar vm
  2. Run create_vm.sh
    It will automatically:
    1. Convert Butane file(s) to ignition files
    2. Transfer the "start" ignition file to proxmox
    3. Create a VM using a flatcar image
    4. Add the ignition file to the VM
    5. Start the VM
-----
More detailed information on github.

Hope this is useful to others too.

Cheers,

Dries
 
Last edited:
I have changed the scripts a bit, to make it more generic (and still working on it).

I am also trying to get rid of the need for a webserver (by merging local ignition files) but at the moment it is not possible to include multiple local files in a butane yaml (raised that as a butane issue for that).

Ideas for change that I have:
  • Remove need for webserver
  • If still using a webserver: upload of ign files to webserver
    I run my scripts on the webserver, so at this moment I have no need for upload " to the webserver
  • Put all config items in a config file
For now, these scrips serve my purpose. I would make it more generic because I think it is fun to do so.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!