Re: help - recovering virtual machine

2010-01-03 Thread Suvayu Ali

Hi Gene,

On Sunday 03 January 2010 08:40 PM, Mail Lists wrote:

On 01/03/2010 10:43 PM, suvayu ali wrote:


Try /etc/libvirt/qemu for the xml files.



  Holy smoke - you're right!!

  I never woulda guessed it would be in /etc ... who would have thunk!!!
Shouldn't it be in /var/lib or whatever?



Technically speaking, all settings stuff go to /etc and the xml files 
would probably be considered settings for the virtual machines.


I would suggest look into the virsh interactive command line to manage 
your virtual machines. Its way more efficient compared to the gui. To 
open one, try `virsh --connect qemu:///system'. You can see all the 
commands with `help' and more specifics about every commands with `help 
'.



  Thank you!



I found this the hard way about a week back. Hope this helps you. And 
Happy New Year to all. :)

--
Suvayu

Open source is the future. It sets us free.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: help - recovering virtual machine

2010-01-03 Thread Mail Lists
On 01/03/2010 10:43 PM, suvayu ali wrote:
> Hi Gene,
> 

> Try /etc/libvirt/qemu for the xml files.
> 

 Holy smoke - you're right!!

 I never woulda guessed it would be in /etc ... who would have thunk!!!
Shouldn't it be in /var/lib or whatever?

 Thank you!

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: help - recovering virtual machine

2010-01-03 Thread suvayu ali
Hi Gene,

2010/1/3 Mail Lists :
> On 01/03/2010 08:10 AM, Tom Horsley wrote:
>> the vm ?
>>
>> The simplest way is to regularly backup your machine definitions
>> via "virsh dumpxml name > name.xml", then you can recover the
>> machine definition via "virsh define name.xml". If you can still
>> boot f11, that would be the way to go.
>
>  I have backups of the entire disk but cannot still boot f11. Is that
> .xml file stored somewhere ?
>
>  I looked in /var/lib/libvirt/ but didnt find anything useful
>

Try /etc/libvirt/qemu for the xml files.

-- 
Suvayu

Open source is the future. It sets us free.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: help - recovering virtual machine

2010-01-03 Thread Mail Lists

  While I am still unable to find the original .xml files on the backup
- I did find a log file in root/.virt-manager which has the xml
definitions from when they were created.

  Then Tom's virsh define should now work if I copy the lines from log
to a .xml file.

   Thanks for help!

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: help - recovering virtual machine

2010-01-03 Thread Mail Lists
On 01/03/2010 10:50 AM, Tom Horsley wrote:
> On Sun, 03 Jan 2010 10:29:14 -0500
> Mail Lists wrote:
> 
>>   I have backups of the entire disk but cannot still boot f11. Is that
>> .xml file stored somewhere ?
> 
> Libvirt itself stashes all its info in some random place, God knows
> where :-). 

  Was hoping someone aside from him/her might know!! I suspect its
buried in the registry somewhere.

>>
If you really have an complete disk image of f11, you might
> be able to chroot to it, start libvirtd, and do the dumpxml command
> that way :-).

 I dont have a disk image - i have rdiff-backup's.

> 
> If your runs of the XP image with the qemu command line work with
> no activation problems, you can probably tweak the new machine
> definition xml to match the qemu command line, since basically all
> the xml does is define the things it will pass to qemu (you just
> have to guess how to translate things :-). More or less complete
> docs for the xml appear at libvirt.org.

  Ug.
> 

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: help - recovering virtual machine

2010-01-03 Thread Tom Horsley
On Sun, 03 Jan 2010 10:29:14 -0500
Mail Lists wrote:

>   I have backups of the entire disk but cannot still boot f11. Is that
> .xml file stored somewhere ?

Libvirt itself stashes all its info in some random place, God knows
where :-). If you really have an complete disk image of f11, you might
be able to chroot to it, start libvirtd, and do the dumpxml command
that way :-).

If your runs of the XP image with the qemu command line work with
no activation problems, you can probably tweak the new machine
definition xml to match the qemu command line, since basically all
the xml does is define the things it will pass to qemu (you just
have to guess how to translate things :-). More or less complete
docs for the xml appear at libvirt.org.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: help - recovering virtual machine

2010-01-03 Thread Mail Lists
On 01/03/2010 08:10 AM, Tom Horsley wrote:
> the vm ?
> 
> The simplest way is to regularly backup your machine definitions
> via "virsh dumpxml name > name.xml", then you can recover the
> machine definition via "virsh define name.xml". If you can still
> boot f11, that would be the way to go.

  I have backups of the entire disk but cannot still boot f11. Is that
.xml file stored somewhere ?

 I looked in /var/lib/libvirt/ but didnt find anything useful

> 
> The error-prone, will probably force you to re-activate windows, way
> is to define a new virtual machine with virt-manager, and when
> it gets to the disk image part, say "use existing", then "browse local",
> then point it at your existing image file. When it boots from
> the iso image, use "force off", then you should be able to boot
> from the disk image and maybe it will be back.
> 

 Yeh ok .. thanks for your help

 gene

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: help - recovering virtual machine

2010-01-03 Thread Tom Horsley
On Sun, 03 Jan 2010 00:33:40 -0500
Mail Llists wrote:

>   What do I need to do/recover from backups - so that virt-manager sees
> the vm ?

The simplest way is to regularly backup your machine definitions
via "virsh dumpxml name > name.xml", then you can recover the
machine definition via "virsh define name.xml". If you can still
boot f11, that would be the way to go.

The error-prone, will probably force you to re-activate windows, way
is to define a new virtual machine with virt-manager, and when
it gets to the disk image part, say "use existing", then "browse local",
then point it at your existing image file. When it boots from
the iso image, use "force off", then you should be able to boot
from the disk image and maybe it will be back.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: help - recovering virtual machine

2010-01-02 Thread Mail Llists
On 01/03/2010 12:33 AM, Mail Llists wrote:
> 
>   I have an image file with everything I need installed on it.
> 
>   It was running fine in f11 (has win xp in it).
> 
>   I intalled f12.
> 
>   What do I need to do/recover from backups - so that virt-manager sees
> the vm ?
> 

 I should add I can run the image fine from command line (qemu-kvm) - I
just dont know how to get it managed by virt-manager again like it was.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines