public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] qm set in bytes
@ 2021-03-05 16:25 Gandalf Corvotempesta
  2021-03-05 16:55 ` Thomas Lamprecht
  0 siblings, 1 reply; 3+ messages in thread
From: Gandalf Corvotempesta @ 2021-03-05 16:25 UTC (permalink / raw)
  To: Proxmox VE development discussion

Ciao,
i'm almost done in creating a script to directly import a XenServer VM
storage to Proxmox (without exporting the XVA file, decompress,
convert and so on).

I just need to know how to create ad attach a ZFS volume to an
existing PVE VM, in bytes.
In example, my source disk is 4311744512 how can I create the same
exact zfs pool ?

"qm set" only allow a GB size and 4311744512/1024/1024/1024 result in
a 4GB image that is too small



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pve-devel] qm set in bytes
  2021-03-05 16:25 [pve-devel] qm set in bytes Gandalf Corvotempesta
@ 2021-03-05 16:55 ` Thomas Lamprecht
  2021-03-05 18:16   ` Gandalf Corvotempesta
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Lamprecht @ 2021-03-05 16:55 UTC (permalink / raw)
  To: Proxmox VE development discussion, Gandalf Corvotempesta

On 05.03.21 17:25, Gandalf Corvotempesta wrote:
> Ciao,
> i'm almost done in creating a script to directly import a XenServer VM
> storage to Proxmox (without exporting the XVA file, decompress,
> convert and so on).
> 
> I just need to know how to create ad attach a ZFS volume to an
> existing PVE VM, in bytes.
> In example, my source disk is 4311744512 how can I create the same
> exact zfs pool ?
> 
> "qm set" only allow a GB size and 4311744512/1024/1024/1024 result in
> a 4GB image that is too small

You can pass a floating point number, i.e., in this case:
4311744512/1024/1024/1024 == 4.015625

The image will then be rounded up with the target storage blocksize, if
it does not matches it exact.

hope that helps!

Thomas




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pve-devel] qm set in bytes
  2021-03-05 16:55 ` Thomas Lamprecht
@ 2021-03-05 18:16   ` Gandalf Corvotempesta
  0 siblings, 0 replies; 3+ messages in thread
From: Gandalf Corvotempesta @ 2021-03-05 18:16 UTC (permalink / raw)
  To: Thomas Lamprecht; +Cc: Proxmox VE development discussion

It's not rounded, i get an error saying i have to match the block size

Il ven 5 mar 2021, 17:55 Thomas Lamprecht <t.lamprecht@proxmox.com> ha
scritto:

> On 05.03.21 17:25, Gandalf Corvotempesta wrote:
> > Ciao,
> > i'm almost done in creating a script to directly import a XenServer VM
> > storage to Proxmox (without exporting the XVA file, decompress,
> > convert and so on).
> >
> > I just need to know how to create ad attach a ZFS volume to an
> > existing PVE VM, in bytes.
> > In example, my source disk is 4311744512 how can I create the same
> > exact zfs pool ?
> >
> > "qm set" only allow a GB size and 4311744512/1024/1024/1024 result in
> > a 4GB image that is too small
>
> You can pass a floating point number, i.e., in this case:
> 4311744512/1024/1024/1024 == 4.015625
>
> The image will then be rounded up with the target storage blocksize, if
> it does not matches it exact.
>
> hope that helps!
>
> Thomas
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-05 18:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 16:25 [pve-devel] qm set in bytes Gandalf Corvotempesta
2021-03-05 16:55 ` Thomas Lamprecht
2021-03-05 18:16   ` Gandalf Corvotempesta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal