[libvirt-users] live migration

hcyy caiyanyang at yahoo.com.cn
Wed Jul 11 01:18:18 UTC 2012


thank you!could you show me a xml example for live migration?I think maybe i have something wrong in it?it is my xml :<domain type='kvm'>  <name>vm12</name>  <uuid>7d620b81-ab66-a1df-9d36-38df867c3108</uuid>  <memory>5000000</memory>  <currentMemory>5000000</currentMemory>  <vcpu>2</vcpu>  <os>    <type arch='x86_64' machine='pc-1.0'>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>restart</on_crash>  <devices>    <emulator>/usr/bin/kvm</emulator>    <disk type='file' device='disk'>      <driver name='qemu' type='qcow2'/>      <source file='/share/vm12.img'/>      <target dev='vda' bus='virtio'/>      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>    </disk>    <interface type='bridge'>      <mac address='52:54:00:20:ca:c1'/>     
 <source bridge='br0'/>      <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'/>    <graphics type='vnc' port='5912' autoport='no' keymap='en-us'/>    <sound model='ich6'>      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>    </sound>    <video>      <model type='cirrus' vram='9216' 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>           --- 12年7月10日,周二, Eric Blake <eblake at redhat.com> 写道:

发件人: Eric Blake <eblake at redhat.com>
主题: Re: [libvirt-users] live migration
收件人: "hcyy" <caiyanyang at yahoo.com.cn>
抄送: libvirt-users at redhat.com
日期: 2012年7月10日,周二,下午9:19

On 07/10/2012 06:46 AM, hcyy wrote:
> Hello, everybody.     I use NFS to do live migration。After input  virsh
> --connect=qemu:///system --quiet migrate --live vm12 qemu+tcp://pcmk-1/system  (vm12  is vm name,/pcmk-1 is host name)it use almost 10s for preparation. During the 10s,the vm is still runing and can ping other vm. But if i input mkdir pcmk-6 in vm during the 10s,it say :mkdir: cannot create directory `pcmk-6': Read-only file system.     Anybody can tell me this situation is due to my wrong configure or libvirt cannot mkdir during migration?thanks!

The act of migration should not be guest-visible, so if you are seeing a
read-only directory from within your guest, it is most likely some other
issue and not migration itself that caused the problem.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120711/0471c452/attachment.htm>


More information about the libvirt-users mailing list