You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ops instance create -t proxmox fails to attach disk on Proxmox VE 9.x — "explicit 'media=cdrom' is required for iso images"
Environment
Ops version: 0.1.55
Host OS: macOS (Apple Silicon), cross-building for --arch=amd64
Proxmox VE version: 9.2.2
Target storage: ZFS (zfsdata)
Description
ops image create -t proxmox succeeds and uploads the built image, but it lands in the iso content type on the configured isoStorageName (e.g. local:iso/webapp.iso) rather than as a raw disk image. When ops instance create -t proxmox then tries to attach that file directly as a virtio0 block device, Proxmox rejects it:
{"virtio0":"explicit 'media=cdrom' is required for iso images"}
ops instance create -t proxmox should either upload the image directly into disk/image storage (bypassing ISO content type entirely), or perform the equivalent of qm importdisk + attach against StorageName automatically, so the resulting VM has a working boot disk without manual intervention.
Actual behavior
The VM is created with network/CPU/memory config intact, but no usable boot disk is attached — it requires manually running (on the Proxmox host):
Title
ops instance create -t proxmoxfails to attach disk on Proxmox VE 9.x — "explicit 'media=cdrom' is required for iso images"Environment
--arch=amd64zfsdata)Description
ops image create -t proxmoxsucceeds and uploads the built image, but it lands in theisocontent type on the configuredisoStorageName(e.g.local:iso/webapp.iso) rather than as a raw disk image. Whenops instance create -t proxmoxthen tries to attach that file directly as avirtio0block device, Proxmox rejects it:This appears to be caused by a Proxmox VE behavior change (present since 8.4, still enforced in 9.x) that strictly disallows attaching anything under
isostorage content as a normal disk — it must either be mounted asmedia=cdromor imported into proper disk/image storage first. Proxmox support has confirmed this is intentional current behavior, not a bug on their end:https://forum.proxmox.com/threads/possible-regression-in-pve-9-2-3-owner-vm-when-migrating-iso-attached-as-media-disk.184582/
Steps to reproduce
config.json
{ "RunConfig": { "Ports": ["8080"] }, "TargetConfig": { "isoStorageName": "local", "Arch": "x86_64", "Machine": "q35", "Sockets": "1", "Cores": "1", "Memory": "512M", "StorageName": "zfsdata", "BridgePrefix": "vmbr", "Onboot": "0" } }Expected behavior
ops instance create -t proxmoxshould either upload the image directly into disk/image storage (bypassing ISO content type entirely), or perform the equivalent ofqm importdisk+ attach againstStorageNameautomatically, so the resulting VM has a working boot disk without manual intervention.Actual behavior
The VM is created with network/CPU/memory config intact, but no usable boot disk is attached — it requires manually running (on the Proxmox host):
...after which the unikernel boots correctly.
Related issues