Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have no idea, is it possible to run a virtual Red Hat server on a debian system?

If yes, how?

I have debian lenny.

Thank you

share|improve this question
up vote 2 down vote accepted

using xen, this isnt a real problem.

You have two choices. If you only want a redhat based system like fedora or centos, you can install the xen-tools package. You need these packages to run xen in lenny:

dpkg -l |grep xen
ii  libxenstore3.0                      3.2.1-2                  Xenstore communications library for Xen
ii  linux-image-2.6.26-2-xen-amd64      2.6.26-15                Linux 2.6.26 image on AMD64, oldstyle Xen support
ii  linux-modules-2.6.26-2-xen-amd64    2.6.26-15                Linux 2.6.26 modules on AMD64
ii  xen-hypervisor-3.2-1-amd64          3.2.1-2                  The Xen Hypervisor on AMD64
ii  xen-linux-system-2.6.26-2-xen-amd64 2.6.26-15                XEN system with Linux 2.6.26 image on AMD64
ii  xen-shell                           1.9-1                    Console based Xen administration utility
ii  xen-tools                           4.1-1                    Tools to manage Debian XEN virtual servers
ii  xen-utils-3.2-1                     3.2.1-2                  XEN administrative tools
ii  xen-utils-common                    3.2.0-2                  XEN administrative tools - common files
ii  xenstore-utils                      3.2.1-2                  Xenstore utilities for Xen

With xen-create-image you can choose a Distibution you want to install. Read the Doc, its quite simple.

Second way is, install a plain redhat on a system you prefer. Then create a new Xen conf and create a new "Harddisk" with lvm or use dd to create a file based Harddsik. (dd if=/dev/urandom of=/home/xen/myharddrive ...) Create a filesystem on the new "Harddisk"

mkfs.ext3 /your/created/disk/or/lvm/lvolume

Mount it: mount -o loop /your/created/disk/or/lvm/lvolume /mnt/target and copy the content of your redhat root partition to /mnt/target (preferrable you have it on a seperate usb disk which you can mount in your xen system to /mnt/src but thats not a need)

unmount /mnt/target

Boot your xen with your new redhat installation. Maybe you get some trouble with the Kernel (missing modules), maybe Redhat needs some stuff which is not in the actual xen kernel image in lenny, but this should not be a big problem.

You can also use any other virtulization software like virtual box, vmware ....

share|improve this answer
I will try this. Thank you. I will give an response when I'm done. – plucked Oct 20 '09 at 10:03
I explained the xen way, because you tagged your question for xen. I recommend not to setup redhat as your first system in xen. Just use xen-tools (they are great) to get a guest Debian running and play a little bit with the options. Get Networking to run etc. Take a look here: If your Debian guest is running as you like, do a next step with the redhat. I think this is a better way to firstly learn how xen works. your Redhat setup after this would become a lot easier after the testing with Debian. – evildead Oct 20 '09 at 11:58
Yeah I already created virtuals with debian. This was very easy. At the moment I'm tring to get information about the resources (red hat dvd image or something) to prepare a setup. – plucked Oct 20 '09 at 14:33

If you are asking this kind of question, then it means you are not the kind of person who will find it easy to set up XEN. I suggest that you look for the virtualbox-ose package which is available for lenny. It runs like an application with a GUI for creating virtual machines and managing the virtual hardware. Then get an ISO of a Redhat variant, or use a real CDROM if you have one, and install it into the virtual machine. You'll have to go into Settings and tell it what to attach to the virtual CD drive before you start up your virtual machine. 512k RAM should be enough to get Redhat installed and runnning.

share|improve this answer
No no, the point was, that I had no idea where to start. I setup the xen and I have no GUI on my server (o: – plucked Oct 20 '09 at 10:04
Duhh... that should read 512M of RAM, not k. No GUI? Do you have xm installed? Try reading through man xm – Michael Dillon Oct 20 '09 at 15:54

you check the following link lot of work around

share|improve this answer

I suggest that you look into KVM . It is the choice of virtualization for red hat in RHEL 5.4 and it is also available in Debian. The specific thing here is that you do not need a modified kernel to run the host and the virtual machine so you can use any OS that you wish as a guest. The KVM virtualization technology is built-in in the recent linux kernels, so you won't have to worry for any patching, custom kernels whatsoever. As Rajat suggested visit for specific tutorials. Oh and @Michael Dillon - i'm eager to see RH running with 512k RAM :D

share|improve this answer
I will try this. Thank you. I will give an response when I'm done. – plucked Oct 20 '09 at 10:02

You could look into Xen, VirtualBox, VMWare Workstation, or VMWare Server. One of them should work.

If you want the official "Red Hat", you will need to get that from Reg Hat. If you want an unofficial "Red Hat", you can try Fedora or Centos.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.