migrating a running linux installation to a xen guest
Submitted by ramez hanna on Thu, 01/10/2008 - 14:10
i only tested thes instructions on Ubuntu, but it should work with any distro for the sake of this post we will call a running linux distro "pmachine" and a xen guest "vmachine"
- you need t otake a copy of the installation of the pmachine, this could be done in two ways
- create vmachine "data disk" as explained in xen-vmachine-howto
- copy all files from the pmachine backup to the new data disk
- remove the /boot directory of the vmachine data disk
- copy /lib of the pmachine to /lib of the vmachine
- create the xen guest config file
- and you should be done
this will create a vmachine based on the pmachine but with a different kernel (a generic kernel provided by your xen host)if you want to have the same kernel of the pmachine, then you will have to
- install a xen kernel into the pmachine
- copy over all contens of the /boot of the pmachine to /boot of the xen host
- use the kernel image copied over from the pmachine as the kernel of the vmachine in the xen guest config file
- do not copy /lib to the vmachine
- ramez hanna's blog
- Add new comment
- 1159 reads
Tags:

Recent comments
40 weeks 1 day ago
40 weeks 1 day ago
40 weeks 1 day ago
1 year 6 days ago
2 years 8 weeks ago
2 years 31 weeks ago