Re: [PVE-User] Manpage qm

2016-10-12 Thread Karsten Becker
Thanks for the clarification!

:-)

Kind regards
Karsten



On 12.10.2016 16:22, Dietmar Maurer wrote:
>> What do we overlook? Or is the manpage simply wrong?
> 
> yes, it is misleading - sorry.
>  
>> The fact that  means the storage device is not really obvious.
>> That the size=5 is not working is not understood by us.
> 
> size is only used after creation.
>  
>> Some more comments/examples for such an important command (in case of
>> automation) would be very nice in the wiki.
> 
> For 'create', you need to encode the size inside the volume name (in GB)
> 
> --virtio0 local:5
> 


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
___
pve-user mailing list
pve-user@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user


Re: [PVE-User] Manpage qm

2016-10-12 Thread Dietmar Maurer
> What do we overlook? Or is the manpage simply wrong?

yes, it is misleading - sorry.
 
> The fact that  means the storage device is not really obvious.
> That the size=5 is not working is not understood by us.

size is only used after creation.
 
> Some more comments/examples for such an important command (in case of
> automation) would be very nice in the wiki.

For 'create', you need to encode the size inside the volume name (in GB)

--virtio0 local:5

___
pve-user mailing list
pve-user@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user


Re: [PVE-User] Manpage qm

2016-10-12 Thread Fabian Grünbichler
On Wed, Oct 12, 2016 at 03:42:19PM +0200, Karsten Becker wrote:
> 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=] [,aio=] [,backup=<1|0>] 
> > [,bps=] [,bps_rd=] [,bps_wr=] 
> > [,cache=]
> >[,cyls=] [,detect_zeroes=<1|0>] [,discard=] 
> > [,format=] [,heads=] [,iops=] 
> > [,iops_max=] [,iops_rd=]
> >[,iops_rd_max=] [,iops_wr=] [,iops_wr_max=] 
> > [,iothread=<1|0>] [,mbps=] [,mbps_max=] [,mbps_rd=] 
> > [,mbps_rd_max=] [,mbps_wr=]
> >[,mbps_wr_max=] [,media=] 
> > [,rerror=] [,secs=] [,serial=] 
> > [,size=] [,snapshot=<1|0>] [,trans=]
> >[,werror=]
> 
> 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 regular syntax (for VMs) is either
- "mystorage:volumeid" (for existing PVE managed volumes) or
- "/path/to/physical/block/device" (for pass-through of existing
  physical block devices not managed by the PVE storage layer)

there is a special case for allocating and assigning volumes in one go,
by giving either "N" or "mystorage:N" as "volume", this will allocate a
volume of size N GB (on "mystorage" or on "local" if omitted).

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

the size property tells you the size, not the other way round. the full
man page / documentation tells you this:

size=
  Disk size. This is purely informational and has no effect.

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

I agree. There is the new reference documentation which already contains
a lot more in-depth information about various areas of PVE:

http://pve.proxmox.com/pve-docs/

some parts of it are also available on the wiki in the category
"Reference Documentation".

contributions / feedback always welcome, see
http://pve.proxmox.com/pve-docs/pve-admin-guide.html#_improving_the_proxmox_ve_documentation

___
pve-user mailing list
pve-user@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user