Now that I have a Xen host server up and running, what is the best way to move a physical machine over to the Xen host? I have seen that there is the migrate command. But that appears to move a VM from one host to another. I thought maybe it is as simple as just copying the folders over one at a time. But I am not sure that would work since I would imagine the /boot folder would be different. Then there are differences in hardware between the two machines as well. Any suggestions? Otherwise, I will just have to build a similar setup as a VM and move the data files over. Thanks.
Falko, Does that imply you have never tried to virtualize a physical machine (i.e. you always perform clean builds) or that you haven't done it with Xen (i.e. you use another virtualization platform)? By the way, I have to say I really appreciate this site and the effort you put into it. I check it daily for updates and the help here is better than any other forum I have used. Thanks.
I've tried it with VMware (see http://www.howtoforge.com/vmware_converter_windows_linux ; works for Windows only), but not with any other virtualization solutions.
Falko, I have seen the utilities in VMware to convert physical machines to virtual machines. I guess I was thinking something more simple like just creating a VM in Xen with the default Ubuntu install. Then, I could copy the various folders (/boot, /home, /usr, etc) from the physical machine to the virtual machine. Does anyone think this method has any possibility of being successful?
greetings, heres my first noob post.. hope its reasonable.. What I would try is to be using physical disk partitions for the xen machine you want to create, not files on the existing filesystem. so create partitions of the right sizes for your virtual box. maybe you dont have disk spare? maybe loopback devices would be ok to use (I havent tried xen on loopback devices) then you mount the partitions you just created in the right config under /mnt so for the xen box, mount the / partition in /mnt then the /var partition under /mnt/var etc etc then you chroot into /mnt then you install the xen kernel you want so badly for it to work, setting up grub menu, initrd etc etc then you exit the chroot, dismount the partitions and try xm create virtualbox p.s. falko, if you had $1 for every time I hit your page on debian kernel compile, youd be rich, lol...