
5th September 2008, 15:54
|
|
Senior Member
|
|
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
|
|
Virtualizing a Physical Ubuntu Server
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.
|

6th September 2008, 11:53
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
To be honest, I've never tried to virtualize a physical machine with Xen...
|

6th September 2008, 16:56
|
|
Senior Member
|
|
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
|
|
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.
|

7th September 2008, 17:13
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
I've tried it with VMware (see http://www.howtoforge.com/vmware_con..._windows_linux ; works for Windows only), but not with any other virtualization solutions.
|

13th September 2008, 05:01
|
|
Senior Member
|
|
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
|
|
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?
|

14th September 2008, 17:58
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
I think it could work.
|

1st October 2008, 09:26
|
|
Junior Member
|
|
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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...
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 13:03.
|
Recent comments
7 hours 16 min ago
13 hours 57 min ago
17 hours 47 min ago
19 hours 26 min ago
1 day 3 hours ago
1 day 13 hours ago
1 day 14 hours ago
1 day 17 hours ago
1 day 22 hours ago
1 day 22 hours ago