从存储在Blob中的ISO创建Azure VM [英] Create an Azure VM from an ISO stored in a blob

查看:181
本文介绍了从存储在Blob中的ISO创建Azure VM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个来自MSFT的ISO文件,该文件是可启动DVD.我将其上传到存储帐户,并将其存储在Azure的Blob中.现在,我想用它来创建虚拟机.选择创建VM时,我看不到它是一个选项.有什么想法我可以提供这个吗?我的笔记本电脑没有足够的资源来创建Hyper-V VM,然后再上传磁盘.

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.

谢谢!

推荐答案

在Azure中,您没有控制台对VM的访问权限.访问VM的唯一方法是某种远程访问,例如RDP,PowerShell Remoting或SSH.

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.

我不知道您的ISO包含什么,但是我认为这是某种安装ISO,在这种状态下您没有远程访问权限,但需要控制台访问权限(在Azure中是不可能的).

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).

如果我错了,并且您有一个ISO文件可以像许多Linux发行版一样直接引导到操作系统中,则可以使用ISO到VHD转换器(请参见例如

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.

但是请记住,您的ISO应该包含一个操作系统,该操作系统可以直接通过DHCP获取IP地址,并具有用于远程访问的开放端口.否则,您将无法访问它.

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.

还要注意,Azure当前仅支持VHD,不支持VHDX.

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

这篇关于从存储在Blob中的ISO创建Azure VM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆