OpenVZ Forum


Home » General » Support » OpenVZ vs. Other Virtualization?
OpenVZ vs. Other Virtualization? [message #20602] Sat, 22 September 2007 05:08 Go to next message
tiger74 is currently offline  tiger74
Messages: 3
Registered: September 2007
Location: Voyager 2
Junior Member

Hello all,
I'm new here. I've just heard OpenVZ from one of my friend and try it. I have been able to set it up, although just so far as setting up apache on it.

I want to know. What is the strong and weak point of OpenVZ against other Virtualization software such as Xen and Vmware?

One thing I notice is that OpenVZ doesn't support guest OS other than Fedora and Centos? Also there's no GUI of the guest OS?

Thank you for your info.
Re: OpenVZ vs. Other Virtualization? [message #20604 is a reply to message #20602] Sat, 22 September 2007 14:01 Go to previous messageGo to next message
ugob is currently offline  ugob
Messages: 271
Registered: March 2007
Senior Member
tiger74 wrote on Sat, 22 September 2007 01:08

Hello all,
I'm new here. I've just heard OpenVZ from one of my friend and try it. I have been able to set it up, although just so far as setting up apache on it.

I want to know. What is the strong and weak point of OpenVZ against other Virtualization software such as Xen and Vmware?


Strong point: Very low overhead, compared to xen and vmware.
Weak point: Can only run a limited number of linux distros, and no other OS

tiger74 wrote on Sat, 22 September 2007 01:08


One thing I notice is that OpenVZ doesn't support guest OS other than Fedora and Centos? Also there's no GUI of the guest OS?



It can more than that, but only linux, because all the containers run on the same kernel.

http://download.openvz.org/template/precreated/

There is no gui of the guest os... probably. I personnally don't mind because I use OpenVZ only on my servers. I think you could run X, but you'd need to connect using a X terminal, but I'm not familiar with that. Or maybe VNC... I don't know.


Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf

Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
Re: OpenVZ vs. Other Virtualization? [message #20614 is a reply to message #20602] Sun, 23 September 2007 20:30 Go to previous messageGo to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
As far as gui's are concerned, you might be interested in this:
http://community.livejournal.com/openvz/17038.html

I run OpenVZ HN on a Centos system and a Ubuntu system. I have VPSs running Centos, Fedora, Debian and Ubuntu without much difficulty. All of my VPSs are servers, but I often do something like this to get gui apps displayed on my HN from a server:

ssh -CX CentosServer
gvim xxx.yyy

That produces a gvim window on my X session on the HN node. I obviously haven't tried all possible X applications, but the ones I've used work fine. Don't expect Google Earth to run very well, however. Very Happy

Jim.

[Updated on: Mon, 24 September 2007 12:34]

Report message to a moderator

Re: OpenVZ vs. Other Virtualization? [message #20615 is a reply to message #20614] Mon, 24 September 2007 00:50 Go to previous messageGo to next message
tiger74 is currently offline  tiger74
Messages: 3
Registered: September 2007
Location: Voyager 2
Junior Member

Hello Jim, Ugob,
Thanks for the sharing. So, ssh -X is the key Smile
That's great. I'm exploring openvz deeper.
Love it.
Re: OpenVZ vs. Other Virtualization? [message #20641 is a reply to message #20615] Mon, 24 September 2007 12:33 Go to previous messageGo to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
Yes, ssh -X allows X forwarding. You also have to be sure that x forwarding is enabled in the sshd config file on the target system. That's the one you are ssh'ing to not the one you are displaying on.


grep Forward /etc/ssh/sshd_config
X11Forwarding yes
Re: OpenVZ vs. Other Virtualization? [message #20695 is a reply to message #20615] Tue, 25 September 2007 10:36 Go to previous messageGo to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
Oh, and after you make changes to the sshd config file, you need to restart.

/etc/init.d/sshd restart
on centos
and
/etc/init.d/ssh restart
On Ubuntu

Jim.
Re: OpenVZ vs. Other Virtualization? [message #20749 is a reply to message #20602] Tue, 25 September 2007 23:02 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
What is it you want to run on your virtual machine(s)?

Check out this link: http://en.wikipedia.org/wiki/Operating_system-level_virtuali zation

Basically, OS Virtualization offers a much lighter footprint per virtual machine than Machine Virtualization does. How much lighter? Well, in OpenVZ... a VPS/VE/VM (whatever you want to call it) only takes up the resources needed to run the services you want... so a simple VPS with only basic services and Apache (static pages, no PHP) takes up about 24MB or so in approximately 16 processes. That means that you can fit a lot of VPSes on a physical machine (density)... and they actually scale well... because they only add the overhead needed to run the additional processes.

Someone else already mentioned there are quite a few pre-created OS Templates for a number of distributions beyond Fedora and CentOS. Me? I prefer CentOS... as it is what I run on the HN and most VPSes... but that is a personal preference.

Regarding GUI environments within your VPS, I've successfully installed XFCE4, GNOME and KDE inside of both Fedora 7 and CentOS 5. There is a little trick involved to make sure you don't accidentally install udev... but other than that, it is doable... and you can access it via vncserver/vncviewer... but that is only if you want to run a complete desktop environment.

If you just want to occationally run a GUI app, as previously mentioned, you can do so over ssh with the -X flag.


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: OpenVZ vs. Other Virtualization? [message #20754 is a reply to message #20602] Wed, 26 September 2007 00:22 Go to previous messageGo to next message
tiger74 is currently offline  tiger74
Messages: 3
Registered: September 2007
Location: Voyager 2
Junior Member

Hello dowdle,
Thank you for the insight. Now I know why they call it VMware (Virtual Machine ware?). I see... So, OpenVZ is another level of virtualization that is the OS? Ok.. I see.. much lighter. This is great. Well, distro is not a problem. I love Centos and the Redhat family.
Re: OpenVZ vs. Other Virtualization? [message #40129 is a reply to message #20754] Tue, 20 July 2010 08:07 Go to previous messageGo to next message
blaise is currently offline  blaise
Messages: 7
Registered: May 2010
Junior Member
Hi,

I am new to virtualization from the technical side, and this is an old threat, but it seems a good starting point to me

I have the intention to install a Ubuntu 8.04 VPS (CentOS is the host) to host a local Web site for internal testing. At the same time I would like to perform code development for the site on the same VPS (I am too ambitious I know), therefore I need to use an IDE (i.e. IntelliJ, netbeans, ...). Since GUI is mentioned in this threat, my question is: would that be a bad experience from a performance point of view? I mean, would it be slow for the graphical IDE?
If that is doable, what memory allocation is best advisable for that VPS? Any other suggestions, help, advices are welcome.

P.S. if you see that this is not the right threat to post this question, pls let me know and I will move it to an appropriate one.

Thanks,

Blaise

Re: OpenVZ vs. Other Virtualization? [message #40130 is a reply to message #40129] Tue, 20 July 2010 11:04 Go to previous messageGo to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
blaise wrote on Tue, 20 July 2010 04:07
Hi,

I am new to virtualization from the technical side, and this is an old threat, but it seems a good starting point to me

I have the intention to install a Ubuntu 8.04 VPS (CentOS is the host) to host a local Web site for internal testing. At the same time I would like to perform code development for the site on the same VPS (I am too ambitious I know), therefore I need to use an IDE (i.e. IntelliJ, netbeans, ...). Since GUI is mentioned in this threat, my question is: would that be a bad experience from a performance point of view? I mean, would it be slow for the graphical IDE?
If that is doable, what memory allocation is best advisable for that VPS? Any other suggestions, help, advices are welcome.

P.S. if you see that this is not the right threat to post this question, pls let me know and I will move it to an appropriate one.

Thanks,

Blaise



I do what you are wanting to do and more. I can't tell the difference in operation from a stand alone machine when running IDEs, gvim or any other X based program. I'm sure some of the more graphically intense programs like games aren't as fast, but I do development/testing mostly. The way I do it is to connect via ssh (ssh -X ) and just run the program. When installing and X program via apt-get or aptitude you'll drag in the necessary X libraries and other files automatically. I usually start building my VPS with the output of vzsplit (man vzsplit). If you aren't going to run but one VPS I'd use vzsplit -n 4 just for a start. If you find the /proc/userbeancounters has errors simply bump the count up 20% for the parameter that has the errors and reboot.

You can even run update-manager via ssh -X if you want.
I think you'll find it fairly easy to do what you propose.

Jim.
Re: OpenVZ vs. Other Virtualization? [message #40131 is a reply to message #40130] Tue, 20 July 2010 17:10 Go to previous messageGo to next message
blaise is currently offline  blaise
Messages: 7
Registered: May 2010
Junior Member
JimL wrote on Tue, 20 July 2010 07:04

I do what you are wanting to do and more. I can't tell the difference in operation from a stand alone machine when running IDEs, gvim or any other X based program. I'm sure some of the more graphically intense programs like games aren't as fast, but I do development/testing mostly. The way I do it is to connect via ssh (ssh -X ) and just run the program. When installing and X program via apt-get or aptitude you'll drag in the necessary X libraries and other files automatically. I usually start building my VPS with the output of vzsplit (man vzsplit). If you aren't going to run but one VPS I'd use vzsplit -n 4 just for a start. If you find the /proc/userbeancounters has errors simply bump the count up 20% for the parameter that has the errors and reboot.

You can even run update-manager via ssh -X if you want.
I think you'll find it fairly easy to do what you propose.

Jim.


Thank you Jim for sharing your experience. It was a green light for me to proceed.

First step today: I successfully installed OpenVz on CentOS-5.5 using this howto: http://www.howtoforge.com/installing-and-using-openvz-on-centos5.2
Apparently the same procedure for CentOS-5.2 works for CentOS-5.5. That needs confirmation from the experts.
Do I need to do more tweaking to my host before creating templates? By the way I will be running 2 VPSs on that host.
And I meant Thread NOT Threat in my previous post Smile

Blaise


Re: OpenVZ vs. Other Virtualization? [message #40132 is a reply to message #40129] Tue, 20 July 2010 22:18 Go to previous messageGo to next message
efball is currently offline  efball
Messages: 41
Registered: September 2006
Location: Santa Rosa, California
Member
blaise wrote on Tue, 20 July 2010 04:07

I have the intention to install a Ubuntu 8.04 VPS (CentOS is the host) to host a local Web site for internal testing. At the same time I would like to perform code development for the site on the same VPS (I am too ambitious I know), therefore I need to use an IDE (i.e. IntelliJ, netbeans, ...). Since GUI is mentioned in this threat, my question is: would that be a bad experience from a performance point of view? I mean, would it be slow for the graphical IDE?



There will be no hardware acceleration for graphics, but otherwise they work fine. An Ubuntu VPS on a CentOS host will probably break udev in Ubuntu (depends on kernel versions). The way to fix this is to remove udev and create any missing /dev/ files with MAKEDEV.


E Frank Ball efball@efball.com
Re: OpenVZ vs. Other Virtualization? [message #40137 is a reply to message #40131] Wed, 21 July 2010 11:26 Go to previous messageGo to next message
JimL is currently offline  JimL
Messages: 116
Registered: February 2007
Senior Member
blaise wrote on Tue, 20 July 2010 13:10
JimL wrote on Tue, 20 July 2010 07:04

I do what you are wanting to do and more. I can't tell the difference in operation from a stand alone machine when running IDEs, gvim or any other X based program. I'm sure some of the more graphically intense programs like games aren't as fast, but I do development/testing mostly. The way I do it is to connect via ssh (ssh -X ) and just run the program. When installing and X program via apt-get or aptitude you'll drag in the necessary X libraries and other files automatically. I usually start building my VPS with the output of vzsplit (man vzsplit). If you aren't going to run but one VPS I'd use vzsplit -n 4 just for a start. If you find the /proc/userbeancounters has errors simply bump the count up 20% for the parameter that has the errors and reboot.

You can even run update-manager via ssh -X if you want.
I think you'll find it fairly easy to do what you propose.

Jim.


Thank you Jim for sharing your experience. It was a green light for me to proceed.

First step today: I successfully installed OpenVz on CentOS-5.5 using this howto: http://www.howtoforge.com/installing-and-using-openvz-on-cen tos5.2
Apparently the same procedure for CentOS-5.2 works for CentOS-5.5. That needs confirmation from the experts.
Do I need to do more tweaking to my host before creating templates? By the way I will be running 2 VPSs on that host.
And I meant Thread NOT Threat in my previous post Smile

Blaise





There shouldn't be any significant differences between installing on 5.5 vs 5.2. I didn't follow any instructions beyond the ones on the openvz site. I added a couple of repositories to yum and installed the kernel and utilities. Do look at the openvz wiki for instructions on changing some of the system parameters, but I'm sure the howtoforge instructions also cover that. My experience with the howtoforge site has been quite positive WRT other projects.

Review the steps here http://wiki.openvz.org/Quick_installation and compare to what you've done. They should match up fairly closely.

Once you've run the vzsplit -n 4 and trapped the output you are ready to create a container. It's easiest to use precreated templates. See http:// wiki.openvz.org/OS_template_cache_preparation#Alternative:_u se_precreated_template_cache

Grab a template from http://download.openvz.org/contrib/template/precreated/

Good luck.

Jim.
Re: OpenVZ vs. Other Virtualization? [message #40142 is a reply to message #40137] Thu, 22 July 2010 10:07 Go to previous message
blaise is currently offline  blaise
Messages: 7
Registered: May 2010
Junior Member
Thanks again Jim

Though now I am facing Networking problems. I cannot ping domains from inside the container.

I posted the problem in a related thread:
http://forum.openvz.org/index.php?t=tree&goto=40141& #msg_40141

Blaise
Previous Topic: LiveCD boots to blank screen
Next Topic: proxy_ndp
Goto Forum:
  


Current Time: Sat Nov 09 02:17:33 GMT 2024

Total time taken to generate the page: 0.03097 seconds