有没有办法将在 Win10 上构建的 VM 移动到 2012 R2 服务器上的 Hyper-V 管理器?

达夫盖伊

这是一个家庭实验室。我拿到了一台便宜的服务器 (PROLIANTDL360P),上面有 2012R2 的评估副本。我的笔记本电脑上装有 Win10 Pro(INSPIRON7786)。我一直很难找到是否有办法将我的笔记本电脑上构建的虚拟机(通过快速创建,以防发生变化)移动到具有 Hyper-V 角色的服务器上。

由于 CredSSP 循环,我什至无法连接到服务器。我将 2012R2 服务器设为 DC,然后将我的笔记本电脑添加到域中。这使我可以连接到同一 Hyper-V 管理器上的服务器,但我仍然无法移动 VM。

win10管理器

I tried using the export option and moving the Ansible VM data to a shared folder hosted on the R2 as well. While using the import feature it's failing to see the vhd using the wizard.

Darren Stults

I think Windows Server 2012 R2 supports VMs in the 5.x configuration version with Gen1 fixed-size VHDs whereas by default your Win10 HV manager will probably be using 9.x with Gen2 dynamic VHDXs. If it's not "seeing" them at all, check to see if it's simply because they are VHDX as "not seeing" in Windows is generally a matter of file extension differences.

Cost-Benefit Analysis

Yes it can be done, but you won't be able to go back and forth. AFAIK there's no way to do it directly. You have to make a sacrifice.

You have three ways to move them, none of them can be done without changing everything in some way. In practice, generally Linux distros can be rebuilt and individual files copied over as a quick solution. Your next option would be to remake the VMs in WS 2012 with downgraded VHDs, then cloning the file systems over using a disk cloning application. Finally, if you want to do what I think you really want to do, Hyper-V Server 2019 is free, you can host machines to your heart's content and move VMs back and forth at will.

Rebuilding and moving configs will be the fastest and easiest:

If you want to keep your Windows Server for all its other resources (and GUI!) then this is your best option.

Rebuilding Linux distros for specific purposes is something that you can prepare scripts for and this is a great chance to practice making them.

Create the new machines from scratch and move over any files that you realize are missing once they're installed. If you haven't learned about it yet, WinSCP makes this a breeze. You can enjoy a handy Windows interface as you search your Linux installs and copy over any files.

Downgrade your VHDs and insert into new (older-versioned) VMs

  1. You create the new VMs with hard drives that are whatever size you want them to end up as on WS 2012.
  2. You move those hard drives over to your Win 10 machine.
  3. In your Win10 VM Manager, create a new VM without a HD that boots from from a disk cloning ISO (like Gparted Live). Don't boot yet.

If it were Windows only, we could use diskpart or dism but because those are going to be EXT file systems those won't work. If GParted gives you trouble, you could also try an imaging program like Win32 Disk Imager but you might have issues going from GPT to MBR that it can't compensate for as easily. Aomei Disk Cloner is another freeware candidate.

  1. In your Win10 VM Manager, attach the old and new matching hard drives to that same VM you just made. Now boot it.
  2. In the Gparted GUI, clone the original (gen2 VHDX?) hard drive to new (downgraded/gen1 VHD) hard drive.
  3. Move the cloned gen1 VHD hard drive back to your WS 2012 machine, make sure that it is set as your primary/only hard drive, make sure that you disabled safe boot (not sure if it qualifies for VMs that old) cross your fingers and pray.

Here are two guides that have similar processes for other people's versions on how to do similar things:

https://www.magrin.one/hyper-v-gen2-to-gen1-vm-conversion.html

https://4sysops.com/archives/how-to-p2v-windows-server-2012-r2-with-uefi-and-a-gpt-disk/

Move them back and forth without CredSSP issues by upgrading your server for free:

This is the best permanent solution to keep up-to-date with updates and support and cross-compatibility, but will take a while until you figure everything out. If you want to do other things with your Windows Server, skip ahead to the next section.

If all you want is a server to host VMs, you can get the latest and greatest for free from Microsoft's official site: https://www.microsoft.com/en-us/evalcenter/evaluate-hyper-v-server-2019

You'll get a free unlimited license for Windows Hyper-V Server 2019 by just providing some personal information. Although it has no GUI and just a command prompt in a window, once you get used to it (and used to using notepad as your impromptu "GUI"...and get the CredSSP thing figured out) it should be the fastest way to run your dedicated VM server.

Make sure you remove your laptop from the domain first!


Anyway, whatever you do, it should be a lot of fun!

A side note:

在域外使用 CredSSP 跳环访问另一台计算机的 Hyper-V 管理器是一种痛苦。仅出于此目的将自己添加到域中会向您的计算机添加一堆域垃圾,如果您在进行实验时不小心,可能会将您锁定。此外,当使用 Hyper-V 管理器控制远程计算机的 Hypervisor 时,缺少足够多的选项,因此不值得。我建议(只要您使用 WS 2012)从现在开始,您只需通过删除桌面 (RDP) 连接到服务器并以这种方式访问​​其 GUI。如果您还没有尝试过 RDP,那么它非常适合。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

我可以在VHD本机启动的Windows Server 2012 R2服务器上的hyper V中运行VM吗

VT-x不可用且Windows 10上没有Hyper-V管理器

如何在Hyper-V VM上安装Ubuntu 19.04实时服务器?

ubuntu 上的 Hyper-V 管理器

有没有办法触发将在同一服务器上运行的任务?

有没有办法在构建服务器上运行 Stripe CLI?

有没有办法在远程队列管理器上发出命令?

如何在Windows 2008 R2的服务器启动时自动打开Hyper-V VM控制台?

在Windows Server 2012 R2 / IIS上运行Git服务器

如何克服 Windows 2012 R2 服务器上的 405 后错误

Hyper V 远程管理 Windows 2012 Server R2 从 Windows 10 otuside 域不起作用

有没有办法在 git 服务器(例如 GitHub)上反向忽略文件?

有没有办法让Jenkins在服务器上提供文件夹内容?

有没有办法在我的本地Dekstop上安装远程服务器

有没有办法通过前端的 Backbone 在服务器上呈现 Handlebars 模板?

有没有办法让python脚本在ubuntu服务器上运行?

有没有办法在客户服务器上隐藏我的 NodeJs 源代码?

有没有办法在移动设备上查看A-Frame检查器?

增加虚拟服务器上的RAM 超级V 2008 R2

如何在Hyper-V 2012上克隆正在运行的VM的虚拟磁盘

在Windows 10上卸载Hyper-V后没有映射的驱动器

有没有办法在PC /服务器上加载自定义事件查看器源?

不可移动的Grub2Win引导管理器。Windows 10没有卸载按钮

Microsoft Hyper-V Server 2012 R2问题

有没有办法永久更改超微服务器上NIC卡的关联?

有没有办法在反应一页应用程序中写入服务器上的文件?

有没有办法连接到 Linux 服务器上的 Rails 应用程序的控制台?

Windows 10专业版Hyper-V管理器丢失

Microsoft搜索服务:是否有OLE DB提供程序?(替代:Win2012上的索引服务器?)