Hi, Anyone has any suggestions on programs, utility or instructions on how to convert a physical server to domU VM? Thanks, Simon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Anyone has any suggestions on programs, utility or instructions on how to convert a physical server to domU VM? Thanks, Simon --------------------------------------------- I like Leostream P2V - it works well. Also there is a company called Platespin that provides a P2V manager as well. Also - as an FYI - Leostream provides (or did very recently) a free trial P2V. -PK _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I would dd the server''s hard drive to an image file. Its probably the most straightforward way. dd if=/dev/sda of=server.img use your servers hard drive device node in place of /dev/sda then write up a domU config: # general name = "newVM"; memory = 1024; # booting kernel = "/boot/vmlinuz-2.6.x-xenU"; ramdisk = "/boot/initrd-ifyouhaveone"; builder = "linux"; # virtual harddisk disk = [''tap:aio:/xvmstore/images/vmThree.img,sda,w'']; root = "/dev/sda1 ro"; #or whatever your root partition is -Joe On Wednesday 22 August 2007 16:54:06 Simon Gao wrote:> Hi, > > Anyone has any suggestions on programs, utility or instructions on how > to convert a physical server to domU VM? > > Thanks, > > Simon > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- --- Joseph Smith smithj@iivip.com (402)476-8786 x391 Linux IT Specialist _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Joseph Smith wrote:> I would dd the server''s hard drive to an image file. Its probably the most > straightforward way. > > > > dd if=/dev/sda of=server.img > > use your servers hard drive device node in place of /dev/sda > > then write up a domU config: > > # general > name = "newVM"; > memory = 1024; > > # booting > kernel = "/boot/vmlinuz-2.6.x-xenU"; > ramdisk = "/boot/initrd-ifyouhaveone"; > builder = "linux"; > > # virtual harddisk > disk = [''tap:aio:/xvmstore/images/vmThree.img,sda,w'']; > root = "/dev/sda1 ro"; #or whatever your root partition is > > > -Joe >It''s hard to use dd if the drive is very large. When making an VM, I only want to system OS/Apps in one vms image file. Extra disk space can be made available from second vm image or partition. Simon _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You could mount the partitions, and then copy over the files using cp. A little slow, but it''s free. --John Simon Gao wrote:> Joseph Smith wrote: >> I would dd the server''s hard drive to an image file. Its probably the most >> straightforward way. >> >> >> >> dd if=/dev/sda of=server.img >> >> use your servers hard drive device node in place of /dev/sda >> >> then write up a domU config: >> >> # general >> name = "newVM"; >> memory = 1024; >> >> # booting >> kernel = "/boot/vmlinuz-2.6.x-xenU"; >> ramdisk = "/boot/initrd-ifyouhaveone"; >> builder = "linux"; >> >> # virtual harddisk >> disk = [''tap:aio:/xvmstore/images/vmThree.img,sda,w'']; >> root = "/dev/sda1 ro"; #or whatever your root partition is >> >> >> -Joe >> > It''s hard to use dd if the drive is very large. When making an VM, I > only want to system OS/Apps in one vms image file. Extra disk space can > be made available from second vm image or partition. > > Simon > > _______________________________________________ > 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
Hi, I hope I am not intruding this thread too much, but I am watching this thread with vested interests. I have been trying to port some running Linux RedHat4/Suse9/Suse10 servers as guest VMs but without success. Each time it complains "Boot loader didn''t return any data!" Do you need to do anything after copying the running Linux root file system into the image to make that bootable? I have also noted you are specifying in your configuration: kernel = "/boot/vmlinuz-2.6.x-xenU"; ramdisk = "/boot/initrd-ifyouhaveone"; Are these kernel and ramdisk set-ups referring to the Dom0 kernel, as the running Linux servers are not using a "xen" version of kernel. I am using Suse 10.2 as Dom0 server, the above two lines are replaced by a DomULoader: bootloader = ''/usr/lib/xen/boot/domUloader.py'' bootentry = ''hda1:/boot/vmlinuz-xen,/boot/initrd-xen'' But still the problem persists... Peter -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Joseph Smith Sent: 22 August 2007 23:00 To: xen-users@lists.xensource.com Subject: Re: [Xen-users] Convert physical server to VM I would dd the server''s hard drive to an image file. Its probably the most straightforward way. dd if=/dev/sda of=server.img use your servers hard drive device node in place of /dev/sda then write up a domU config: # general name = "newVM"; memory = 1024; # booting kernel = "/boot/vmlinuz-2.6.x-xenU"; ramdisk = "/boot/initrd-ifyouhaveone"; builder = "linux"; # virtual harddisk disk = [''tap:aio:/xvmstore/images/vmThree.img,sda,w'']; root = "/dev/sda1 ro"; #or whatever your root partition is -Joe On Wednesday 22 August 2007 16:54:06 Simon Gao wrote:> Hi, > > Anyone has any suggestions on programs, utility or instructions on how > to convert a physical server to domU VM? > > Thanks, > > Simon > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- --- Joseph Smith smithj@iivip.com (402)476-8786 x391 Linux IT Specialist _______________________________________________ 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
Hi, rsync works great on production enviroments, I had paravirtualized some servers with these method: rsync -ave ssh --exclude=/proc --exclude=/sys --exclude=/dev (if you are using udev) root@runingserver:/ /mnt/newserverimage/ after this: mkdir /mnt/newserverimages/proc mkdir /mnt/newserverimages/sys mkdir /mnt/newserverimages/dev review your fstab, and copy the kernel modules: cp -pr /lib/modules/2.6.16-xenU /mnt/newserverimages/lib/modules/ more or less .... this is the way Also I have full virtualitzed some old GNU/Linux boxes with kernels 2.4, I used GNU/Linux live CD on the old box and dd utility: dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd of=/dev/vg00/newvserver" I hope it will be helpfull Marc Simon Gao wrote:> Hi, > > Anyone has any suggestions on programs, utility or instructions on how > to convert a physical server to domU VM? > > Thanks, > > Simon > > _______________________________________________ > 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
Hi, And what about converting Windows physical hosts to VMs :) -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Marc Patino Gómez Sent: 23 August 2007 12:05 To: Simon Gao Cc: xen-users@lists.xensource.com Subject: Re: [Xen-users] Convert physical server to VM Hi, rsync works great on production enviroments, I had paravirtualized some servers with these method: rsync -ave ssh --exclude=/proc --exclude=/sys --exclude=/dev (if you are using udev) root@runingserver:/ /mnt/newserverimage/ after this: mkdir /mnt/newserverimages/proc mkdir /mnt/newserverimages/sys mkdir /mnt/newserverimages/dev review your fstab, and copy the kernel modules: cp -pr /lib/modules/2.6.16-xenU /mnt/newserverimages/lib/modules/ more or less .... this is the way Also I have full virtualitzed some old GNU/Linux boxes with kernels 2.4, I used GNU/Linux live CD on the old box and dd utility: dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd of=/dev/vg00/newvserver" I hope it will be helpfull Marc Simon Gao wrote:> Hi, > > Anyone has any suggestions on programs, utility or instructions on how > to convert a physical server to domU VM? > > Thanks, > > Simon > > _______________________________________________ > 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, I have no experience about converting Windows physical hosts to XEN hosts :( In my modest opinion, I think this is the way: - Create a LVM on the xen server with the same or more space than the windows HD. - Shutdown windows machine. - Boot windows box with a GNU/Linux LiveCD - Copy all the windows HD with dd: dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd of=/dev/vg00/vmwindows" - Then pray :) and hope windows boot correctly, my knowledge about windows is poor :( . Probably, in a few days I will try to do it. I try this steps with some old GNU/Linux boxes, with kernels 2.4 and it works correctly. Regards, Marc Ian Tobin wrote:> Hi, > > And what about converting Windows physical hosts to VMs :) > > > > -----Original Message----- > From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Marc Patino Gómez > Sent: 23 August 2007 12:05 > To: Simon Gao > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Convert physical server to VM > > Hi, > > rsync works great on production enviroments, I had paravirtualized some > servers with these method: > > rsync -ave ssh --exclude=/proc --exclude=/sys --exclude=/dev (if you are > using udev) root@runingserver:/ /mnt/newserverimage/ > > after this: > > mkdir /mnt/newserverimages/proc > > mkdir /mnt/newserverimages/sys > > mkdir /mnt/newserverimages/dev > > review your fstab, and copy the kernel modules: > > cp -pr /lib/modules/2.6.16-xenU /mnt/newserverimages/lib/modules/ > > more or less .... this is the way > > Also I have full virtualitzed some old GNU/Linux boxes with kernels 2.4, > I used GNU/Linux live CD on the old box and dd utility: > > > dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd > of=/dev/vg00/newvserver" > > I hope it will be helpfull > > > Marc > > Simon Gao wrote: > >> Hi, >> >> Anyone has any suggestions on programs, utility or instructions on how >> to convert a physical server to domU VM? >> >> Thanks, >> >> Simon >> >> _______________________________________________ >> 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 > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, Chiu, PCM (Peter) wrote:> Hi, there, > > I am watching this thread with interest. > > Marc, can you repeat the actual steps you do to set up Linux guest VMs, > especially the ones using 2.4 kernels. > > I have tried similar steps you mentioned, apart from the cp -pr /lib/modules > into the guest OS disk, but when I start up the guest VM, it complains >If you are going to "full virtualitzed" a linux box you don''t need to copy the kernel''s modules, you will use the unmodified old OS kernel ones, and the old kernel (of course).> "boot loader didn''t return any data!" >Have you copy the full HD? or only the partition?> It looks like something is missing to turn the root copied file system to be bootable > as a guest VM. > > Thanks. > > Peter >Good luck Peter, Marc> -----Original Message----- > From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Marc Patino Gómez > Sent: 23 August 2007 12:05 > To: Simon Gao > Cc: xen-users@lists.xensource.com > Subject: Re: [Xen-users] Convert physical server to VM > > Hi, > > rsync works great on production enviroments, I had paravirtualized some servers with these method: > > rsync -ave ssh --exclude=/proc --exclude=/sys --exclude=/dev (if you are using udev) root@runingserver:/ /mnt/newserverimage/ > > after this: > > mkdir /mnt/newserverimages/proc > > mkdir /mnt/newserverimages/sys > > mkdir /mnt/newserverimages/dev > > review your fstab, and copy the kernel modules: > > cp -pr /lib/modules/2.6.16-xenU /mnt/newserverimages/lib/modules/ > > more or less .... this is the way > > Also I have full virtualitzed some old GNU/Linux boxes with kernels 2.4, I used GNU/Linux live CD on the old box and dd utility: > > > dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd > of=/dev/vg00/newvserver" > > I hope it will be helpfull > > > Marc > > Simon Gao wrote: > >> Hi, >> >> Anyone has any suggestions on programs, utility or instructions on how >> to convert a physical server to domU VM? >> >> Thanks, >> >> Simon >> >> _______________________________________________ >> 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 >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
2007/8/22, Kilburn, Preston <preston.kilburn@adamaircraft.com>:> I like Leostream P2V - it works well. Also there is a company called > Platespin that provides a P2V manager as well. Also - as an FYI - > Leostream provides (or did very recently) a free trial P2V.I read that the agent is compatible with Xensource 3.2. Is it compatible with the community edition? Thanks. -- Alessandro R. NOTICE This message is for the named person''s use only and it''s confidential. If you receive this message in error, please immediately delete it and and notify the sender. Thank you. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, the problem is that you only copy the filesystem with tar command. You must copy the FULL disc, to do this follow use dd, as I post before dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd of=/xen/images/myimage.img" so the process will be: 1- dd if=/dev/zero of=image.img bs=1M count=4096 (if you have a 4GB HD, if your physical HD is 4GB) remember, the image must be at least the same size than your original HD) 2- stop old box, and boot with a LiveCD 3- Copy the disc to your XEN server dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd of=/xen/images/myimage.img" Good luck, Marc Chiu, PCM (Peter) wrote:> Thanks, Marc, for your speedy response. > > I was hoping to set up a guest VM on existing Suse9/10 and Redhat4/5 systems. > > Still, I use tar to copy the whole of the root directory tree on a running Linux system > into the loop mounted image. > > Here are the steps I took: > dd if=/dev/zero of=image bs=1k seek=10240k count=1 > mkfs -t ext3 image > mount -o loop image /mnt/temp > cd /mnt/temp > ssh remote "tar -zaxHS -f - /" | tar -zxpf - > cd > umount /mnt/temp > > I then use Yast2 xen to create a guest VM configuration > and start it. But it fails with the "Boot loader didn''t return any data" error. > > I also tried to re-create a vm configuration file by copying a working Suse 10.2 one, > but still hit the same fault. > > So I suspect something is missing to make the above image to be bootable. > > Any idea? > > Peter > -----Original Message----- > From: Marc Patino Gómez [mailto:mpatino@es.clara.net] > Sent: 23 August 2007 14:24 > To: Chiu, PCM (Peter) > Cc: Simon Gao; xen-users@lists.xensource.com > Subject: Re: [Xen-users] Convert physical server to VM > > > Hi, > > Chiu, PCM (Peter) wrote: > >> Hi, there, >> >> I am watching this thread with interest. >> >> Marc, can you repeat the actual steps you do to set up Linux guest >> VMs, especially the ones using 2.4 kernels. >> >> I have tried similar steps you mentioned, apart from the cp -pr >> /lib/modules into the guest OS disk, but when I start up the guest VM, >> it complains >> >> > If you are going to "full virtualitzed" a linux box you don''t need to copy the kernel''s modules, you will use the unmodified old OS kernel ones, and the old kernel (of course). > >> "boot loader didn''t return any data!" >> >> > > Have you copy the full HD? or only the partition? > >> It looks like something is missing to turn the root copied file system >> to be bootable as a guest VM. >> >> Thanks. >> >> Peter >> >> > > Good luck Peter, > > Marc > >> -----Original Message----- >> From: xen-users-bounces@lists.xensource.com >> [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Marc >> Patino Gómez >> Sent: 23 August 2007 12:05 >> To: Simon Gao >> Cc: xen-users@lists.xensource.com >> Subject: Re: [Xen-users] Convert physical server to VM >> >> Hi, >> >> rsync works great on production enviroments, I had paravirtualized some servers with these method: >> >> rsync -ave ssh --exclude=/proc --exclude=/sys --exclude=/dev (if you >> are using udev) root@runingserver:/ /mnt/newserverimage/ >> >> after this: >> >> mkdir /mnt/newserverimages/proc >> >> mkdir /mnt/newserverimages/sys >> >> mkdir /mnt/newserverimages/dev >> >> review your fstab, and copy the kernel modules: >> >> cp -pr /lib/modules/2.6.16-xenU /mnt/newserverimages/lib/modules/ >> >> more or less .... this is the way >> >> Also I have full virtualitzed some old GNU/Linux boxes with kernels 2.4, I used GNU/Linux live CD on the old box and dd utility: >> >> >> dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd >> of=/dev/vg00/newvserver" >> >> I hope it will be helpfull >> >> >> Marc >> >> Simon Gao wrote: >> >> >>> Hi, >>> >>> Anyone has any suggestions on programs, utility or instructions on >>> how to convert a physical server to domU VM? >>> >>> Thanks, >>> >>> Simon >>> >>> _______________________________________________ >>> 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 >> >> > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, remenber, there exist 2 kinds of virtualization in XEN: - paravirtualization - full virtualization we are talking about "full virtualitzation" (unmodified guest) no? In full virtualization you needs something thats seems a real disc, with MBR, partition table, partitions with corresponding filesystems... the only way that I know to copy all this is with dd command. What version of Xen are you using? I don''t have any file named domUloader.py :S Regards, Marc Chiu, PCM (Peter) wrote:> Thanks, Marc, > > This is different from what is described on the Xen V3.0 User''s Manual Page 34, > where it shows a selection of root file system files are copied. > > Probably there is where it gets wrong. > > On the other hand, some of our existing kits are having a root file system > being partitioned off a RAIDed storage, so the whole disk (/dev/sda) is in Terabyte large. > > I shall your method first, which I believe will also copy the boot block info. > This process will take some time. > > Can I also check one thing with you. > My current vm configuration file is a copy of an Suse 10.2 guest configuration. > This contains the following bootloader info: > > > bootloader = ''/usr/lib/xen/boot/domUloader.py'' > bootentry = ''hda1:/boot/vmlinuz-xen,/boot/initrd-xen'' > > Bearing in mind, the guest Linux VM does not have /boot/vmlinuz-xen and /boot/initrd-xen > in its own /boot folder. Shall I change them to: > kernel = "/boot/vmlinuz" > ramdisk = "/boot/initrd" > > to reflect the actual kernel and ramdisk residing on the guest /boot folder? > > Peter > > > -----Original Message----- > From: Marc Patino Gómez [mailto:mpatino@es.clara.net] > Sent: 23 August 2007 15:25 > To: Chiu, PCM (Peter) > Cc: Simon Gao; xen-users@lists.xensource.com > Subject: Re: [Xen-users] Convert physical server to VM > > Hi, > > the problem is that you only copy the filesystem with tar command. You must copy the FULL disc, to do this follow use dd, as I post before > > dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd of=/xen/images/myimage.img" > > > so the process will be: > > 1- dd if=/dev/zero of=image.img bs=1M count=4096 (if you have a 4GB HD, if your physical HD is 4GB) > remember, the image must be at least the same size than your original HD) > > 2- stop old box, and boot with a LiveCD > > 3- Copy the disc to your XEN server > dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd of=/xen/images/myimage.img" > > > Good luck, > > Marc > > Chiu, PCM (Peter) wrote: > >> Thanks, Marc, for your speedy response. >> >> I was hoping to set up a guest VM on existing Suse9/10 and Redhat4/5 systems. >> >> Still, I use tar to copy the whole of the root directory tree on a >> running Linux system into the loop mounted image. >> >> Here are the steps I took: >> dd if=/dev/zero of=image bs=1k seek=10240k count=1 mkfs -t ext3 image >> mount -o loop image /mnt/temp cd /mnt/temp ssh remote "tar -zaxHS -f - >> /" | tar -zxpf - cd umount /mnt/temp >> >> I then use Yast2 xen to create a guest VM configuration and start it. >> But it fails with the "Boot loader didn''t return any data" error. >> >> I also tried to re-create a vm configuration file by copying a working >> Suse 10.2 one, but still hit the same fault. >> >> So I suspect something is missing to make the above image to be bootable. >> >> Any idea? >> >> Peter >> -----Original Message----- >> From: Marc Patino Gómez [mailto:mpatino@es.clara.net] >> Sent: 23 August 2007 14:24 >> To: Chiu, PCM (Peter) >> Cc: Simon Gao; xen-users@lists.xensource.com >> Subject: Re: [Xen-users] Convert physical server to VM >> >> >> Hi, >> >> Chiu, PCM (Peter) wrote: >> >> >>> Hi, there, >>> >>> I am watching this thread with interest. >>> >>> Marc, can you repeat the actual steps you do to set up Linux guest >>> VMs, especially the ones using 2.4 kernels. >>> >>> I have tried similar steps you mentioned, apart from the cp -pr >>> /lib/modules into the guest OS disk, but when I start up the guest >>> VM, it complains >>> >>> >>> >> If you are going to "full virtualitzed" a linux box you don''t need to copy the kernel''s modules, you will use the unmodified old OS kernel ones, and the old kernel (of course). >> >> >>> "boot loader didn''t return any data!" >>> >>> >>> >> Have you copy the full HD? or only the partition? >> >> >>> It looks like something is missing to turn the root copied file >>> system to be bootable as a guest VM. >>> >>> Thanks. >>> >>> Peter >>> >>> >>> >> Good luck Peter, >> >> Marc >> >> >>> -----Original Message----- >>> From: xen-users-bounces@lists.xensource.com >>> [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Marc >>> Patino Gómez >>> Sent: 23 August 2007 12:05 >>> To: Simon Gao >>> Cc: xen-users@lists.xensource.com >>> Subject: Re: [Xen-users] Convert physical server to VM >>> >>> Hi, >>> >>> rsync works great on production enviroments, I had paravirtualized some servers with these method: >>> >>> rsync -ave ssh --exclude=/proc --exclude=/sys --exclude=/dev (if you >>> are using udev) root@runingserver:/ /mnt/newserverimage/ >>> >>> after this: >>> >>> mkdir /mnt/newserverimages/proc >>> >>> mkdir /mnt/newserverimages/sys >>> >>> mkdir /mnt/newserverimages/dev >>> >>> review your fstab, and copy the kernel modules: >>> >>> cp -pr /lib/modules/2.6.16-xenU /mnt/newserverimages/lib/modules/ >>> >>> more or less .... this is the way >>> >>> Also I have full virtualitzed some old GNU/Linux boxes with kernels 2.4, I used GNU/Linux live CD on the old box and dd utility: >>> >>> >>> dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd >>> of=/dev/vg00/newvserver" >>> >>> I hope it will be helpfull >>> >>> >>> Marc >>> >>> Simon Gao wrote: >>> >>> >>> >>>> Hi, >>>> >>>> Anyone has any suggestions on programs, utility or instructions on >>>> how to convert a physical server to domU VM? >>>> >>>> Thanks, >>>> >>>> Simon >>>> >>>> _______________________________________________ >>>> 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 >>> >>> >>> >> >> > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> I have no experience about converting Windows physical hosts to XEN > hosts :( In my modest opinion, I think this is the way: > > - Create a LVM on the xen server with the same or more space than the > windows HD. > - Shutdown windows machine. > - Boot windows box with a GNU/Linux LiveCD > - Copy all the windows HD with dd: > > dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd > of=/dev/vg00/vmwindows" > > - Then pray :) and hope windows boot correctly, my knowledge about > windows is poor :( .Interesting. ¿And what''s about product like http://www.platespin.com/products/powerconvert/? I''ve not tried it, but it sound great. However, personally I prefer an old and reliable tools as dd ;) -- Thanks, Jordi Espasa Clofent _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Based on something I read the other day Platespin is only compatible with XEN 3.1. They need the new block driver since the files they produce are for VMware,. I could be wrong (happens to me alot) On 8/25/07, Jordi Espasa Clofent <sistemes.llistes@intergrid.cat> wrote:> > > I have no experience about converting Windows physical hosts to XEN > > hosts :( In my modest opinion, I think this is the way: > > > > - Create a LVM on the xen server with the same or more space than the > > windows HD. > > - Shutdown windows machine. > > - Boot windows box with a GNU/Linux LiveCD > > - Copy all the windows HD with dd: > > > > dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd > > of=/dev/vg00/vmwindows" > > > > - Then pray :) and hope windows boot correctly, my knowledge about > > windows is poor :( . > > Interesting. > > ¿And what''s about product like > http://www.platespin.com/products/powerconvert/? > > I''ve not tried it, but it sound great. However, personally I prefer an > old and reliable tools as dd ;) > > -- > Thanks, > Jordi Espasa Clofent > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Rob Aronson Storage, Virtualization and Orchestration Practice Manager, Novacoast USA _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Chiu, Sorry for this late answer. Chiu, PCM (Peter) wrote:> Good morning, Marc, > > The dd copy completed last night. > I set up a fully virtualised VM using that image. >Great!> The VM gets started, and picks up the boot block. > It then complains about the video mode, but allows me to use scan to pick up the 80x24 screen mode. > > The next thing it does is to decompressing Linux, which it said "done". > But when it tries to boot kernel, it hangs there. >Could you post kernel messages (more info is need to solve the problem) to the xen-mail-list? opening a new threat ? If you post your messages with a copy to the list, it could be useful to other users.> In this instance, the original guest system is using 2 x AMD 246 CPUs. > The Dom0 server is Intel Xeon 5160 cpus. > > Do you think this is the reason why the kernel booting hang? > > Peter >Regards, Marc _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> the problem is that you only copy the filesystem with tar command. You > must copy the FULL disc, to do this follow use dd, as I post before > > dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd > of=/xen/images/myimage.img" > > > so the process will be: > > 1- dd if=/dev/zero of=image.img bs=1M count=4096 (if you have a 4GB HD, > if your physical HD is 4GB) > remember, the image must be at least the same size than your original HD) > > 2- stop old box, and boot with a LiveCD > > 3- Copy the disc to your XEN server > dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd > of=/xen/images/myimage.img"¿Anyone has some experience with this method into a production environment? I''m looking for a tool/method to do it. -- Thanks, Jordi Espasa Clofent _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Jordi, I used this method to virtualize some GNU/Linux old boxes, the only problem is to shutdown the machine, boot with a LiveCD and make the dd, depending on the size of the HD, the downtime will be a problem. In some days, I will use this method to virtualize some FreeBSD servers... I cross my fingers :) Regards, Marc Jordi Espasa Clofent wrote:>> the problem is that you only copy the filesystem with tar command. >> You must copy the FULL disc, to do this follow use dd, as I post before >> >> dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd >> of=/xen/images/myimage.img" >> >> >> so the process will be: >> >> 1- dd if=/dev/zero of=image.img bs=1M count=4096 (if you have a 4GB >> HD, if your physical HD is 4GB) >> remember, the image must be at least the same size than your >> original HD) >> >> 2- stop old box, and boot with a LiveCD >> >> 3- Copy the disc to your XEN server >> dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd >> of=/xen/images/myimage.img" > > ¿Anyone has some experience with this method into a production > environment? I''m looking for a tool/method to do it. >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Jordi, Right now I am attempting the following procedure to move a Windows 2000 Server to a virtual machine: Create logical volume on Xen server Run ''nc -l -p 999 > /dev/xendisks/myserverdisk'' on Xen server Boot windows machine using Linux bootable CD. Run ''dd if=/dev/hda bs=1M | nc 192.168.100.13 999'' on Linux bootable CD Then wait So far this method is not working for me as I believe there is something wrong with the hard drive I am reading from. I receive hda IO errors when I reach around 5gigs transferred. I am also looking into using partimage to create an image of the drive, transfer that to my Xen server and put the image into my logical volume. Hope this helps in some way. Regards, Dan On 8/28/07, Jordi Espasa Clofent <sistemes.llistes@intergrid.cat> wrote:> > > the problem is that you only copy the filesystem with tar command. You > > must copy the FULL disc, to do this follow use dd, as I post before > > > > dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd > > of=/xen/images/myimage.img" > > > > > > so the process will be: > > > > 1- dd if=/dev/zero of=image.img bs=1M count=4096 (if you have a 4GB HD, > > if your physical HD is 4GB) > > remember, the image must be at least the same size than your original > HD) > > > > 2- stop old box, and boot with a LiveCD > > > > 3- Copy the disc to your XEN server > > dd if=/dev/hda | ssh root@xenserver.foo.com "/bin/dd > > of=/xen/images/myimage.img" > > ¿Anyone has some experience with this method into a production > environment? I''m looking for a tool/method to do it. > > -- > Thanks, > Jordi Espasa Clofent > > _______________________________________________ > 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