LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-02-2024, 10:34 AM   #1
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Rep: Reputation: 10
Post Do you choose virtualization or container?


Hello,
On a Linux server, you want to run a number of services such as Apache, Nginx, Redis, etc. Do you use virtualization like Xen hypervisor or container like Docker?

Thank you.
 
Old 03-02-2024, 10:51 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
yes,
sometimes
 
Old 03-02-2024, 11:22 AM   #3
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by pan64 View Post
yes,
sometimes
Hello,
Thank you so much for your reply.
Does that mean you use both? When do you use virtualization and when do you use containers?
 
Old 03-02-2024, 01:22 PM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
I work at a really huge company, like Microsoft or IBM. We produce software and we install our software into VMs.
But actually we use containers to produce those software.
At home, if I want to try something usually I do it in VM or in a container, it depends on the complexity and size of it.
In general both have advantages and disadvantages and there in no short answer to the question why. Each case is different
https://www.atlassian.com/microservi...tainers-vs-vms
https://www.geeksforgeeks.org/differ...nd-containers/
 
1 members found this post helpful.
Old 03-02-2024, 02:15 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by Jason.nix View Post
Does that mean you use both? When do you use virtualization and when do you use containers?
Virtualization when you have to, containers when you can.
 
Old 03-03-2024, 06:27 AM   #6
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by dugan View Post
Virtualization when you have to, containers when you can.
Hi,
Thank you so much for your reply.
I can install a hypervisor on the server. Why virtualization?
 
Old 03-03-2024, 08:50 PM   #7
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Red face

Quote:
Originally Posted by Jason.nix View Post
Hi,
Thank you so much for your reply.
I can install a hypervisor on the server. Why virtualization?
Can you Google, what is Hypervisor?

There will be no virtualization, if there is no Hypervisor.
 
Old 03-04-2024, 11:13 AM   #8
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by JJJCR View Post
Can you Google, what is Hypervisor?

There will be no virtualization, if there is no Hypervisor.
Hi,
Of Course. So?
 
Old 03-04-2024, 07:02 PM   #9
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
I see you need virtualization in your Linux server, search for KVM, Ovirt or Qemu. your call to decide which one you want.
 
Old 03-07-2024, 10:40 AM   #10
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by JJJCR View Post
I see you need virtualization in your Linux server, search for KVM, Ovirt or Qemu. your call to decide which one you want.
Hi,
Thank you so much for your reply.
How about the Xen hypervisor?
 
Old 03-07-2024, 11:10 AM   #11
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Obviously you can try anything you want. What is the goal of this thread?
 
Old 03-07-2024, 11:42 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The goal of this thread is that he's saving on reading up by asking question upon question.
 
2 members found this post helpful.
Old 03-11-2024, 03:45 PM   #13
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
I once renovated a company's "several hundred websites" that were all actually run by one piece of software, moving it from a dying Apple server to "the cloud." They wanted me to use virtual machines, and I consented. But I later regretted that I did not, instead, push harder for containers.

All of the various systems ran on a single version of Linux. But, because I used VMs, I had to do things like "NFS filesystems" and a lot of redundant duplication between each of the (about a dozen, in the end) VMs. I also had to maintain Linux installations separately on each of them. Furthermore, I ran into the issue that the original vendor wasn't actually able to deliver on their original service contracts.

Containers, then, would have been much simpler – providing the necessary "isolation," which was all that this configuration actually needed. Looking back, I could have created a single, "honkin' big," virtual machine and then used containers for all the rest. I wouldn't have had to "pretend," nearly so much, that the equipment was actually "real." When, of course, none of it was.
 
1 members found this post helpful.
Old 03-12-2024, 09:37 PM   #14
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
(The lesson that I didn't push hard enough ...): If your deployment does not actually require "multiple OS-distinct environments," then: "virtualization" turns out to be "overkill."

[Do you need virtual 'Windows' servers, and virtual 'Linux,' and virtual '(!?!)' servers, all at the same time?] (If so, God help ye ...)

Usually – as in my case – what you actually need is simply: "isolation." And, to these ends, "containers" are a clever illusion.

If your single server-type configuration simply consists of: "various environments that each need to be 'isolated,'" as is usually the case, then "containers" can effectively fill the bill at minimal cost.

Containers provide each client what they need to see, and each one (happily!) is none the wiser. None of them see "reality," and none of them care.

"Containerization" also gives rise to commercial services such as "Rackspace," which can "spin-up" and then "spin-down" container instances on moment-by-moment demand.

Last edited by sundialsvcs; 03-12-2024 at 09:51 PM.
 
1 members found this post helpful.
Old 03-17-2024, 02:58 AM   #15
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by pan64 View Post
Obviously you can try anything you want. What is the goal of this thread?
Hello,
Suppose you want to create a separate virtual machine for each service such as Nginx and PHP. How can you tell Nginx virtual machine to use another virtual machine to compile .php files? is this possible?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you know how to connect the desktop of this Docker container as a Singularity container through Remote Desktop? zzzhhh Linux - Containers 5 01-20-2024 02:44 AM
linux container host os and container os question jzoudavy Linux - Newbie 1 09-01-2015 05:21 AM
LXer: Inside the Open Container Project: How Docker plans to unite the container market LXer Syndicated Linux News 0 06-23-2015 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration