[pve-devel] [PATCH] Add check by starting a VM, if Host have engough Cores for VM.
Dietmar Maurer
dietmar at proxmox.com
Fri Nov 14 12:28:16 CET 2014
comments inline
> From: root <root at ella.proxmox.com>
>
>
> Signed-off-by: root <root at ella.proxmox.com>
Please can you add correct Signed-off-by, using your real name and correct email address?
Try to use the following git config file:
-------- /root/.gitconfig -----------
[user]
name = Wolgang Link
email = wolfgang at linksystems.org
----------------------------
> ---
> PVE/QemuServer.pm | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 02bf404..9aea9ee
> 100644
> --- a/PVE/QemuServer.pm
> +++ b/PVE/QemuServer.pm
> @@ -2588,6 +2588,12 @@ sub config_to_command {
> my $cores = $conf->{cores} || 1;
> my $maxcpus = $conf->{maxcpus} if $conf->{maxcpus};
>
> + my $total_cores = $sockets * $cores;
> + my $allowed_cores = $cpuinfo->{cpus} * $cpuinfo->{sockets};
$allowed_cores = $cpuinfo->{cpus}; # why you want to multiply that with $cpuinfo->{sockets}?
More information about the pve-devel
mailing list