script mkvm.ps1
This commit is contained in:
parent
ea60c89bf1
commit
aac0f13134
@ -30,7 +30,7 @@ $vmCpus = @{
|
||||
|
||||
function create_vm{ param([string]$nomvm)
|
||||
|
||||
if ($vmMem.ContainsKey($nomvm)) -and ($vmCpus.ContainsKey($nomvm))) {
|
||||
if (($vmMem.ContainsKey($nomvm)) -and ($vmCpus.ContainsKey($nomvm))) {
|
||||
& "$vboxmanage" import "$ovafile" --vsys 0 --vmname "$nomvm" --memory $vmMem[$nomvm] --cpus $vmCpus[$nomvm]
|
||||
Write-Host "Machine $nomvm importée"
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user