试用Azure时无法重置虚拟机的管理员密码

在忘记管理员密码的情况下,可以远程重置服务器的管理员密码是云计算服务的一个优势,这是使用自己的物理服务器无法实现的。

但是,在使用Azure的时候,我们找遍Azure管理控制台也没找到可以重置虚拟机(Virtual Machine)管理员密码的地方。

Google一下发现原来Azure根本没有提供这个功能:

来自微软Windows Azure论坛上的官方回答(Forgotten VM Password):

As of now there is no way Subscription owner to reset the password externally or outside the Azure VM.

来自serverfault的问答(How to reset the admin password on VM on Windows Azure?):

A:The virtual machines on Windows Azure allow to connect from RDP. But how can I reset the administrator password if the password has been lost?

Q:There is no way to do this now, but you can get the data off of the drive if you need to. Please see the Microsoft answer here.

来看看其他云计算服务商的情况:

1、亚马逊AWS的EC2虚拟机是可以重置管理员密码的,操作方法如下(来自EC2 Windows password recover):

I ran across this scenario and found a solution using the unique setup of EC2 on another site: http://www.smattie.com/2012/01/23/video-remotely-reset-windows-password-via-ec2-config-service/

The video is long, so to summarize the steps:

Create a new scratch EC2 instance running 2003 server, and log into it.

Shut down your lost instance (the one you can't log into) from the AWS console.

On the EC2 console, go to Elastic Block Store/Volumes and find your C: disk volume, and Detach it.

On that same volume, attach it to your scratch EC2 instance. You can see it appear in Disk Manager and you'll get a new D: drive letter.

Go to D:\Program Files\Amazon\Ec2ConfigService\Settings\ and edit config.xml with notepad

The first setting in the file is for the Ec2SetPassword plugin; change the State field from Disabled to Enabled. Save & close.

On the AWS console, Detach the volume from the scratch instance (don't worry, it safely detaches from Windows)

Attach the volume to your original lost instance, as /dev/sda1

Start the instance. After a few minutes, run the Get Windows Password function which will have the newly generated password.

2、阿里云直接可以在管理控制台重置云服务器的管理员密码,操作时需要进行手机或邮箱验证。

建议Azure能够增加这个功能,并希望这个功能成为云计算服务的标配。

查看本栏目更多精彩内容:http://www.bianceng.cnhttp://www.bianceng.cn/Servers/cloud-computing/

时间: 2024-08-29 02:48:09

试用Azure时无法重置虚拟机的管理员密码的相关文章

试用Azure时遭遇第一次故障

目前我们在用Azure跑"找找看"的索引服务,详见博文云计算之路:用Azure解决"找找看"磁盘IO问题. 今天13:00左右首次遭遇Azure故障,造成找找看站点无法正常访问.当时Azure虚拟机上的索引服务无法访问,远程桌面也无法连接Azure中仅有的两台虚拟机.进入Azure管理控制台查看,两台虚拟机都处理于正常运行状态,重启虚拟机,依然无法连接. 猜测可能是虚拟机所在的物理机遇到了网络故障.于是,通过修改Virtual machine size,让Azure

试用Azure:上不了高速的跑车,无法跨Cloud Service

从阿里云的踩坑大师,到Azure的抹黑大师,我们似乎成了云计算负面用户的典型,可是我们还是忍不住想表达自己真实的使用感受.如果有错误的地方,欢迎大家批评! 在Azure上建好虚拟网(Vitual Network)之后(详见云计算之路-试用Azure:如何建立虚拟机之间的内网连接),虚拟机(Virtual Machine)之间需要进行内网通信,通信时使用计算机名比直接使用内网IP更友好.更方便.更能应对变化. 在使用阿里云的时候,我们只能在每台虚拟机的hosts中添加计算名与IP之间的映射,但是如

试用Azure:数据库备份压缩文件在虚拟机上的恢复速度测试

测试环境:Windows Azure上海机房,虚拟机配置为大型(四核,7 GB 内存),磁盘情况见下图. 数据库备份压缩文件大于为12.0 GB (12,914,327,552 bytes),放置于Temporary Storage(D:). 数据库恢复操作命令如下: RESTORE DATABASE [cnblogstext] FROM DISK = N'D:\cnblogstext.bak' WITH FILE = 1, MOVE N'CNBlogsText' TO N'F:\DATA\CN

Azure中如何建立虚拟机之间的内网连接

在阿里云上,同一个帐户创建的所有虚拟机(云服务器)之间的内网是直接连通的.而Azure则完全不一样,一开始使用时有点不知所措,后来摸索出来了--在Azure中只有处于同一个虚拟网络(Virtual Network)的同一个子网(subnet)中的虚拟机才能直接通过内网通信,通过这篇博文分享一下. 开始使用Azure时,如果你直奔主题直接创建虚拟机(Virtual Machine),虽然虚拟机有内网IP(INTERNAL IP ADDRESS),但它们之间是隔离的,无法直接进行内网通信. 要想实现

远程登录-Azure上的Linux虚拟机万一无法远程接入了怎么办?

问题描述 Azure上的Linux虚拟机万一无法远程接入了怎么办? 突然想到,Azure上的Linux虚拟机万一无法远程接入了(可能是网络故障.防火墙配置错误.权限配置错误.服务出错等等等等--各种原因)该怎么办? 不能远程登录进去,靠什么来诊断调试呢? 我现在能想到的一个办法(还不确定是否可行)是把磁盘映像mount到另一台虚拟机上修改配置文件,但前提知道问题出在哪里,并且可以通过修改配置解决.如果原因不明的问题又该怎么办呢? 解决方案 你好, 有关虚拟机无法远程接入的问题,有几点建议,你可以

在azure上的linux虚拟机中无法修改/etc/hosts文件怎么办?

问题描述 在azure上的linux虚拟机中无法修改/etc/hosts文件怎么办? 我想要修改在azure上的linux虚拟机中的/etc/hosts文件该怎么修改呢?新建虚拟机 时的用户好像没有root权限. 解决方案 创建的时候有一个默认账户,但是这个账户没有root权限,用这个账户登录,执行:sudo su 就能切换到root用户登录了. 解决方案二: 创建的时候,会有一个缺省的root用户密码吧,没root权限,你没法修改/etc 解决方案三: 首先获得linux的root权限,在开机

云计算之路-阿里云 vs Azure:创建Windows虚拟机

1. 提供的操作系统 阿里云提供的Windows操作系统有:Windows Server 2003, Windows Server 2008, Windows Server 2008 R2 Azure提供的Windows操作系统有:Windows Server 2012 Datacenter, Windows Server 2008 R2 SP1 2. 虚拟机创建界面 阿里云创建虚拟机的界面: Azure创建虚拟机的界面: 3. 远程连接创建好的虚拟机 阿里云: 虚拟机创建好之后,会发送手机短信

Unbuntu管理员密码初次登录时验证错误

Unbuntu管理员密码, 默认情况下是没有的, 需要设置,初次使用su登录时, 会报错: su: Authentication failure 其实并不是验证错误, 是没有设定初值; 使用: sudo passwd, 再输入登录新密码即可设定新值,使用su, 即可以登录管理员(root)用户; 如下图所示: 更多精彩内容:http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

windows azure 在哪能看虚拟机的系统

问题描述 windows azure 在哪能看虚拟机的系统 请问 windows azure 在哪能看虚拟机的系统 不知道是什么系统了... 解决方案 在门户网站打开,左侧选择虚拟机,右侧的仪表板上.