Hi all, What''s the best way to take an already running linux install and either paravirtualize or fully virtualize it? I''ve got a linux box that has too many custom installs, etc... that would take forever to redo. My goal would be to move it to the hypervisor machine thats running a few guests. - Brian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Thu, 18 Dec 2008, Brian Krusic wrote:> Hi all, > > What''s the best way to take an already running linux install and either > paravirtualize or fully virtualize it?On some of the newer xens they actually have a utility to do this but if you just have vanilla xen 3.1 or so, 1) rsync the current contents of your bare-metal machine to a new partition on the machine that is running a xen-enabled kernel 2) Mount the partition, chroot, and install a xen-enabled domU kernel in the partition 3) Change network files as necessary to show you are on a xen instance. 4) start up and go. Steve Timm> > I''ve got a linux box that has too many custom installs, etc... that would > take forever to redo. > > My goal would be to move it to the hypervisor machine thats running a few > guests. > > - Brian > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- ------------------------------------------------------------------ Steven C. Timm, Ph.D (630) 840-8525 timm@fnal.gov http://home.fnal.gov/~timm/ Fermilab Computing Division, Scientific Computing Facilities, Grid Facilities Department, FermiGrid Services Group, Assistant Group Leader. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2008-Dec-19 05:21 UTC
Re: [Xen-users] existing linux install and xen
I hope it will be useful for you! It works for me! ;-) You will not forget any files this way! Just make sure you don''t have any other scripts, for example in, /etc/init.d or /etc/rcS.d mounting some encrypted devices (aka /etc/cryptab)... nevertheless, if all your file system are mounted via /etc/fstab (''mount -a'' at boot time), this procedure works... you must enable your raid volumes and LVM, if your have it, to access your root file system and the other partitions on Ubuntu LiveCD session, one by one.... The steps are simple, if you want, I hope I can help! Best regards, Thiago 2008/12/18 Brian Krusic <brian@krusic.com>> wow, thanks man. > very cool procedure, i like it! > > thanks again. > - Brian > > > > On Dec 18, 2008, at 5:08 PM, Thiago Camargo Martins Cordeiro wrote: > > Hi! > > I use a Ubuntu Desktop LiveCD every time I need to do this task... > > 1) Boot the LiveCD on your server to convert it; > 2) mount the root file system of your server on /mnt; > 3) run "cat /mnt/etc/fstab" to see others partitions; > 4) mount /usr, /var, /home, etc, of your server under /mnt; > 5) Use nfs-kernel-server package to export ALL mounted filesystens to your > Hypervisor; > > 6) On your Hypervisor, create your new virtual hard disc of your domU (I > use LVM2); > 7) mount your new empty partitions under, for example, new root on /target, > /target/usr, /target/home (on dom0); > 8) still on dom0, do "mkdir /source"; > 9) mount your exported dirs by the LiveCD under /source, /source/usr, > /source/bleh...; > 10) now, copy all files from /source to /target with: "cd /source; cp -a * > /target". > > Before boot your new virtualized server, you must copy the kernel modules, > do: > > cp /lib/modules/`uname -r` /target/lib/modules > > Configure xen console... > Configure your /etc/xen/domU.cfg, etc... and boot it! > > I hope help! > > Thiago > > 2008/12/18 Brian Krusic <brian@krusic.com> > >> Hi all, >> >> What''s the best way to take an already running linux install and either >> paravirtualize or fully virtualize it? >> >> I''ve got a linux box that has too many custom installs, etc... that would >> take forever to redo. >> >> My goal would be to move it to the hypervisor machine thats running a few >> guests. >> >> - Brian >> >> >> >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thiago Camargo Martins Cordeiro
2008-Dec-19 19:45 UTC
Fwd: [Xen-users] existing linux install and xen
forwarding to the list again! [?] ---------- Forwarded message ---------- From: Thiago Camargo Martins Cordeiro <thiagocmartinsc@gmail.com> Date: 2008/12/18 Subject: Re: [Xen-users] existing linux install and xen To: Brian Krusic <brian@krusic.com> Hi! I use a Ubuntu Desktop LiveCD every time I need to do this task... 1) Boot the LiveCD on your server to convert it; 2) mount the root file system of your server on /mnt; 3) run "cat /mnt/etc/fstab" to see others partitions; 4) mount /usr, /var, /home, etc, of your server under /mnt; 5) Use nfs-kernel-server package to export ALL mounted filesystens to your Hypervisor; 6) On your Hypervisor, create your new virtual hard disc of your domU (I use LVM2); 7) mount your new empty partitions under, for example, new root on /target, /target/usr, /target/home (on dom0); 8) still on dom0, do "mkdir /source"; 9) mount your exported dirs by the LiveCD under /source, /source/usr, /source/bleh...; 10) now, copy all files from /source to /target with: "cd /source; cp -a * /target". Before boot your new virtualized server, you must copy the kernel modules, do: cp /lib/modules/`uname -r` /target/lib/modules Configure xen console... Configure your /etc/xen/domU.cfg, etc... and boot it! I hope help! Thiago 2008/12/18 Brian Krusic <brian@krusic.com> Hi all,> > What''s the best way to take an already running linux install and either > paravirtualize or fully virtualize it? > > I''ve got a linux box that has too many custom installs, etc... that would > take forever to redo. > > My goal would be to move it to the hypervisor machine thats running a few > guests. > > - Brian > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users