[PVE-User] Manpage qm

Karsten Becker karsten.becker at ecologic.eu
Wed Oct 12 15:42:19 CEST 2016


Hi,

we are currently sitting here in the advanced training and try to create
a VM from commandline according to the manpage of qm.

We are reading this in the manpage:

> -virtio[n] [file=]<volume> [,aio=<native|threads>] [,backup=<1|0>] [,bps=<bps>] [,bps_rd=<bps>] [,bps_wr=<bps>] [,cache=<none|writethrough|writeback|unsafe|directsync>]
>        [,cyls=<integer>] [,detect_zeroes=<1|0>] [,discard=<ignore|on>] [,format=<image format>] [,heads=<integer>] [,iops=<iops>] [,iops_max=<iops>] [,iops_rd=<iops>]
>        [,iops_rd_max=<iops>] [,iops_wr=<iops>] [,iops_wr_max=<iops>] [,iothread=<1|0>] [,mbps=<mbps>] [,mbps_max=<mbps>] [,mbps_rd=<mbps>] [,mbps_rd_max=<mbps>] [,mbps_wr=<mbps>]
>        [,mbps_wr_max=<mbps>] [,media=<cdrom|disk>] [,rerror=<ignore|report|stop>] [,secs=<integer>] [,serial=<serial>] [,size=<DiskSize>] [,snapshot=<1|0>] [,trans=<none|lba|auto>]
>        [,werror=<enospc|ignore|report|stop>]

but this will not work:

> qm create 101 -memory 1024 -name CLI-test -ostype l26 -sockets 1
-cores 2 -numa 1 -net0 model=virtio,bridge=vmbr0,queues=2 -net1
model=virtio,bridge=vmbr1,queues=2 -virtio0 local,size=5,format=qcow2
-ide2 local:iso/debian-8.6.0-amd64-netinst.iso,media=cdrom

You will have to use this instead:

> qm create 101 -memory 1024 -name CLI-test -ostype l26 -sockets 1
-cores 2 -numa 1 -net0 model=virtio,bridge=vmbr0,queues=2 -net1
model=virtio,bridge=vmbr1,queues=2 -virtio0 local:5,format=qcow2 -ide2
local:iso/debian-8.6.0-amd64-netinst.iso,media=cdrom

What do we overlook? Or is the manpage simply wrong?

The fact that <volume> means the storage device is not really obvious.
That the size=5 is not working is not understood by us.

Some more comments/examples for such an important command (in case of
automation) would be very nice in the wiki.

Regards from Berlin
Karsten


Ecologic Institut gemeinnuetzige GmbH
Pfalzburger Str. 43/44, D-10717 Berlin
Geschaeftsfuehrerin / Director: Dr. Camilla Bausch
Sitz der Gesellschaft / Registered Office: Berlin (Germany)
Registergericht / Court of Registration: Amtsgericht Berlin (Charlottenburg), HRB 57947



More information about the pve-user mailing list