【发布时间】:2018-01-31 13:12:49
【问题描述】:
我在 Azure 中创建了一个名为 hostmaster 的虚拟机,它有一个私有 IP 地址,并且可以通过 supermaster 访问(同一子网中的另一个天蓝色虚拟机)。 VM 的主机名是master_machine。我按照此链接中的步骤 - https://blog.kloud.com.au/2017/06/09/the-quickest-way-to-create-new-vms-in-azure-from-existing-vm-snapshots-mostly-with-powershell/ 创建快照并在旧虚拟机存在时重新创建新虚拟机。
新虚拟机创建成功,其名称为hostmaster_copy。但是,主机名是相同的,即master_machine。这与旧 VM 具有来自不同子网的不同 IP。我尝试从 supermachine 执行 ssh 并给了 ssh master_machine,我登录到了新的虚拟机,而不是旧的虚拟机。
我只能通过supermaster 的 IP 登录到旧 VM。旧的所有 DNS 设置都消失了。有没有办法恢复或重置旧 VM 的 DNS 设置?
【问题讨论】:
标签: linux powershell azure ssh dns