[Fedora-xen] Reinstall host, guest management

Daniel P. Berrange berrange at redhat.com
Wed Oct 24 18:25:16 UTC 2007


On Wed, Oct 24, 2007 at 03:21:05PM -0200, Augusto Castelan Carlson wrote:
> Hi!
> 
> I have a server with two guests (all Fedora 7). Each one has its own partition.
> 
> host: /dev/hda1
> guest1: /dev/hda2
> guest2: /dev/hda3
> 
> Suppose that my host fail and I need to reinstall it. After
> reinstalling, how can I have access to my 2 guests using tools such as
> virt-manager/virsh/xm? or make them run as the were before the host
> failed.
> 
> When I installed both guests, no configuration file was created in /etc/xen

Just re-run  virt-install, passing in the /dev/hda2  as the guest file
system. When the installer pops up, instead of doing an install (which
would overwrite your guest), simply use 'virsh destroy' to shut it down
immediately. The neccessary guest config file should now have been created
so you can re-start with 'virsh start' as usual. 

I intend to add some form of 'virt-import' tool do make this more simple,
so you don't have to do the 'boot the installer & quit' trick.

Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 




More information about the Fedora-xen mailing list