Giter VIP home page Giter VIP logo

fedora-coreos-proxmox's Introduction

fedora-coreos-proxmox

About

This is a fork from https://git.geco-it.net/GECO-IT-PUBLIC/fedora-coreos-proxmox.git, it has the modified as below:

  • Fixed: the problem of geco-motd and qemu-ga during the setup of latest FCOS, according to this post
  • Feature: additional custom config of Template VM base on the modifies of Doc-Tiebeau/proxmox-flatcar
  • Feature: allow adding custom packages repo

How To

  1. Be sure to install git on your PVE server first:

    apt update
    apt install git
  2. Clone this repository on your Proxmox server:

    git clone https://github.com/jimlee2002/fedora-coreos-proxmox.git
  3. Get into the directory fedora-coreos-proxmox

    cd fedora-coreos-proxmox
  4. Modify template_deploy.conf to custom your VM parameter as below:

    # template vm vars
    TEMPLATE_NAME="TMPLT-fcos" # Template VM name append with <flactar_version> in Proxmox GUI
    TEMPLATE_RECREATE="false" # Fore recreate template ?
    # Note: If you want only update hook script and Template_Ignition file, you can keep it as false, these files are always overwritten
    TEMPLATE_VMID="900" # VMID of Template VM
    TEMPLATE_VMSTORAGE="local-lvm" # Target storage for template VM
    SNIPPET_STORAGE="local" # Target storage for snippets files
    VMDISK_OPTIONS=",discard=on"
    
    TEMPLATE_MEMORY="4096" # Amount of RAM for the template VM in MB
    TEMPLATE_CPU_TYPE="host" # Emulated CPU type
    TEMPLATE_CPU_CORE="4" # The number of cores for template VM
    # 0-False, 1-True
    TEMPLATE_AUTOSTART="1" # Whether the VM will be automatic restart after crash
    TEMPLATE_ONBOOT="0" # Whether the VM will be started during system bootup.
    
    
    TEMPLATE_IGNITION="fcos-base-tmplt.yaml"
    
    # fcos image version
    STREAMS=stable # The stream you decide to use
    VERSION=36.20220618.3.1 # You need to bump it to the latest version manually
    PLATEFORM=qemu
    BASEURL=https://builds.coreos.fedoraproject.org
    
  5. Add your custom packages repo in hook-fcos.sh as below:

    (...)
    
        echo -n "Fedora CoreOS: Adding custom packages repos..."
        pkgs_repo=(
            # Put the URL of custom packages repo here
            "https://pkgs.tailscale.com/stable/fedora/tailscale.repo"
            "https://download.docker.com/linux/fedora/docker-ce.repo"
        )
        
    (...)
  6. Run the scripts to generate the template VM:

    ./vmsetup.sh
  7. Check the template VM just generated in Proxmox Web GUI and clone a VM base on it.

  8. BEFORE first boot: update Cloud-Init config of your new VM in Proxmox Web GUI.

    Without specifying, the default username is admin

  9. Wait for multiple reboot the enjoy.

Credits

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.