Open SeungJeongYang opened 7 months ago
When creating a repair VM using the --enable-nested option in the latest repair extension(1.0.0b1), Hyper-V is not installed.
I found work around with older script. But latest scripts need to be modified.
[WorkAround]
mv ~/.azure/cliextensions/vm-repair/azext_vm_repair/scripts/win-run-driver.ps1 ~/.azure/cliextensions/vm-repair/azext_vm_repair/scripts/win-run-driver.ps1.bak
wget -O ~/.azure/cliextensions/vm-repair/azext_vm_repair/scripts/win-run-driver.ps1 https://raw.githubusercontent.com/Azure/azure-cli-extensions/c906263ddf2dab08a0a7355030b883b40d34aa11/src/vm-repair/azext_vm_repair/scripts/win-run-driver.ps1
az vm repair create -g [Resource Group] -n [VMname] --repair-username [UserName] --repair-password '[password]' --enable-nested --verbose
refer the following pic
refer the following pics
hyperv shoud be installed on the repair VM.
azure-cli 2.55.0 *
core 2.55.0 * telemetry 1.1.0
Extensions: ai-examples 0.2.5 ml 2.22.0 ssh 2.0.2 vm-repair 1.0.0b1
Dependencies: msal 1.24.0b2 azure-mgmt-resource 23.1.0b2
Python location '/usr/bin/python3.9' Extensions directory '/home/logan/.azure/cliextensions' Extensions system directory '/usr/lib/python3.9/site-packages/azure-cli-extensions'
Python (Linux) 3.9.14 (main, Oct 12 2023, 19:48:32) [GCC 11.2.0]
Legal docs and information: aka.ms/AzureCliLegal
No response
Thank you for opening this issue, we will look into it.
Hi @yonzhan , Can you please share an update on this issue?
Describe the bug
When creating a repair VM using the --enable-nested option in the latest repair extension(1.0.0b1), Hyper-V is not installed.
I found work around with older script. But latest scripts need to be modified.
[WorkAround]
Backup existing script
mv ~/.azure/cliextensions/vm-repair/azext_vm_repair/scripts/win-run-driver.ps1 ~/.azure/cliextensions/vm-repair/azext_vm_repair/scripts/win-run-driver.ps1.bak
Revert back
wget -O ~/.azure/cliextensions/vm-repair/azext_vm_repair/scripts/win-run-driver.ps1 https://raw.githubusercontent.com/Azure/azure-cli-extensions/c906263ddf2dab08a0a7355030b883b40d34aa11/src/vm-repair/azext_vm_repair/scripts/win-run-driver.ps1
Related command
az vm repair create -g [Resource Group] -n [VMname] --repair-username [UserName] --repair-password '[password]' --enable-nested --verbose
Errors
refer the following pic![image](https://github.com/Azure/azure-cli-extensions/assets/128203687/9bee7127-a859-4d49-a584-9aebda3aec3a)
Issue script & Debug output
refer the following pics![image](https://github.com/Azure/azure-cli-extensions/assets/128203687/e5db5218-2c09-494d-a12a-150de4ca17cc)
Expected behavior
hyperv shoud be installed on the repair VM.
Environment Summary
azure-cli 2.55.0 *
core 2.55.0 * telemetry 1.1.0
Extensions: ai-examples 0.2.5 ml 2.22.0 ssh 2.0.2 vm-repair 1.0.0b1
Dependencies: msal 1.24.0b2 azure-mgmt-resource 23.1.0b2
Python location '/usr/bin/python3.9' Extensions directory '/home/logan/.azure/cliextensions' Extensions system directory '/usr/lib/python3.9/site-packages/azure-cli-extensions'
Python (Linux) 3.9.14 (main, Oct 12 2023, 19:48:32) [GCC 11.2.0]
Legal docs and information: aka.ms/AzureCliLegal
Additional context
No response