大网数据广告活动
服务器运维问答

Can't Boot Ubuntu Virtual Machine on Azure

· 52CE 我爱测

I have a virtual machine I use for testing. I last booted it two weeks ago and ran the standard aptitude safe-upgrade on it then shut it down. I just tied to boot the virtual machine today (July 8th) and I'm getting the following…

问题原文

原帖链接 · Chris C · CC BY-SA 3.0

I have a virtual machine I use for testing. I last booted it two weeks ago and ran the standard aptitude safe-upgrade on it then shut it down. I just tied to boot the virtual machine today (July 8th) and I'm getting the following error:

No version found in the artifact repository that satisfies the requested version '2.0' for VM extension with publisher 'Microsoft.OSTCExtensions' and type 'LinuxDiagnostic'.

I get the same error if I try to redeploy and resize the VM. The virtual machine was setup using the Resource Manager (a non-classic VM).

已采纳解答

原帖链接 · Chris C · CC BY-SA 3.0

I fixed the problem by deleting the Microsoft.OSTCExtensions.LinuxDiagnostic extension. The steps I took where:

  1. Start the VM even though it says there was an error. If I tired to remove the extension before starting the VM I got the following error:

    Failed to delete the virtual machine extension 'Microsoft.Insights.VMDiagnosticsSettings'. Error: OperationNotAllowed: Cannot modify extensions in the VM when the VM is not running.

    When starting the VM I still got the original error message:

    Failed to start virtual machine 'some-vm'. Error: No version found in the artifact repository that satisfies the requested version '2.0' for VM extension with publisher 'Microsoft.OSTCExtensions' and type 'LinuxDiagnostic'.

  2. Once the VM is started delete the extension via the Azure website in the Extensions menu. Then click the uninstall. The uninstall can take a couple minutes, let it do it's thing. In my case I also deleted the VMAccessForLinux Extension.

  1. I stopped the VM then restarted it and now I can SSH into it.

Thanks to Ryan for his tip about removing diagnostics. That lead me on the correct path of deleting the extension. GordonB, I thought about having the delete the VM and re-create it but that was my last resort option.

I didn't install these extensions, I'm assuming they where installed when I created the VM a year or so ago. Does anyone have any idea why the extensions suddenly stopped working? Thanks.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-07-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。