Questions about Guest memory allocaton
Posted: 18. May 2011, 00:04
Greetings:
I am very new to VirtualBox and somewhat new to virtualization in general (though I am somewhat familiar with Hypervisor and VMWare). Please bear with me...
I understand that when one creates a virtual machine on VirtualBox, the memory allocated to that machine becomes unavailable to the host. My concern, however, is with the number of VMs that you can run at the same time.
Suppose you have a machine that has 8 Gigs of memory. If I was to decide to keep a Gig for the VM, that leaves 7 Gigs for VMs. If I was to allocate 4 Gigs for a Windows VM and 3 Gigs for a Linux VM (these sound weird, but this is for thought experiment purposes!) then wouldn't I have used up all available memory for running VMs? In other words, wouldn't that mean that I can only run these two VMs simultaneously within VirtualBox???
If it does, then this would be a serious limitation. The virtualization products I mentioned previously can not only specify multiple VMs (more than two using the same scenario) on that same 8 Gig machine, but they can actually simultaneously run all of those VMs on that machine despite the fact that the multiple VMs have memory allocated that, when added together, exceeds the physical memory! This is because VMWare and Hypervisor have some kind of memory sharing scheme that enables the different VMs to share memory resources (within reason, of course! They don't work so well if there is heavy usage on all of the running VMs).
Does VirtualBox have a mechanism like that? Or are we limited to running only the number of VMs constrained by the amount of physical memory available?
Someone please advise.
I am very new to VirtualBox and somewhat new to virtualization in general (though I am somewhat familiar with Hypervisor and VMWare). Please bear with me...
I understand that when one creates a virtual machine on VirtualBox, the memory allocated to that machine becomes unavailable to the host. My concern, however, is with the number of VMs that you can run at the same time.
Suppose you have a machine that has 8 Gigs of memory. If I was to decide to keep a Gig for the VM, that leaves 7 Gigs for VMs. If I was to allocate 4 Gigs for a Windows VM and 3 Gigs for a Linux VM (these sound weird, but this is for thought experiment purposes!) then wouldn't I have used up all available memory for running VMs? In other words, wouldn't that mean that I can only run these two VMs simultaneously within VirtualBox???
If it does, then this would be a serious limitation. The virtualization products I mentioned previously can not only specify multiple VMs (more than two using the same scenario) on that same 8 Gig machine, but they can actually simultaneously run all of those VMs on that machine despite the fact that the multiple VMs have memory allocated that, when added together, exceeds the physical memory! This is because VMWare and Hypervisor have some kind of memory sharing scheme that enables the different VMs to share memory resources (within reason, of course! They don't work so well if there is heavy usage on all of the running VMs).
Does VirtualBox have a mechanism like that? Or are we limited to running only the number of VMs constrained by the amount of physical memory available?
Someone please advise.