Cloud-init ubuntu cloud-image example broken apparently

spamsam

Active Member
Jul 5, 2017
18
0
41
39
https://pve.proxmox.com/wiki/Cloud-Init_Support

The link above refers refers to the example below:

Code:
# download the image
wget https://cloud-images.ubuntu.com/bionic/current/bionic-server-cloudimg-amd64.img

# create a new VM with VirtIO SCSI controller
qm create 9000 --memory 2048 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci

# import the downloaded disk to the local-lvm storage, attaching it as a SCSI drive
qm set 9000 --scsi0 local-lvm:0,import-from=/path/to/bionic-server-cloudimg-amd64.img

As such i put the following into the shell:

Code:
cd /var/lib/vz/images/
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
qm create 9000 --memory 2048 --net0 virtio,bridge=vmbr0 --scsihw virtio-scsi-pci
qm set 9000 --scsi0 local-lvm:0,import-from=/var/lib/vz/images/jammy-server-cloudimg-amd64.img

The last line leaves me with the following error:
Code:
400 Parameter verification failed.
scsi0: invalid format - format error
scsi0.import-from: property is not defined in schema and the schema does not allow additional properties

qm set <vmid> [OPTIONS]

Any ideas how to get around this? Proxmox 7.2
 
Hi,
please post the output of pveversion -v. It should work with qemu-server >= 7.1-5.
 
Hi,

Output below:

Code:
root@proxi:~# pveversion -v
proxmox-ve: 7.1-1 (running kernel: 5.13.19-2-pve)
pve-manager: 7.1-7 (running version: 7.1-7/df5740ad)
pve-kernel-helper: 7.1-6
pve-kernel-5.13: 7.1-5
pve-kernel-5.13.19-2-pve: 5.13.19-4
ceph-fuse: 15.2.15-pve1
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve2
libproxmox-acme-perl: 1.4.0
libproxmox-backup-qemu0: 1.2.0-1
libpve-access-control: 7.1-5
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.0-14
libpve-guest-common-perl: 4.0-3
libpve-http-server-perl: 4.0-4
libpve-storage-perl: 7.0-15
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.11-1
lxcfs: 4.0.11-pve1
novnc-pve: 1.2.0-3
proxmox-backup-client: 2.1.2-1
proxmox-backup-file-restore: 2.1.2-1
proxmox-mini-journalreader: 1.3-1
proxmox-widget-toolkit: 3.4-4
pve-cluster: 7.1-2
pve-container: 4.1-2
pve-docs: 7.1-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.3-3
pve-ha-manager: 3.3-1
pve-i18n: 2.6-2
pve-qemu-kvm: 6.1.0-3
pve-xtermjs: 4.12.0-1
qemu-server: 7.1-4
smartmontools: 7.2-1
spiceterm: 3.2-2
swtpm: 0.7.0~rc1+2
vncterm: 1.7-1
zfsutils-linux: 2.1.1-pve3

So just to confirm, is it non-functional in previous qemu versions?
 
So just to confirm, is it non-functional in previous qemu versions?
Yes, you need to use a different command with an older qemu-server package (it's for managing QEMU, not QEMU itself which is pve-qemu-kvm ;)). Please refer to the copy of the Documentation of your installed version (there's a Documentation button in the top bar in the GUI). But I'd recommend upgrading, so you get bug and security fixes.
 
Hei there,
I am following the same steps and the scsi import-from returns
Code:
scsi0.import-from: invalid format - unable to parse volume ID 'bionic-server-cloudimg-amd64.img'

qemu-server is on version 7.3-1
 
Hi,
Hei there,
I am following the same steps and the scsi import-from returns
Code:
scsi0.import-from: invalid format - unable to parse volume ID 'bionic-server-cloudimg-amd64.img'

qemu-server is on version 7.3-1
you need to provide an absolute path for import-from (or an existing volume ID to import from that).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!