View previous topic :: View next topic |
Author |
Message |
adrin n00b
Joined: 27 May 2006 Posts: 41
|
Posted: Wed Oct 19, 2011 10:02 pm Post subject: Xen on OpenVZ |
|
|
This question is probably stupid , but is it possible to run a Xen-based virtual machine on OpenVZ gentoo host? _________________ *a* |
|
Back to top |
|
|
jormartr Apprentice
Joined: 02 Jan 2008 Posts: 174
|
Posted: Thu Oct 20, 2011 8:17 am Post subject: Re: Xen on OpenVZ |
|
|
adrin wrote: | This question is probably stupid , but is it possible to run a Xen-based virtual machine on OpenVZ gentoo host? |
Maybe it is posible (but I have not even tried to do it) to run a OpenVZ under a Xen host, but not what you explain. |
|
Back to top |
|
|
TigerJr Guru
Joined: 19 Jun 2007 Posts: 540
|
Posted: Wed Dec 28, 2011 1:11 pm Post subject: Re: Xen on OpenVZ |
|
|
adrin wrote: | This question is probably stupid , but is it possible to run a Xen-based virtual machine on OpenVZ gentoo host? |
It's not possible, XEN need Intel Virtualization Technology (VT-x) or AMD Virtualization (AMD-v) based on instruction of your CPU, and you can't install XEN kernel with CPU virtualization support on OpenVZ host. _________________ Do not use gentoo, it die |
|
Back to top |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Fri Feb 24, 2012 10:39 pm Post subject: Re: Xen on OpenVZ |
|
|
TigerJr wrote: | adrin wrote: | This question is probably stupid , but is it possible to run a Xen-based virtual machine on OpenVZ gentoo host? |
It's not possible, XEN need Intel Virtualization Technology (VT-x) or AMD Virtualization (AMD-v) based on instruction of your CPU, and you can't install XEN kernel with CPU virtualization support on OpenVZ host. |
No, XEN needs virtual extensions only for windows-guests and "paravirtualized" linux guests are running faster than hvm guests.
But I can't see any reason to use "double" virtualization layers XEN + OpenVZ, maybe just for testing or sth. _________________ 1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread. |
|
Back to top |
|
|
TigerJr Guru
Joined: 19 Jun 2007 Posts: 540
|
Posted: Thu Sep 05, 2013 2:00 pm Post subject: |
|
|
Quote: | No, XEN needs virtual extensions only for windows-guests and "paravirtualized" linux guests are running faster than hvm guests.
But I can't see any reason to use "double" virtualization layers XEN + OpenVZ, maybe just for testing or sth. |
Code: | [b]Version 3.0[/b] of the Linux kernel supports dom0 and domU in the mainline kernel |
But Version 3.0 of the Linux kernel and newer doesn't not supported by OpenVZ.
So i think that trying to use XEN with OpenVZ it's a waste of time. _________________ Do not use gentoo, it die |
|
Back to top |
|
|
amospalla n00b
Joined: 08 Mar 2013 Posts: 26
|
Posted: Thu Sep 05, 2013 2:31 pm Post subject: |
|
|
OpenVZ runs containers, which uses the same kernel as host, think on them like a chroot on steroids.
Xen is a hypervisor (which runs a linux kernel), it has to be booted.
This way, you can not load Xen (neither other kind of operative system, like Linux, BSD or Windows) under OpenVZ. OpenVZ does not virtualize a computer like most virtualization solutions.
You could combine Xen and OpenVZ, one inside the other like these:
1) OpenVZ patched Linux kernel, running inside a Xen hypervisor. Not what you want.
2) Xen hypervisor running under Qemu, and this Qemu running inside an OpenVZ container (this qemu won't be able to use KVM, and Xen hypervisor under Qemu will be capable of start only paravirtualized guests). <- this will have quite bad performance (being nice), and has not much sense. |
|
Back to top |
|
|
amospalla n00b
Joined: 08 Mar 2013 Posts: 26
|
Posted: Thu Sep 05, 2013 6:09 pm Post subject: |
|
|
The original question dates from 2 years ago... |
|
Back to top |
|
|
TigerJr Guru
Joined: 19 Jun 2007 Posts: 540
|
Posted: Wed Sep 11, 2013 11:23 am Post subject: |
|
|
amospalla wrote: | OpenVZ runs containers, which uses the same kernel as host, think on them like a chroot on steroids.
Xen is a hypervisor (which runs a linux kernel), it has to be booted.
This way, you can not load Xen (neither other kind of operative system, like Linux, BSD or Windows) under OpenVZ. OpenVZ does not virtualize a computer like most virtualization solutions.
You could combine Xen and OpenVZ, one inside the other like these:
1) OpenVZ patched Linux kernel, running inside a Xen hypervisor. Not what you want.
2) Xen hypervisor running under Qemu, and this Qemu running inside an OpenVZ container (this qemu won't be able to use KVM, and Xen hypervisor under Qemu will be capable of start only paravirtualized guests). <- this will have quite bad performance (being nice), and has not much sense. |
Did you try to run XEN under Qemu before answer? _________________ Do not use gentoo, it die |
|
Back to top |
|
|
amospalla n00b
Joined: 08 Mar 2013 Posts: 26
|
Posted: Wed Sep 11, 2013 11:40 am Post subject: |
|
|
TigerJr wrote: | Did you try to run XEN under Qemu before answer? |
Not personally, but looked for some references like http://www.artificis.hu/2006/11/25/xen-on-qemu-on-xen or http://blog.mister-muffin.de/2011/11/21/xen-hypervisor-on-qemu-kvm-and-domu-nfs-boot-with-vde/. Please remember that Xen originally only worked with para-virtualized guests, and this mode does not need cpu virtualization extensions; hardware assisted virtualization came later.
I read again my post, and regarding to point 2 (Xen inside Qemu, Qemu inside OpenVZ), you can pass /dev/kvm to the container running this Qemu, that way you could run Qemu with KVM support. Altough I have not tried this, I don't see why shouldn't work. It still keeps being a nice experiment, and is funny to talk about it, but does not seem quite practical. |
|
Back to top |
|
|
TigerJr Guru
Joined: 19 Jun 2007 Posts: 540
|
Posted: Wed Sep 11, 2013 2:58 pm Post subject: |
|
|
amospalla wrote: | TigerJr wrote: | Did you try to run XEN under Qemu before answer? |
Not personally, but looked for some references like http://www.artificis.hu/2006/11/25/xen-on-qemu-on-xen or http://blog.mister-muffin.de/2011/11/21/xen-hypervisor-on-qemu-kvm-and-domu-nfs-boot-with-vde/. Please remember that Xen originally only worked with para-virtualized guests, and this mode does not need cpu virtualization extensions; hardware assisted virtualization came later.
I read again my post, and regarding to point 2 (Xen inside Qemu, Qemu inside OpenVZ), you can pass /dev/kvm to the container running this Qemu, that way you could run Qemu with KVM support. Altough I have not tried this, I don't see why shouldn't work. It still keeps being a nice experiment, and is funny to talk about it, but does not seem quite practical. |
Can you prove point 2 by yourself? Qemu inside OpenVZ you can faced with kernel problems && resource managements problems. But if you solve all the kernel problems(write somme patches) you'll get: performance problems with IO schedule overhead and perfomance impact for hypervisors and VMs.
And then, after all will be done, can you say what will be runing on these system? How you can use it???
Nice experiment but do you realy need it?
So if you didn't know works it on gentoo or not why you try to give an answer to people who, like you, didn't try to use it, or didn't know how to use it?
How you can help them? With links to reference howto for debian linux?
I don't think that is a right way %) _________________ Do not use gentoo, it die |
|
Back to top |
|
|
amospalla n00b
Joined: 08 Mar 2013 Posts: 26
|
Posted: Thu Sep 12, 2013 10:19 am Post subject: |
|
|
You obviously misunderstood my response if you think I am justifying the use of that nested virtualization path.
I would suggest you reading again my posts. |
|
Back to top |
|
|
TigerJr Guru
Joined: 19 Jun 2007 Posts: 540
|
Posted: Fri Sep 13, 2013 3:53 pm Post subject: |
|
|
amospalla wrote: | if you think I am justifying the use of that nested virtualization path.
|
I'm not think that, i tried to pass /dev/kvm into OpenVZ container and start qemu in container but i get to much IOPS, so i read your post with the links you give. But you didn't try that by yourself.
So interesting think to use OpenVZ container in Xen DomU but how to use your experiments that was confused me. _________________ Do not use gentoo, it die |
|
Back to top |
|
|
amospalla n00b
Joined: 08 Mar 2013 Posts: 26
|
Posted: Fri Sep 13, 2013 7:36 pm Post subject: |
|
|
Yea, that is why some of my comments are like "this could be nice to try", or "trying this could be a funny experiment". Nested paths that I remember right now, that I've tried, are qemu (pure qemu without kvm) under openvz, and openvz under qemu (with or without kvm).
I think the only technology which can be useful nested inside others are OpenVZ containers, but again, it is not a virtualization system, so it behaves correctly.
Talking about virtualization is funny |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|