Re: [libvirt-users] Why cannot block copy local storage to network disk

2017-07-25 Thread wyang
On 2017年07月25日 17:17, Peter Krempa wrote: On Tue, Jul 18, 2017 at 15:33:24 +0200, Martin Kletzander wrote: On Tue, Jul 18, 2017 at 06:06:45PM +0800, wyang wrote: Hi, guys I was executing the following command to lively migrate local storage to network storage, [root@192-168-152-51 ~]# v

[libvirt-users] automatically reverting to a snapshot

2017-07-25 Thread Dirty Dan
How can I automatically revert to a snapshot after the guest is stopped?/etc/libvirt/hooks/qemu #!/bin/sh name="$1" action=""money">$2" if [ "$name" = "name" ]; then  virsh snapshot-revert "$name" --snapshotname "snapshot1" fiI tried this which resulted in a deadlock, then I saw the warning further

Re: [libvirt-users] About seclabel configure,Migrate error

2017-07-25 Thread Michal Privoznik
On 07/25/2017 04:16 AM, wrote: > libvirt > version: 3.4.0 > architecture: x86_64 ubuntu16.04-server > hypervisor: kvm,qemu > > When migrate vm, I encounter error: > "Migrate VM virt21 failed unsupported configuration: Unable to find security > driver for model apparmor" > but two host are s

Re: [libvirt-users] how libvirt create virbr0

2017-07-25 Thread Michal Privoznik
On 07/25/2017 04:36 AM, wrote: > libvirt > version: 3.4.0 > architecture: x86_64 ubuntu16.04-server > hypervisor: kvm,qemu > > when install libvirt from ubuntu distribution deb install libvirt, a virtual > bridge virbr0 will be create . But when I build libvirt from souce code, how > can I

Re: [libvirt-users] transient configure turn to persistent configure

2017-07-25 Thread Peter Krempa
On Tue, Jul 25, 2017 at 09:50:29 +0800, 露露 wrote: > libvirt > version: 3.4.0 > architecture: x86_64 ubuntu16.04-server > hypervisor: kvm,qemu > > I call virDomainCreate create a transient vm, After a period of time ,I call > virDomainDestroy, the vm configure is stil exist, the vm turn to persist

Re: [libvirt-users] memory snapshot save error

2017-07-25 Thread Peter Krempa
On Tue, Jul 25, 2017 at 09:39:22 +0800, 露露 wrote: > libvirt > version: 3.4.0 > architecture: x86_64 ubuntu16.04-server > hypervisor: kvm,qemu > > when I want make a memery snapshot for a vm ,and I call virsh save ,but tell > me this error: > error: Failed to save domain 177 to /datapool/mm.img >

Re: [libvirt-users] Why cannot block copy local storage to network disk

2017-07-25 Thread Peter Krempa
On Tue, Jul 18, 2017 at 15:33:24 +0200, Martin Kletzander wrote: > On Tue, Jul 18, 2017 at 06:06:45PM +0800, wyang wrote: > >Hi, guys > > > >I was executing the following command to lively migrate local storage to > >network storage, > > > >[root@192-168-152-51 ~]# virsh blockcopy > >a75056