问题
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