[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-users] Run KVM guest on Xen
Thanks! I'll check using hvm xen guest.
On Fri, Dec 09, 2016 at 03:38:23PM +0000, Charles Gonçalves wrote:
> I have a lot of KVM guests that run a big benchmark that I had to port to
> Xen for my PHD experiments. I'm trying to test the migration of KVM guests
> to Xen to see if I avoid to reconfiguring all the system.
>
> Does anyone have successfully made this kind of migration?
>
> On my tests I couldn't make it work!
>
> Created and KVM guest using libvirt that used qcow disks and have the
> following configuration :
>
> <domain type='kvm'>
> <name>test</name>
> <uuid>8b86300d-8279-453e-88c3-958a10182597</uuid>
> <memory unit='KiB'>524288</memory>
> <currentMemory unit='KiB'>524288</currentMemory>
> <vcpu placement='static'>1</vcpu>
> <os>
> <type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>
> <boot dev='hd'/>
> </os>
> <features>
> <acpi/>
> <apic/>
> <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-spice</emulator>
> <disk type='file' device='disk'>
> <driver name='qemu' type='qcow2'/>
> <source file='/var/lib/uvtool/libvirt/images/test.qcow'/>
> <target dev='vda' bus='virtio'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
> function='0x0'/>
> </disk>
> <disk type='file' device='disk'>
> <driver name='qemu' type='raw'/>
> <source file='/var/lib/uvtool/libvirt/images/test-ds.qcow'/>
> <target dev='vdb' bus='virtio'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x05'
> function='0x0'/>
> </disk>
> <controller type='usb' index='0'>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
> function='0x2'/>
> </controller>
> <controller type='pci' index='0' model='pci-root'/>
> <interface type='network'>
> <mac address='52:54:00:d0:74:26'/>
> <source network='default'/>
> <model type='virtio'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
> function='0x0'/>
> </interface>
> <serial type='pty'>
> <target port='0'/>
> </serial>
> <console type='pty'>
> <target type='serial' port='0'/>
> </console>
> <input type='mouse' bus='ps2'/>
> <input type='keyboard' bus='ps2'/>
> <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'>
> <listen type='address' address='127.0.0.1'/>
> </graphics>
> <video>
> <model type='cirrus' vram='16384' heads='1'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
> function='0x0'/>
> </video>
> <memballoon model='virtio'>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
> function='0x0'/>
> </memballoon>
> </devices>
> </domain>
>
>
> Then tryied to port the guest out of the box just changing to xen libvirt
> config file:
>
> <domain type='xen'>
> <name>testmig</name>
> <uuid>8b86300d-8279-453e-88c3-958a10182597</uuid>
> <memory unit='KiB'>524288</memory>
> <currentMemory unit='KiB'>524288</currentMemory>
> <vcpu placement='static'>1</vcpu>
> <bootloader>/usr/lib/xen-4.6/bin/pygrub</bootloader>
> <os>
> <type arch='x86_64' machine='xenpv'>linux</type>
Machine should be xenhvm or something similar, if you want to port a KVM guest
to Xen. And then you can remove cmdline below I guess (note that I've never
used libvirt).
I don't see anything else obviously wrong in the rest of the file, although
there could be other things missing that I don't know of.
Roger.
--
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
https://lists.xen.org/xen-users
|