I'm using ubuntu 10.10 in this system. I believe ubuntu doesn't come with selinux installed. =]<br><br><div class="gmail_quote">2011/4/15 Frédéric Grelot <span dir="ltr"><<a href="mailto:fredericg_99@yahoo.fr">fredericg_99@yahoo.fr</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-family:Times New Roman;font-size:12pt;color:#000000">Try disabling selinux ("setenforce 0"<span> I think)<br>

<span name="x"></span><span name="x"></span>You may need to have separate directory for backups to avoid this problem (or set up a correct selinux conf)<br></span><br><hr><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt">

<div><div></div><div class="h5">Hi,<br><br>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):<br>



<br>sh: cannot create /var/lib/libvirt/images/lol.img: Permission denied<br><br>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?<br>



<br>Thanks in advance. ;]<br><br>-----<br>Att,<br>Bruno Menezes<br><br><div class="gmail_quote">On Wed, Apr 13, 2011 at 9:00 AM, Bruno Lamps <span dir="ltr"><<a href="mailto:lampss@gmail.com" target="_blank">lampss@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>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<br>




<br>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:<br><br>




<br><br><br>lamps@ubunteira:~$ virsh<br>Bem vindo ao virsh, terminal interativo de virtualização.<br><br>Digite:  "help" para ajuda com comandos<br>       "quit" para sair<div><br><br>virsh # list --all<br>




 Id Nome                 Estado<br>----------------------------------<br></div>  - balance              desligado<div><br>  - bfw-t1               desligado<br>  - bunta11              desligado<br>  - firebunta-t3         desligado<br>




  - zeus                 desligado<br><br></div>virsh # start balance<br>Domínio balance iniciado<br><br>virsh # list all<br>erro: dado "all" inesperado<div><br>virsh # list --all<br> Id Nome                 Estado<br>



----------------------------------<br></div>
  1 balance              executando<div><br>  - bfw-t1               desligado<br>  - bunta11              desligado<br>  - firebunta-t3         desligado<br>  - zeus                 desligado<br><br></div>virsh # save balance /backup/b.20110413<div>



<div></div><div><br>
<br><br><br><br><div class="gmail_quote">On Tue, Apr 12, 2011 at 6:18 PM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>On 04/12/2011 03:01 PM, Bruno Lamps wrote:<br>
> Hi,<br>
><br>
> I tested the virsh save / copy / virsh restore scheme, but my VM wasn't able<br>
> to restore. =~<br>
> I tried 2 diferent syntaxes, but with these commands my VM keeps paused. The<br>
> following output is printed in the terminal:<br>
><br>
> lamps@ubunteira:~$ virsh restore balance<br>
> erro: Falha ao restaurar o domínio a partir de balance<br>
> erro: operation failed: cannot read domain image<br>
<br>
</div>Did you name the file "balance" in the 'virsh save domain file' step?<br>
'virsh restore' expects that file name, not a domain name.<br>
<div><br>
> lamps@ubunteira:~$ sudo virsh restore /backup/balance.memo<br>
> [sudo] password for lamps:<br>
> erro: Falha ao restaurar o domínio a partir de /backup/balance.memo<br>
> erro: Requested operation is not valid: domain is already active as<br>
> 'balance'<br>
<br>
</div>'virsh restore' restarts the domain; therefore, if you have<br>
independently restarted the domain in the meantime, then virsh restore<br>
can't do it's job.<br>
<br>
Furthermore, 'virsh save domain file' should not leave the domain<br>
paused, but should actually change it over to 'shut down'.  It may help<br>
if you paste your entire session of what you tried, rather than just the<br>
tail end of it.<br>
<div><div></div><div><br>
--<br>
Eric Blake   <a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>    +1-801-349-2682<br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
<br></div></div><div class="im">_______________________________________________<br>virt-tools-list mailing list<br><a href="mailto:virt-tools-list@redhat.com" target="_blank">virt-tools-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/virt-tools-list" target="_blank">https://www.redhat.com/mailman/listinfo/virt-tools-list</a></div>

</blockquote><br></div></div></blockquote></div><br>