Create an Azure VM from an ISO stored in a blob

时光毁灭记忆、已成空白 提交于 2019-12-08 09:54:46

问题


I have an ISO file from MSFT that is a bootable DVD. I uploaded it to a storage account and stored it in a blob in Azure. Now I want to use it to create a VM. When I select to create a VM, I do not see that as an option. Any ideas how I can provision this? My laptop does not have enough resources to create a Hyper-V VM to then upload the disk.

Thanks!


回答1:


In Azure you do not have console access to a VM. The only way to access a VM is some kind of remote access like RDP, PowerShell Remoting, or SSH.

I do not know what your ISO contains, but I assume that it is some kind of installation ISO in which state you do not have remote access but would need console access (which is not possible in Azure).

If I am wrong and you have an ISO file that directly boots into an operating system like many Linux distributions do then you could use an ISO to VHD converter (see e.g. https://mcloudinfo.wordpress.com/2014/02/03/convert-a-wim-or-iso-file-to-vhdx/). If that is the case I would download that ISO file inside from a VM, convert it to VHD, and put it back into your BLOB storage in Azure. After that you have to create a new VM via PowerShell.

But remember, your ISO should then contain an operating system that directly gets an IP address via DHCP and has open ports for remote access. Otherwise you cannot access it.

Also to note, Azure currently supports only VHD, not VHDX.



来源:https://stackoverflow.com/questions/35087352/create-an-azure-vm-from-an-iso-stored-in-a-blob

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!