Merhaba,
Sisteminizde kullanılan sanal makinalaırn CPU ve Core değerlerini PowerCli üzerinden hızlı ve topluca değiştirme işlemi için yapılması gereken işlemler ;
CPU için
get-VM -name VMADI| set-VM -NumCpu 2
CPU ve Core için
$TotalvCPU=3
$Cores=3
$VMname= get-vm VLM02-R10VDI67 (İşlem Yapılacak Vm’in Adı)
$spec=New-Object –Type VMware.Vim.VirtualMAchineConfigSpec –Property @{“NumCoresPerSocket” = $cores} ; ($VMname).ExtensionData.ReconfigVM_Task($spec) ; $VMname | set-vm -numcpu $TotalvCPU -Confirm:$false
Toplu Halde
$TotalvCPU=3 | |
$Cores=3 | |
$VMname= get-vm | VLM02-R10VDI67 |
$spec=New-Object –Type VMware.Vim.VirtualMAchineConfigSpec –Property @{“NumCoresPerSocket” = $cores} ; ($VMname).ExtensionData.ReconfigVM_Task($spec) ; $VMname | set-vm -numcpu $TotalvCPU -Confirm:$false | |
$VMname= get-vm | VLM02-R10VDI68 |
$spec=New-Object –Type VMware.Vim.VirtualMAchineConfigSpec –Property @{“NumCoresPerSocket” = $cores} ; ($VMname).ExtensionData.ReconfigVM_Task($spec) ; $VMname | set-vm -numcpu $TotalvCPU -Confirm:$false | |
$VMname= get-vm | VLM02-R10VDI69 |
$spec=New-Object –Type VMware.Vim.VirtualMAchineConfigSpec –Property @{“NumCoresPerSocket” = $cores} ; ($VMname).ExtensionData.ReconfigVM_Task($spec) ; $VMname | set-vm -numcpu $TotalvCPU -Confirm:$false | |
$VMname= get-vm | VLM02-R10VDI70 |
$spec=New-Object –Type VMware.Vim.VirtualMAchineConfigSpec –Property @{“NumCoresPerSocket” = $cores} ; ($VMname).ExtensionData.ReconfigVM_Task($spec) ; $VMname | set-vm -numcpu $TotalvCPU -Confirm:$false | |
$VMname= get-vm | VLM02-R10VDI71 |
$spec=New-Object –Type VMware.Vim.VirtualMAchineConfigSpec –Property @{“NumCoresPerSocket” = $cores} ; ($VMname).ExtensionData.ReconfigVM_Task($spec) ; $VMname | set-vm -numcpu $TotalvCPU -Confirm:$false | |
$VMname= get-vm | VLM02-R10VDI72 |
$spec=New-Object –Type VMware.Vim.VirtualMAchineConfigSpec –Property @{“NumCoresPerSocket” = $cores} ; ($VMname).ExtensionData.ReconfigVM_Task($spec) ; $VMname | set-vm -numcpu $TotalvCPU -Confirm:$false | |
$VMname= get-vm | VLM02-R10VDI73 |
$spec=New-Object –Type VMware.Vim.VirtualMAchineConfigSpec –Property @{“NumCoresPerSocket” = $cores} ; ($VMname).ExtensionData.ReconfigVM_Task($spec) ; $VMname | set-vm -numcpu $TotalvCPU -Confirm:$false | |
$VMname= get-vm | VLM02-R10VDI74 |
$spec=New-Object –Type VMware.Vim.VirtualMAchineConfigSpec –Property @{“NumCoresPerSocket” = $cores} ; ($VMname).ExtensionData.ReconfigVM_Task($spec) ; $VMname | set-vm -numcpu $TotalvCPU -Confirm:$false |