LinuxQuestions.org
Help answer threads with 0 replies.
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 05-10-2015, 06:37 PM   #1
micropup
LQ Newbie
 
Registered: May 2015
Posts: 5

Rep: Reputation: Disabled
Question New to linux virtualization - I have some questions about recommended software


I would like to make use of virtualization. I have 2 computers, one of the computers has a Core I7. I would like to run 4 virtual machines on the Core I7 computer where each one makes use of 1 core and 2 GB ram for a total of 4 cores and 8 GB.

I have never set something like that up and I have a couple of important questions. On the Core I7 computer that I will be running the virtual machines on. What linux distro would be best suited to manage it. Also, what (only free) virtualization software should I use. More important, does it make sense, that I make sure all 4 virtual machines are 32 bit?

Another question, which I don't know how to google is this. How can I connect to that computer and use my virtual machine from the connected computer. I believe webhosts do this? You set up a virtual server for your webhosting and in a small monitor, you can watch your virtual machine boot? I would really like to know what software I need for this and how I can set it up.

As a side note - the reason for 4 virtual machines is to practice networking including setting up file servers and apache servers and databases. For management and for user access.

Thank you.
 
Old 05-11-2015, 12:48 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Welcome to LQ!!!

Quote:
I would like to make use of virtualization. I have 2 computers, one of the computers has a Core I7. I would like to run 4 virtual machines on the Core I7 computer where each one makes use of 1 core and 2 GB ram for a total of 4 cores and 8 GB.
When you configure virtualization you can force a system to use 1 dedicated CPU for 1 virtual machine that is called CPU pinning but what you want to do that? You can configure each machine with one CPU and let the system hypervisor take care of CPU cycles on the basis of requirement. CPU pinning is important when you are quite sure that it will definitely make optimum utilization of 1 CPU.

By theory you can even assign 4 CPUs to all 4 virtual machine (though I wouldn't suggest that) and hypervisor will take care of CPU cycles to be assigned to VM.

When it comes to memory you can assign 2 GB to each of them but I would suggest going with 1.5 as you said you will be using for testing purpose I doubt you will need more than that. Incase you need you can increase as per your requirement. Leave some breathing space for base machine otherwise it will be quite slow.

Quote:
I have never set something like that up and I have a couple of important questions. On the Core I7 computer that I will be running the virtual machines on. What linux distro would be best suited to manage it. Also, what (only free) virtualization software should I use. More important, does it make sense, that I make sure all 4 virtual machines are 32 bit?
You can go with CentOS with KVM, I have used virtualbox long back like 3 years ago and at that time wasn't impressed with the performance. Virtual box could be used but I cannot comment on that as I haven't used it lately. So for me CentOS + KVM works. That also answers your question regarding virtualization software that is you can go with either KVM or Virtualbox.

You can run 64 bit machines as you have got i7 processor. I am running 64 bit machines on my CentOS + KVM setup and those machines works pretty well.

Quote:
Another question, which I don't know how to google is this. How can I connect to that computer and use my virtual machine from the connected computer. I believe webhosts do this? You set up a virtual server for your webhosting and in a small monitor, you can watch your virtual machine boot? I would really like to know what software I need for this and how I can set it up.
You can go with NAT or bridged configuration. You have to make sure that you have DHCP running in your setup for virtual machines to get IP incase you don't want to assign IPs manually else you can go with Bridge or NAT with static IPs on all machines. In this way you will be able to connect to any machine in your network with any other machine on your network.

Quote:
As a side note - the reason for 4 virtual machines is to practice networking including setting up file servers and apache servers and databases. For management and for user access.
Should work!
 
Old 05-11-2015, 04:08 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Virtual machines and physical hardware has improved a lot. You can assign all cores to every client and in some VM's you can over assign ram. The VM manages resources to you won't have to limit your builds as much.

There are a number of virtual machines so you'd have to play with a few. None of them are newbie proof so you will have to bone up a bit on how they work.

The host os is only your preference mostly. Generally the top 10 at distrowatch.com could be used but many many more work great too. Just what you like best as long as it is a newish distro.

You can get many pre-built OS's made in a vm form already too. Some have software installed for your learning too. Lamp and such are common builds.
 
Old 05-11-2015, 05:05 PM   #4
Samsonite2010
Member
 
Registered: Apr 2015
Distribution: Debian
Posts: 267
Blog Entries: 1

Rep: Reputation: 117Reputation: 117
I think it may be worth doing this in a couple of stages. There is no doubt that getting started with Virtualbox is easiest and is a good way to teach you the basics. You may want to leave 1GB free for your host machine though as VB takes a bit of extra memory for the slick UI. You can turn this off to save resources later or you can move onto another Virtualization platform if you prefer.

As you say you want to practice, again this leans me towards recommending VB to start with. U learned how to set up networks using VB and an i7 with 16GB of RAM and learned a lot that way. I actually started with Windows as the host, but was delighted that my Linux machine and VB could open the same VMs (and perform way faster!).
 
  


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
recommended virtualization solution for linux kaplan71 Linux - Software 1 05-23-2011 03:53 PM
Recommended specifications for Virtualization needs Swakoo Linux - Hardware 5 09-11-2008 08:49 AM
Recommended Software and compatibility questions... vxd Linux - Software 7 02-26-2006 10:39 PM
Recommended Linux Security Software Hangetsu Linux - Security 4 11-21-2005 05:28 PM

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

All times are GMT -5. The time now is 12:50 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