LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-14-2015, 11:13 PM   #1
Tadaen
Member
 
Registered: Sep 2005
Distribution: Arch
Posts: 210

Rep: Reputation: 39
Necessity of virtualization?


I have a small AM1 server I built awhile back. It currently is running Ubuntu 14.04.2 headless in the closet. The install is nothing more than a kvm host, and I have been virtualizing everything I do. This was done for learning as well as I found it easier to have single systems (vms) that do one job as opposed to one system doing multiple jobs.

I am beginning to rethink this though. I can't help but think I am making more work for myself to keep multiple vms updated, performance penalties for vms as opposed to bare metal ( minecraft server comes to mind).

I guess my question is at what point does virtualization make more sense than single machine for a home server.

My uses - file server, torrent seedbox, apt-cache-ng proxy, minecraft survival ( 4 players max ).

The server is not high powered is another reason I am looking for advice. AM1 Kabini 5350, 8gb memory, 120gb ssd, 1tb hdd.

What is my best option?
 
Old 04-14-2015, 11:17 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Isolation can be acheived.

Multiple different OS can be installed.

Used as a test install system.

Using KVM there is hardly any penalty except for graphics and such...
 
Old 04-15-2015, 05:54 AM   #3
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,689
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
virtualization is not a necessity ... but it is a nice tool for security, customization, and testing. i'd keep on using it. write scripts to boost your efforts and automate what you can.

Last edited by Skaperen; 04-15-2015 at 05:56 AM.
 
Old 04-15-2015, 06:13 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,484

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by Skaperen View Post
virtualization is not a necessity ... but it is a nice tool for security, customization, and testing. i'd keep on using it. write scripts to boost your efforts and automate what you can.
+1

Learning how to use a virtualisation platform of some sort is now a pretty essential skill. If you're a home user then you may as well get the experience.

If you're a "working" systems admin that these days it's critical to have some for of experience in virtualisation in one or more of KVM/Xen/VM.

Last edited by TenTenths; 04-15-2015 at 06:14 AM.
 
Old 04-15-2015, 07:13 AM   #5
Bruce783
LQ Newbie
 
Registered: Apr 2015
Location: Kommetjie, Cape Town, ZA
Distribution: Gentoo
Posts: 11

Rep: Reputation: Disabled
Everything is moving towards the cloud and virtualised environments so it is a good idea to learn how it all works.
 
Old 04-15-2015, 07:14 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you want a more lightweight solution that is easier to maintain you might want to look into containers instead of VM, like Docker or LXC.
 
Old 04-15-2015, 07:34 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
For a low maint setup, in the past you may have thought of OpenVZ - now, I'd have to second LXC.

I still think cgroup/containers is a half-arsed attempt to fix (competing) workload scheduling on Linux, but it's the best we have.
 
Old 04-15-2015, 08:26 AM   #8
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by Tadaen View Post
I am beginning to rethink this though. I can't help but think I am making more work for myself to keep multiple vms updated, performance penalties for vms as opposed to bare metal ( minecraft server comes to mind).

I guess my question is at what point does virtualization make more sense than single machine for a home server.
I'm a slacker.
The less work I have, the better.
With virtualization you have less work maintaining your services, as if you ever need to switch servers all you have to do is migrate the VMs to it.
Also, you can backup the whole system (the VM image file and config), not just the data in it. Incrementally.
Deploying new VMs is also mostly automated: I have a read-only "gold-image" with a base generic system, then I attached another read-only image to it with the new operating system's config, finally a read-write image is attached so changes can be saved to it.
If that system becomes borked/compromised/infected it is a simple matter of scraping the read-write image and revert to a pristine system.

Performance penalties are minimal (I use qemu/kvm/libvirt).
 
Old 04-18-2015, 11:34 PM   #9
Tadaen
Member
 
Registered: Sep 2005
Distribution: Arch
Posts: 210

Original Poster
Rep: Reputation: 39
Ive been doing some reading on LXC and it looks interesting although much of what I read was over my head. Couple questions.

Do containers have full access to the hardware or is there a layer of overhead between the container and the host?

Is the container entirely self contained, a separate os install or is it using the host os as its core? Basically can I run updates on the host and be done or do I need to do it for each container?
 
Old 04-19-2015, 05:36 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by Tadaen View Post
Do containers have full access to the hardware or is there a layer of overhead between the container and the host?
Depends on how you configure the container. If you bind-mount the /dev directory to the container (or only those parts of that directory that you want the container have access to) then it has hardware access. It is for example possible to run applications like Steam inside a container, which need access to the graphics hardware. You may of course have the need to align driver versions between the host and the guest OS for this to work.
Quote:
Is the container entirely self contained, a separate os install or is it using the host os as its core? Basically can I run updates on the host and be done or do I need to do it for each container?
This also depends on your setup. It is possible to use the host OS as the basic system and only have the changes made by installing and running an application inside the container. It is also possible to run entire distributions in a container. The most common usage, I would think, is to create on base filesystem, independent from the host OS, and use that as a base for your containers, so that you only have to update the base filesystem to get the updates for all containers, except for those applications installed inside a container. This makes it possible to run different versions of the same software on top of the same OS at the same time.
 
Old 04-21-2015, 06:42 AM   #11
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,689
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Bruce783 View Post
Everything is moving towards the cloud and virtualised environments so it is a good idea to learn how it all works.
+1

many cloud providers make cheap or free or pay as you go services available for learning. I used the free tier of AWS a few years ago and learned a lot. i had done much virtualization even before that which helped a bit. virtualization is in heavy use in the embedded development arena, too, mostly QEMU for emulation for testing and image building. BTDT

Last edited by Skaperen; 04-21-2015 at 06:43 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello. Necessity is a Mother. I come bearing QUESTIONS!!! dkathrens77 LinuxQuestions.org Member Intro 6 04-03-2008 08:32 PM
eliminate the necessity of UPS snehitaasai Linux - Newbie 3 11-03-2007 12:09 AM
Necessity of initrd in building a kernel? Erik_the_Red Linux - Newbie 3 08-13-2005 08:53 PM
how many cd is necessity for mandrake 10.0 to install mfeyzifar Mandriva 6 05-09-2004 12:04 PM
necessity of makefiles Jo_Nak Linux - General 2 06-09-2003 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:00 PM.

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