qm set, add new disk

spacemancw

New Member
Feb 2, 2024
18
0
1
I want to add a new 1GB disk with qm set and I want to set Async IO to native
I tried :
Code:
qm set 703 --scsi2,aio=native  MYPXSTORAGE:1

that did work. I'm trying to follow the doc.

--scsi[n] [file=]<volume> [,aio=<native|threads|io_uring>]

what is the correct syntax?
thanks
 
There is an example on the Wiki: https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)
The ,aio=native should go after the volume not before it, and there should be a space between --scsi2 and it's value (which should not contain spaces).
Code:
qm set 703 --scsi2,aio=native  MYPXSTORAGE:1
I would try qm set 703 --scsi2 MYPXSTORAGE:1,aio=native instead. I fear that MYPXSTORAGE:1 is not correct. Maybe first add a virtual disk using the Proxmox web GUI and look in the /etc/pve/qemu-server/703.conf file what the line should look like?
 
that did work. I'm trying to follow the doc.
Your commas are in the wrong place

Code:
qm set 3000 --scsi3 aio=native,bb-iscsi:100
update VM 3000: -scsi3 aio=native,bb-iscsi:100
scsi3: successfully created disk 'bb-iscsi:vm-3000-disk-2,aio=native,size=100G'


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
This worked:


Code:
qm set 703 --scsi2  MYPXSTORAGE,aio=native

update VM 703: -scsi2 MYPXSTORAGE:1,aio=native
Formatting '/mnt/pve/MYPXSTORAGE/images/703/vm-703-disk-0.raw', fmt=raw size=1073741824 preallocation=off
scsi2: successfully created disk 'MYPXSTORAGE:703/vm-703-disk-0.raw,aio=native,size=1G'