Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th September 2008, 15:54
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 6th September 2008, 11:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
Default

To be honest, I've never tried to virtualize a physical machine with Xen...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 6th September 2008, 16:56
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

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.
Reply With Quote
  #4  
Old 7th September 2008, 17:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 13th September 2008, 05:01
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

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?
Reply With Quote
  #6  
Old 14th September 2008, 17:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,726 Times in 2,565 Posts
Default

I think it could work.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 1st October 2008, 09:26
Brianaustin2019 Brianaustin2019 is offline
Junior Member
 
Join Date: Oct 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Cool 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...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What can be wrong martin_rudowicz Installation/Configuration 9 11th May 2008 19:42
cacti problem - graphs have huge gaps Chip Installation/Configuration 7 7th February 2008 23:24
MySql on Ubuntu 6.06 LTS Server Bubo Server Operation 7 5th January 2007 16:23
Ubuntu Server Installation Questions jacobrich Installation/Configuration 13 15th January 2006 18:36
Logging on to an ubuntu server DMJ HOWTO-Related Questions 3 8th January 2006 00:24


All times are GMT +2. The time now is 12:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.