[Fedora-xen] Migrating An OS Installation from a Physical Machine to a Xen Paravirtual Guest
Adrian Chadd
adrian at creative.net.au
Tue Apr 3 01:59:15 UTC 2007
On Tue, Apr 03, 2007, Graham Jenkins wrote:
> On Tue, 2007-04-03 at 09:28 +0800, Adrian Chadd wrote:
> > On Tue, Apr 03, 2007, Graham Jenkins wrote:
> > > It has been said that it's possible to do the above. Does anybody have
> > > details of how one might go about it? It's easy enough to create, then
> > > extract from .. tar images.
> > >
> > > But I can't figure how to do the grub stuff. Suggestions?
> >
> > Do you need to use py-grub?
> >
> > All my migrations worked fine - move the entire OS into an LVM, install the
> > Xenified kernel inside the VM and in dom0 so the kernel can boot from dom0
> > and the modules can load inside domU; install Xen-happy libraries so you
> > don't get hit by the massive amounts of logging the Redhat/fedora kernels do
> > when dealing with fixing up segment hacks.
> >
> > I haven't had (yet) to use py-grub.
>
> OK .. but how do you make the FC6 Xen kernel access physical partions.
> Something like:
> --
> disk = [ 'phy:VolumeGroup00/ng2Root,sda1,w',
> 'phy:VolumeGroup00/ng2Swap,sda2,w']
disk = [ 'phy:data/XEN_cindy_root,sda1,w', 'phy:data/XEN_cindy_swap,sda2,w' ]
Linux hosting-2 2.6.18-1.2257.fc5xen0 #1 SMP Fri Dec 15 17:35:10 EST 2006 i686 athlon i386 GNU/Linux
Watch your domU dmesg and make sure that there's no errors relating
unmatched Xen devices or such; you need to be sure the domU
has the Xen block and network devices loaded (the Xen block device
being loaded in initrd or compiled into the kernel!) or your
domU won't be able to mount the root device.
Adrian
More information about the Fedora-xen
mailing list