[libvirt] Is there an API for clone?
Hi, guys I know there is a command "virt-clone", but I couldn't find the equivalent API here : http://libvirt.org/html/libvirt-libvirt.html So, is there an API to clone an existing VM or not? Thank you! Regards 2010-11-10 Lancer
于 2010年11月10日 09:30, 黄亮 写道:
Hi, guys I know there is a command "virt-clone", but I couldn't find the equivalent API here : http://libvirt.org/html/libvirt-libvirt.html So, is there an API to clone an existing VM or not? Thank you! Regards 2010-11-10 ------------------------------------------------------------------------ Lancer
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list not currently...
- Osier
Oops... Well, thank you for your reply Regards 2010-11-10 Lancer 发件人: Osier Yang 发送时间: 2010-11-10 12:19:34 收件人: libvir-list 抄送: 主题: Re: [libvirt] Is there an API for clone? 于 2010年11月10日 09:30, 黄亮 写道: > Hi, guys > I know there is a command "virt-clone", but I couldn't find the > equivalent API here : http://libvirt.org/html/libvirt-libvirt.html > So, is there an API to clone an existing VM or not? > Thank you! > Regards > 2010-11-10 > ------------------------------------------------------------------------ > Lancer > > > > -- > libvir-list mailing list > libvir-list@redhat.com > https://www.redhat.com/mailman/listinfo/libvir-list not currently... - Osier -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
On Wed, Nov 10, 2010 at 09:30:28AM +0800, 黄亮 wrote:
Hi, guys
I know there is a command "virt-clone", but I couldn't find the equivalent API here : http://libvirt.org/html/libvirt-libvirt.html So, is there an API to clone an existing VM or not?
The virt-clone tool is implemented by running a large number of individual libvirt APIs. There's no API that does everything in one go, because that would be an application specific use case. Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
On Wed, Nov 10, 2010 at 10:42:27AM +0000, Daniel P. Berrange wrote:
On Wed, Nov 10, 2010 at 09:30:28AM +0800, 黄亮 wrote:
Hi, guys
I know there is a command "virt-clone", but I couldn't find the equivalent API here : http://libvirt.org/html/libvirt-libvirt.html So, is there an API to clone an existing VM or not?
The virt-clone tool is implemented by running a large number of individual libvirt APIs. There's no API that does everything in one go, because that would be an application specific use case.
In addition you can't clone a VM just using libvirt APIs: https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-... On Windows you'd probably want to run the sysprep program. This is a bug in the virt-clone tool: https://bugzilla.redhat.com/show_bug.cgi?id=524269 And for completeness: https://bugzilla.redhat.com/show_bug.cgi?id=638188 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top
On Wed, Nov 10, 2010 at 09:30:28AM +0800, 黄亮 wrote:
Hi, guys
I know there is a command "virt-clone", but I couldn't find the equivalent API here : http://libvirt.org/html/libvirt-libvirt.html So, is there an API to clone an existing VM or not?
The virt-clone tool is implemented by running a large number of individual libvirt APIs. There's no API that does everything in one go, because that would be an application specific use case. In addition you can't clone a VM just using libvirt APIs: https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-... On Windows you'd probably want to run the sysprep program. This is a bug in the virt-clone tool: https://bugzilla.redhat.com/show_bug.cgi?id=524269 And for completeness: https://bugzilla.redhat.com/show_bug.cgi?id=638188 Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many
Hi Richard, Thank you for your information, I'll look into it. Regards 2010-11-12 Lancer 发件人: Richard W.M. Jones 发送时间: 2010-11-11 06:21:04 收件人: Daniel P. Berrange 抄送: 黄亮; libvir-list 主题: Re: [libvirt] Is there an API for clone? On Wed, Nov 10, 2010 at 10:42:27AM +0000, Daniel P. Berrange wrote: powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top __________ Information from ESET Smart Security, version of virus signature database 5608 (20101110) __________ The message was checked by ESET Smart Security. http://www.eset.com
Hi, Daniel So, do you mean if I wanna accomplish the task of clone, I should use a batch of APIs ? Regards 2010-11-12 Lancer 发件人: Daniel P. Berrange 发送时间: 2010-11-10 18:42:35 收件人: 黄亮 抄送: libvir-list 主题: Re: [libvirt] Is there an API for clone? On Wed, Nov 10, 2010 at 09:30:28AM +0800, 黄亮 wrote:
Hi, guys
I know there is a command "virt-clone", but I couldn't find the equivalent API here : http://libvirt.org/html/libvirt-libvirt.html So, is there an API to clone an existing VM or not? The virt-clone tool is implemented by running a large number of individual libvirt APIs. There's no API that does everything in one go, because that would be an application specific use case. Regards, Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| __________ Information from ESET Smart Security, version of virus signature database 5606 (20101110) __________ The message was checked by ESET Smart Security. http://www.eset.com
participants (4)
-
Daniel P. Berrange -
Osier Yang -
Richard W.M. Jones -
黄亮