Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

I would like to buy a dedicated server and virtualize it. Details:

Host OS Ubuntu 12.04 server OS Setting up 3 VMs. 2 serving web applicaitons with php/Mysql + nginx and 1 running bugzilla.

With that said how much RAM memory should I allocate for the host OS. The host OS will not be used for anything other than managing the VMs. Please let me know if I need to supply more info. I am planning to use KVM for virtualization.

share|improve this question

marked as duplicate by Bryan, Mark Henderson Jun 24 '13 at 12:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Ubuntu 12.04 Desktop or Ubumtu 12.04 Server OS? –  tombull89 Jun 24 '13 at 10:30
    
@tombull89 Ubuntu 12.04 Server OS –  sunlover Jun 24 '13 at 10:33
    
How many concurrent users have you estimated? have you considered to provision nginx in a different VLAN (and a different VM) that MySQL? –  dawud Jun 24 '13 at 11:11
    
@dawud - nginx/php-fpm/mysql would reside in a guest VM. They will not live in the Host OS –  sunlover Jun 24 '13 at 11:56

1 Answer 1

You would need enough RAM for 3 VMs and some more for the host.

For the host

https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Virtualization/chap-Virtualization-System_requirements.html

2GB of RAM plus additional RAM for guests.

For the guests

This depends on your needs. Most entry level VMs have around 1GB of RAM nowadays so that should server as a good starting point if you're not sure.

If you wanted to keep things lean (and your server won't have a lot of visitors/users) you may get away with less (you could try for 512MB RAM). Keep in mind the moment you start installing software, and getting visitors/users you'll need to cater for more RAM.

Until you do your own tests you won't really have a real indication of how much RAM each machine will need, and of course this will change as your server usage changes.

Here are some good questions to consider:

  • How many visitors will the server need to handle?
  • What sort of scripts will the server be running (custom scripts or add-ons may increase the amount of grunt required).
  • Will you have big databases or datasets?
  • Will you need to do things like AntiVirus Scanning, Backups or Maintenance tasks (these will consume RAM)
  • Will you take advantage of software like Varnish (this may help reduce the amount of work PHP has to do, thus reduce your need for RAM on that box)
share|improve this answer
    
I am trying to find out the RAM neccessity about the Host Os and not the guest OS. –  sunlover Jun 24 '13 at 11:57
    
I have explained the requirements for the host. –  Drew Khoury Jun 25 '13 at 1:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.