Re: Importing kvm vm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 28, 2009 at 09:45:26AM -0400, David H. Vree wrote:
> 
> >Try this for a starting point
> >
> >
> ><domain type='kvm'>
> >  <name>My WinXP</name>
> >  <memory>2048000</memory>
> >  <currentMemory>2048000</currentMemory>
> >  <vcpu>2</vcpu>
> >  <os>
> >    <type arch='i686'>hvm</type>
> >  </os>
> >  <features>
> >    <acpi/>
> >    <pae/>
> >  </features>
> >  <clock offset='utc'/>
> >  <on_poweroff>destroy</on_poweroff>
> >  <on_reboot>restart</on_reboot>
> >  <on_crash>destroy</on_crash>
> >  <devices>
> >    <emulator>/usr/bin/kvm</emulator>
> >    <disk type='file' device='disk'>
> >      <source file='/some/path/to/mywinxp.qcow2'/>
> >      <target dev='hda' bus='ide'/>
> >    </disk>
> >    <interface type='user'>
> >      <mac address='00:00:00:00:00:00'/>
> >    </interface>
> >    <input type='mouse' bus='ps2'/>
> >    <graphics type='sdl'/>
> >  </devices>
> ></domain>
> >  
> Thanks a lot, that worked.  For what it is worth I tried a couple 
> different versions of virt-install and they didn't work for different 
> reasons that have already been reported.  It would be awesome if 
> virt-manager could provide and "import" capability someday.  Keep up the 
> good work.

The next version of libvirt will include an API and virsh command
for converting from QEMU  ARGV, into libvirt XML. This is what
I actually used to generate the XML I gave you above - after I
had fixed the bugs your example ARGV identified in our conversion
code :-)  Conversion of existing KVM args into XML can't be totally
automatic though - it'll likely always need some manual fine tuning,
so won't be wired up into virt-manager UI. virt-manager though
*should* get the ability to create a new VM with its wizard,
without having to go through the installer again.

Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux