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 committed May 6, 2024
1 parent 6ebffa7 commit 64b0e74
Show file tree
Hide file tree
Showing 17 changed files with 1,425 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 @@ -21,6 +21,7 @@ VALID_IMG_TYPES=(
openstack_mini
packet
parallels
proxmoxve
pxe
qemu
qemu_uefi
Expand Down Expand Up @@ -52,6 +53,7 @@ VALID_OEM_PACKAGES=(
hyperv
openstack
packet
proxmoxve
qemu
rackspace
rackspace-onmetal
Expand Down Expand Up @@ -306,6 +308,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 64b0e74

Please sign in to comment.