Try disabling selinux ("setenforce 0" I think)
You may need to have separate directory for backups to avoid this problem (or 
set up a correct selinux conf)

----- Mail original -----

> Hi,

> Today I finally could activate the logs, so I tried again to save a
> running guest. When I type "virsh save balance
> /var/lib/libvirt/images/lol.img", the following output is written in
> the balance VM log file (/var/log/libvirt/qemu/balance.log):

> sh: cannot create /var/lib/libvirt/images/lol.img: Permission denied

> I tried chmod 777 in target folder, but it made no difference. What
> user/group/permissions should I use in target directory, where the
> state file will be saved?

> Thanks in advance. ;]

> -----
> Att,
> Bruno Menezes

> On Wed, Apr 13, 2011 at 9:00 AM, Bruno Lamps < [email protected] >
> wrote:

> > Hi,
>

> > Yesterday, I've run this command with cron, so I wasn't able to see
> > if virsh save worked OK. Now I tried it in the terminal and virsh
> > save isn't working, I think the problem happens before virsh
> > restore. =D
>

> > I typed virsh save balance /backup/b.20110313, and the terminal is
> > locked for 20 minutes now, nothing happened. Where can I see some
> > log of what is happening? I've pasted here what I did today in
> > terminal:
>

> > lamps@ubunteira:~$ virsh
>
> > Bem vindo ao virsh, terminal interativo de virtualização.
>

> > Digite: "help" para ajuda com comandos
>
> > "quit" para sair
>

> > virsh # list --all
>
> > Id Nome Estado
>
> > ----------------------------------
>
> > - balance desligado
>

> > - bfw-t1 desligado
>
> > - bunta11 desligado
>
> > - firebunta-t3 desligado
>
> > - zeus desligado
>

> > virsh # start balance
>
> > Domínio balance iniciado
>

> > virsh # list all
>
> > erro: dado "all" inesperado
>

> > virsh # list --all
>
> > Id Nome Estado
>
> > ----------------------------------
>
> > 1 balance executando
>

> > - bfw-t1 desligado
>
> > - bunta11 desligado
>
> > - firebunta-t3 desligado
>
> > - zeus desligado
>

> > virsh # save balance /backup/b.20110413
>

> > On Tue, Apr 12, 2011 at 6:18 PM, Eric Blake < [email protected] >
> > wrote:
>

> > > On 04/12/2011 03:01 PM, Bruno Lamps wrote:
> >
>
> > > > Hi,
> >
>
> > > >
> >
>
> > > > I tested the virsh save / copy / virsh restore scheme, but my
> > > > VM
> > > > wasn't able
> >
>
> > > > to restore. =~
> >
>
> > > > I tried 2 diferent syntaxes, but with these commands my VM
> > > > keeps
> > > > paused. The
> >
>
> > > > following output is printed in the terminal:
> >
>
> > > >
> >
>
> > > > lamps@ubunteira:~$ virsh restore balance
> >
>
> > > > erro: Falha ao restaurar o domínio a partir de balance
> >
>
> > > > erro: operation failed: cannot read domain image
> >
>

> > > Did you name the file "balance" in the 'virsh save domain file'
> > > step?
> >
>
> > > 'virsh restore' expects that file name, not a domain name.
> >
>

> > > > lamps@ubunteira:~$ sudo virsh restore /backup/balance.memo
> >
>
> > > > [sudo] password for lamps:
> >
>
> > > > erro: Falha ao restaurar o domínio a partir de
> > > > /backup/balance.memo
> >
>
> > > > erro: Requested operation is not valid: domain is already
> > > > active
> > > > as
> >
>
> > > > 'balance'
> >
>

> > > 'virsh restore' restarts the domain; therefore, if you have
> >
>
> > > independently restarted the domain in the meantime, then virsh
> > > restore
> >
>
> > > can't do it's job.
> >
>

> > > Furthermore, 'virsh save domain file' should not leave the domain
> >
>
> > > paused, but should actually change it over to 'shut down'. It may
> > > help
> >
>
> > > if you paste your entire session of what you tried, rather than
> > > just
> > > the
> >
>
> > > tail end of it.
> >
>

> > > --
> >
>
> > > Eric Blake [email protected] +1-801-349-2682
> >
>
> > > Libvirt virtualization library http://libvirt.org
> >
>

> _______________________________________________
> virt-tools-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/virt-tools-list
_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to