All contributions

proxmox/pve-manager

Proxmox VE

A server virtualisation platform with KVM machines and LXC containers, managed from the browser. It takes fixes through the pve-devel mailing list rather than pull requests.

Language
Perl and JavaScript
Merged changes
11
Project site
proxmox.com

What we changed

In the interface we fixed uploading and downloading .img images, aliases in IPSets, mapping name validation and IPv6 comments in the network selector. In the Perl backend, scheduled jobs no longer get stuck after losing a task log, pve-storage no longer deletes shared directories, migration names the snapshot holding a local ISO, and hugepages work with NUMA host nodes from 10 upwards.

What this work shows

  • ExtJS forms with API-consistent validation
  • Perl modules and Test::More tests
  • QEMU migration and NUMA hugepages
  • Patches through the pve-devel mailing list
What was broken

The upload window got the file name and format wrong

The file field showed the name with the C:\fakepath\ prefix that browsers add on every system. A .img file uploaded or downloaded from a URL as import content got a .raw suffix, so a qcow2 image such as the Ubuntu cloud image was imported as a raw disk and the guest did not boot.

How we fixed it

Just the file name and an explicit format choice

The field now shows only the name from the file object, and the upload itself works as before. For .img files the upload and download-from-URL windows show a format selector and append the extension of the chosen format, and the upload stays disabled until a format is picked.

#6475 #8015 #8015

What was broken

Forms offered wrong values and dropped data

The window for adding an IPSet entry offered aliases already in the set, and picking one ended in an "already exists" error from the API. The name field of PCI, USB and directory mappings accepted any text, such as gpu@node1, and rejected it only after submitting, while the network selector dropped the comments of IPv6 entries.

How we fixed it

An interface that matches the API

The alias selector receives the current entries and filters them out. Mapping name fields use the ConfigId validation, so the error shows at once and the tooltip lists the allowed characters. NetworkSelector takes the comment from the comments property, because that is where the API returns IPv6 comments, and it never returns comments6.

#7108 #5608 #6943

What was broken

A scheduled job stopped for good

When the task log of a job's last run was gone, for example after a crash, the scheduler aborted its check with "no such task". The job was skipped on every iteration and never ran again until someone cleaned up its state file by hand.

How we fixed it

A missing log no longer blocks the scheduler

In PVE/Jobs.pm we first check whether the task is still running. If it is not and the log is missing, the scheduler prints a warning, treats the task as failed and schedules the job again, as Proxmox Backup Server does.

#4986

What was broken

Deleting the last file removed its directory

After removing a volume, free_image always tried to remove the parent directory. Deleting the last ISO, template, snippet or import file thus removed the shared content directory, and pvestatd re-created it as root:root, without the ownership and mode the admin had set up.

How we fixed it

Cleanup only for per-guest directories

The empty parent directory is now removed only after guest disk images, the only volumes stored in per-guest directories. We added a free_image test for five content types that checks which directory stays.

#6969

What was broken

Migration did not say where the ISO came from

When a VM no longer had a local ISO attached but a snapshot still referenced it, migration failed with "local cdrom image". The image was not in the current configuration, so the message gave no hint where it came from.

How we fixed it

The error names the snapshot

The error now lists the snapshots that reference the image, as the message for a physical drive already did. We extended the migration test mocks to volumes other than disks and added a test with an ISO referenced only by a snapshot.

#4012 #4012

What was broken

Hugepages rejected NUMA nodes from 10 upwards

With hugepages enabled, each guest NUMA node must be bound to a single host node. A regex that accepted only one digit checked this, so host node 10 and above failed with a misleading "more than 1 hostnode value" error, and hugepages were unusable on hosts with more than ten NUMA nodes.

How we fixed it

Any single node number

The regex in hugepages_topology now accepts a node number of any length, while ranges and lists of nodes are still rejected. The memory tests cover host node 10.

#6907

Merged changes 11

  1. #6907 fix #6907: memory: allow multi-digit host nodes with hugepages (qemu-server) Merged 14 October 2026
  2. #6969 fix #6969: plugin: keep content directory when freeing its last file (pve-storage) Merged 9 October 2026
  3. #4012 test: migration: support volumes other than images (qemu-server) Merged 9 October 2026
  4. #4012 partially fix #4012: migrate: mention snapshots referencing a local ISO image (qemu-server) Merged 9 October 2026
  5. #4986 fix #4986: jobs: do not get stuck if the task log is missing Merged 6 October 2026
  6. #6475 fix #6475: ui: upload: only show the file name of the selected file Merged 30 September 2026
  7. #7108 fix #7108: ui: ipset: do not offer aliases that are already added Merged 30 September 2026
  8. #8015 fix #8015: ui: upload: let the user choose the .img image format Merged 30 September 2026
  9. #8015 fix #8015: ui: download url: let the user choose the .img image format Merged 30 September 2026
  10. #5608 fix #5608: ui: resource mappings: validate the name like the API does Merged 30 September 2026
  11. #6943 fix #6943: ui: network selector: show comments of IPv6 entries (proxmox-widget-toolkit) Merged 30 September 2026

What it taught us

In a large infrastructure project the bug sits on both sides: in ExtJS forms that have to validate data the way the API does, and in Perl modules where we add tests that reproduce the bug. The patches went through a mailing list, so each one had to stand on its commit message alone.

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.