Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

due to these two problems I've coped

http://serverfault.com/questions/133578/not-able-to-install-g-and-gcc-on-debian

also there is another link but due to my low reputation I couldn't put it through.

I just wondering whether the hosted operating system (XEN) has any relation to its guest operating system or not?

and when I type uname -r on my VPS it shows : 2.6.18-164.9.1.el5xen

where as my installed O/S on my vps is debian 5.04

regards.

share|improve this question

2 Answers 2

As far as I can tell, there is no relation between host (dom0) and guest (domU). For dom0, you can even use NetBSD or OpenSolaris, while running a Linux domU. The kernels used need to have the appropriate modifications, however.

For Linux, the dom0 server patches have not been incorporated in the kernel. The last kernel with those patches is 2.6.18, but you can find a kernel with patches readily applied until about 2.6.24 (Ubuntu 8.04 can be a dom0). Patches for newer kernels (if available) have to be applied manually and you have to recompile the kernel. Also, there is now the transition to Xen4, which it seems it will integrate better with Linux.

On the other hand, the patches for the domU have been incorporated into the mainline kernel since 2.6.23, so any recent kernel can be a domU. It is just a matter if the distribution you are using has the package for it.

There is actually a potential dependency between host and guest, i.e. the guest kernel may be stored in the host disk (the traditional way), hence you cannot upgrade the kernel, the hosting company has to do it for you, unless they use pygrub.

share|improve this answer
    
so what you are saying is , there is some dependency between host and guest. do you know why I'm asking this question? it is just because of these weird problem that I've faced with specially the last one (not able to install gcc) if you see my last comment on that post you gonna see there were a problem with kernel but still I don't get it , was it my fault(as a guest host) or my company's fualt? regards. –  austin powers Apr 20 '10 at 9:58

In a very loose sense, most any Linux kernel can run with the userland for any distro. You can compile your own kernel from the mainline sources and run it with your standalone Debian or Ubuntu box if you have the know-how. In the general case it is very possible for the host to have your VPS running a RHEL kernel but Debian userland. In part, this is likely to protect themselves security-wise by ensuring that you are running an up-to-date kernel.

I had a long discussion of the differences between PV/HVM and Xen 3.x vs Xen 4.0.0 but that doesn't seem to be your problem in this case.

share|improve this answer

Your Answer

 
discard

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.