Linux.com

Home Learn Linux Linux Answers Xen: I sit possible to convert a real server into a virtual server?
Answers
  • I haven't seen any automated way to do this, perhaps someone else has, but here's an idea. I've never done this, personally, but it should be possible to do it this way, even if it sounds a bit convoluted:

    Install the xen guest kernel on the bare-metal system, so that it will be available to boot to when you get it over to the VM

    Make an image of the partitions on the bare-metal system using dd or any of the other cloning tools to a network accessible filesystem. (sshfs, nfs, whatever)

    Setup your VM, making sure that you have adequate space on the virtual disk for the partitions from the bare-metal system

    Boot the VM off of a live CD iso with the required tools to re-create the partitions from the images you created.

    Mount the remote filesystem where you saved the images.

    Write the images to the VM's "disk"

    Answered by isaac
    5 years ago
    0 2
  • Few tools around for making these tasks, none of them work for each thing, if you've your customized server with your own installation it's better to be scared by standard tools.
    Here's want I'll do if I'm in your shoes:
    - Install your debian server, customize it and install XEN as you normally do
    - Create your virtual appliances inside XEN and prepare them for the boot
    - Use clonezilla (http://clonezilla.org/) or similar tools to clone your machines, clonezilla and this category of tools doesn't care about virtual/physical machines, they simply clone your machine

    Then you've your own cloned machine as virtual, some more thoughts about it:
    - I personally use clonezilla because I'm happy with it, it's a suite of clone application, you can use whatever you want (personally I prefer UDP Cast, it simply rocks)
    - If you don't want to install packages inside your existent or new Centos server you can simply boot these servers with clonezilla live cds, they simply need to clone them with UDPCast
    - As the name says, UDPCast floods your disk in your net in UDP packets, use it in a private net (not the corporate one) if you want to leave, when you start flooding you'll run into troubles if you need the network for something else

    Hope it helps

    Answered by ben
    5 years ago
    0 1
  • You might want to look at the following

    [url]http://et.redhat.com/~rjones/virt-p2v/virt-p2v.1.html[/url]

    Answered by didar
    5 years ago
    1 0
  • Try this:
    http://helpdeskgeek.com/virtualization/convert-a-physical-server-to-xen-virtual-server-p2v/

    Answered by kunal
    5 years ago
    1 0
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category Root

Upcoming Linux Foundation Courses

  1. LFD320 Linux Kernel Internals and Debugging
    03 Nov » 07 Nov - Virtual
    Details
  2. LFS416 Linux Security
    03 Nov » 06 Nov - Virtual
    Details
  3. LFS426 Linux Performance Tuning
    10 Nov » 13 Nov - Virtual
    Details

View All Upcoming Courses

Community Answers - Search


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board