Skip to content

Commit

Permalink
OEM: Provide Proxmox images
Browse files Browse the repository at this point in the history
This uses coreos/afterburn#1023 and
coreos/ignition#1790 to provide
Proxmox images.

This pulls in flatcar/bootengine#91
and flatcar/init#115 to run afterburn for
hostname, network, SSH key, and metadata attribute setup. The afterburn
support for the SSH key and hostname parses the user-data when it's
cloud-init. The coreos-cloudinit support is not there but can be added
in addition: We need to add a new provider that varies from the existing
config drive support because the file is called user-data and not
user_data, and it needs to look for a filesystem label cidata and not
config-2.
  • Loading branch information
pothos authored and tormath1 committed May 30, 2024
1 parent ec192a3 commit c1ce858
Show file tree
Hide file tree
Showing 15 changed files with 1,439 additions and 2 deletions.
9 changes: 9 additions & 0 deletions build_library/vm_image_util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ VALID_IMG_TYPES=(
openstack_mini
packet
parallels
proxmoxve
pxe
qemu_uefi
rackspace
Expand Down Expand Up @@ -55,6 +56,7 @@ VALID_OEM_PACKAGES=(
kubevirt
openstack
packet
proxmoxve
qemu
rackspace
rackspace-onmetal
Expand Down Expand Up @@ -309,6 +311,13 @@ IMG_packet_OEM_PACKAGE=common-oem-files
IMG_packet_OEM_SYSEXT=oem-packet
IMG_packet_OEM_USE=packet

## proxmoxve
IMG_proxmoxve_DISK_FORMAT=qcow2
IMG_proxmoxve_DISK_LAYOUT=vm
IMG_proxmoxve_OEM_PACKAGE=common-oem-files
IMG_proxmoxve_OEM_USE=proxmoxve
IMG_proxmoxve_OEM_SYSEXT=oem-proxmoxve

## scaleway
IMG_scaleway_DISK_FORMAT=qcow2
IMG_scaleway_DISK_LAYOUT=vm
Expand Down
1 change: 1 addition & 0 deletions changelog/changes/2024-03-22-proxmoxve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Added Proxmox Virtual Environment images ([scripts#1783](https://github.com/flatcar/scripts/pull/1783))
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ PATCHES=(
"${FILESDIR}"/0001-Revert-remove-cl-legacy-feature.patch
"${FILESDIR}"/0002-util-cmdline-Handle-the-cmdline-flags-as-list-of-sup.patch
"${FILESDIR}"/0003-cargo-reduce-binary-size-for-release-profile.patch
"${FILESDIR}"/0004-providers-support-for-proxmoxve.patch
"${FILESDIR}"/0005-proxmoxve-ignore-user-data-file-if-header-is-not-pre.patch
"${FILESDIR}"/0006-proxmoxve-Generate-proper-network-unit-for-the-DHCP-.patch
)

src_unpack() {
Expand Down
Loading

0 comments on commit c1ce858

Please sign in to comment.