Re: Recover a Guest win7 on Fedora KVM.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/30/2017 03:43 PM, Rick Stevens wrote:
> On 11/30/2017 03:28 PM, Lucélio Gomes de Freitas wrote:
>> Hi,
>>
>> Need help.
>>
>> I lost the host Fedora25 when the Virtual machine(win7) was off.
>> I installed Fedora 25 on a new 1TB disk. Now I can mount the old root
>> and home on the new Fedora25. How to recover the win7 guest machine?
> 
> Assuming you were using qemu under libvirt on F25 and still have the F25
> disk, you can mount that disk and look in its "/etc/libvirt/qemu"
> directory. The configuration for the guest machine will be in one of
> those xml files. For my old Win7 platform, it's in the
> "/etc/libvirt/qemu/Win7.xml" file.
> 
> Copy that to the new F25's spot and also examine the xml file for the
> name of the Win7 virtual disk. In my case:
> 
>   <devices>
>     <emulator>/usr/bin/qemu-kvm</emulator>
>     <disk type='file' device='disk'>
>       <driver name='qemu' type='raw'/>
>       <source file='/var/lib/libvirt/images/Win7.img'/>
>       <target dev='hda' bus='ide'/>
>       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>     </disk>
>  ...
> 
> So the virtual drive is the "/var/lib/libvirt/images/Win7.img" file
> and it's in "raw" format (as opposed to "qcow2" or some other format).
> Copy that file from the F25 disk to the same spot on the new F25 disk
> and you should be good to go.

I should have also asked...why are you sticking to F25? It goes end-of-
life in about 6 months. You should have upgraded to at least F26.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-           Blech!  ACKth!  Ooop!  -- Bill the Cat (Outland)         -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux