vdi still locked after a VBoxManage controlvm acpipowerbutton
Posted: 23. Feb 2018, 10:47
Hi,
I'm facing this issue
Each night a powershell script duplicates a production VDI (only one VM)
Launched manually from a distant remote desktop over a vpn acces to our local network.
(never been able to use the win scheduled tasks...)
This script does the following (administrator session on the win server 2012):
then:
This used to work fine during a couple of monthes.
But now there's an error relative to a locked state of the media (PS transcript log)
If I launch this script myself from my local computer (also from a remote desktop connection to the server) everything is ok.
Any ideas ,
Thank you
I'm facing this issue
Each night a powershell script duplicates a production VDI (only one VM)
Launched manually from a distant remote desktop over a vpn acces to our local network.
(never been able to use the win scheduled tasks...)
This script does the following (administrator session on the win server 2012):
Code: Select all
VBoxManage controlvm "name-of-vm" acpipowerbutton
Write-Host "stop vm et Attente 9 sec"
Start-Sleep -s 9 Code: Select all
Write-host clone vdi
vboxmanage clonemedium disk "$sourceFile" "$DestinationFile" --variant FixedBut now there's an error relative to a locked state of the media (PS transcript log)
If I launch this script myself from my local computer (also from a remote desktop connection to the server) everything is ok.
Any ideas ,
Thank you