public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] Direct migration from XenServer to PVE
@ 2021-01-27  9:13 Gandalf Corvotempesta
  2021-01-28 15:55 ` Thomas Lamprecht
  0 siblings, 1 reply; 3+ messages in thread
From: Gandalf Corvotempesta @ 2021-01-27  9:13 UTC (permalink / raw)
  To: PVE development discussion

Ciao,
i'm the author of this simple tool: https://github.com/guestisp/xen-to-pve

it works by exporting a XenServer DomU directly to PVE in one phase,
there is no need to export, extract, join each chunks and so. Just
call it and a new image file is made.

But there is one issue that i'm unable to resolve: the image should be
imported with "qm import"
This lead to loss of time (an additional step is needed) and space
wasted (the image coming from XenServer should be stored somewhere on
PVE and then imported).

I would like to write directly to the ZFS volume .
Can someone tell me how to do that or , even better, make a PR ?

I'm not interested in the ownership of the project, if useful, you
could add that in PVE natively, the only missing thing is writing
directly in the volume during the extraction.

Tnx



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

* Re: [pve-devel] Direct migration from XenServer to PVE
  2021-01-27  9:13 [pve-devel] Direct migration from XenServer to PVE Gandalf Corvotempesta
@ 2021-01-28 15:55 ` Thomas Lamprecht
  2021-01-31 13:06   ` Gandalf Corvotempesta
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Lamprecht @ 2021-01-28 15:55 UTC (permalink / raw)
  To: Proxmox VE development discussion, Gandalf Corvotempesta

Ciao,

On 27.01.21 10:13, Gandalf Corvotempesta wrote:
> Ciao,
> i'm the author of this simple tool: https://github.com/guestisp/xen-to-pve
> 
> it works by exporting a XenServer DomU directly to PVE in one phase,
> there is no need to export, extract, join each chunks and so. Just
> call it and a new image file is made.
> 
> But there is one issue that i'm unable to resolve: the image should be
> imported with "qm import"
> This lead to loss of time (an additional step is needed) and space
> wasted (the image coming from XenServer should be stored somewhere on
> PVE and then imported).
> 
> I would like to write directly to the ZFS volume .

Would it be enough if `qm importdisk` would accept stdin as source as long
as the image size explicitly passed as a paramter?

As that'd seem reasonable and help with other import issues too as one
could just pipe the data over ssh from the source server directly into
importdisk, no intermediate required.


> Can someone tell me how to do that or , even better, make a PR ?
> 

If above is OK then adding special handling to use stdin for when $source
equals "-" and adding a new "size" parameter, which is in general optional
but required for the "-" case.

That change should be limited to editing the CLI definition[0] and the
method doing the actual import[1].

cheers,
Thomas

[0]: https://git.proxmox.com/?p=qemu-server.git;a=blob;f=PVE/CLI/qm.pm;h=1aa273f39a373594eea0c1dc866e6b245d97e99e;hb=HEAD#l443
[1]: https://git.proxmox.com/?p=qemu-server.git;a=blob;f=PVE/QemuServer/ImportDisk.pm;h=51ad52eab43ebad24a104de116dc5eea88587c7a;hb=HEAD





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

* Re: [pve-devel] Direct migration from XenServer to PVE
  2021-01-28 15:55 ` Thomas Lamprecht
@ 2021-01-31 13:06   ` Gandalf Corvotempesta
  0 siblings, 0 replies; 3+ messages in thread
From: Gandalf Corvotempesta @ 2021-01-31 13:06 UTC (permalink / raw)
  To: Thomas Lamprecht; +Cc: Proxmox VE development discussion, Dominic Jaeger

Il giorno gio 28 gen 2021 alle ore 16:55 Thomas Lamprecht
<t.lamprecht@proxmox.com> ha scritto:
> Would it be enough if `qm importdisk` would accept stdin as source as long
> as the image size explicitly passed as a paramter?

Sorry for the late reply

I think yes.
I need a refactor on my side but yes, I think i can work with that,
directly piping to "qm import"



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

end of thread, other threads:[~2021-01-31 13:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27  9:13 [pve-devel] Direct migration from XenServer to PVE Gandalf Corvotempesta
2021-01-28 15:55 ` Thomas Lamprecht
2021-01-31 13:06   ` 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