I have a desktop with Core i3 + 8GB.
It looks like I need to assign one of my CPU cores to a VM. That means I can only run one VM at a time?
Does VM application actually uses a core for each VM images? Or Do they depend on memory?
|
I have a desktop with Core i3 + 8GB. It looks like I need to assign one of my CPU cores to a VM. That means I can only run one VM at a time? Does VM application actually uses a core for each VM images? Or Do they depend on memory? |
|||||
|
|
The core you assign to the VM is a virtual core. You have an effectively unlimited supply of virtual cores. |
|||||||
|
|
Though the other answers are correct, there are a few things that you do want to be aware of.
My private cloud has about 20 VMs running on it at any given time. A few of the VMs include Proxy Server, VPN server, WHS, Database Server, 5 Ruby on Rails Applications, Astrix Phone Server, 2 Wordpress servers, Virtual Host Web Server (10 websites). It's a Intel Xeon E3-1270, 32GB RAM, 8x1TB 7200 RPM RAID5, and 50Mbps connection. For the most part, it idles around 5-10% CPU usage. It peaks around 75% CPU usage. I'm using Proxmox as my virtualization solution and love it. I've been using it for a few years now. |
|||
|
|
|
A CPU in a virtual machine does not map directly to a physical CPU [core]. You can safely run dozens of VM, each with multiple virtual CPUs even if you only have a single 'real' CPU core. |
|||
|
|
|
I've quite comfortably run 3-4 VMs at once on a c2d. There's a few concepts here. Firstly that while a core can run one thread at a time (not counting hyperthreading and such), it can switch between threads, Two cores is better since they don't need to switch a core between threads as often, but it isn't a showstopper. Its no different from running multiple copies of a program (Chrome for example runs a process per tab), or a single multithreaded piece of software. Your ram and processor usage is far more critical than coredness, and even dedicated VM hosts have far less cores than VMs running. I'd also note that some vm host software lets you run more virtual cores than physical ones, so its quite certain that you don't need a core per vm. |
|||
|
|