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<br><br>virsh # list --all<br>

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

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

  1 balance              executando<br>  - bfw-t1               desligado<br>  - bunta11              desligado<br>  - firebunta-t3         desligado<br>  - zeus                 desligado<br><br>virsh # save balance /backup/b.20110413<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">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 class="im">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 class="im"><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 class="h5"><br>
--<br>
Eric Blake   <a href="mailto:eblake@redhat.com">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>