Re: Importing kvm vm

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

 



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.
> 

An easier way to import VMs via virt-manager is on our roadmap.

FYI, this could have been done fairly easily via latest virt-install
(0.400.3) as well, via the --import option:

virt-install --name MyWinXP --ram 2048 --vcpus 2 --accelerate --network
user --sound --sdl --import --disk path=mywinxp.qcow2

- Cole

_______________________________________________
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