吸烟
有害健康!

P2V迁移:使用VMware Converter将物理机转换为虚拟机的步骤与常见问题(转换源为远端Linux)

一、环境准备

P2V转换remote linux拓扑图

由于我没有Linux物理机,用windows电脑上的VMware Workstation Pro开了一台linux虚拟机来代替。系统版本是centos 7。

需要注意的是:转换源为非本地的系统时,ESXI上会生成一个临时的操作系统,需要给这个临时的操作系统配置辅助网络,进而从转换源处拷贝数据,从而实现转换。

二、转换过程

1.新建转换任务

点击”Convent Machine”新建转换任务

2.选择待转换的源系统

Select Source Type选项选择“Powered on”和“remote linux machine”因为当前系统时开机的。输入Linux的IP和root账号密码。

点击“View source details”可以查看到源linux的相关信息。

点击Next下一步。

3.转换目的选择

这一步选择转换的目的,选择VMware Infrastructure product,并输入vCenter的账号密码连接。

vCenter_Converter-_Standalone-Select_the_target

设置虚拟机的名字。

如果vCenter管理了多台ESXI主机,到这步需要选择将物理机转换到哪台ESXI主机上。

4.设置转换任务的参数

设置辅助网络IP地址(临时用,不冲突即可)和网卡Vlan

5.查看正在转换的任务

Vcenter上可以看到虚拟机

登录vcenter,载ESXI主机上可以看到生成临时的操作系统,进入该临时虚拟机的web控制台如下:

6.转换完成

15G的Linux,百兆网络花了10分钟,转换的速度取决于网络传输速度,其他并不费时间。

这是转换后的虚拟机,登录测试了一下,没啥大毛病,后续修改下IP、安装Vmtools等。

三、常见问题

1.报错“Unable to query the live Linux source machine.”

报错“Unable to query the live Linux source machine.”

查看日志如下:

2024-01-08T10:48:06.442+08:00 warning vmware-converter-server[08024] [Originator@6876 sub=vmomi.soapStub[3]] SOAP request returned HTTP failure; <<io_obj p:0x08381b48, h:2504, <pipe '\\.\pipe\vmware-converter-worker-soap'>, <pipe '\\.\pipe\vmware-converter-worker-soap'>>, /converter/sdk>, method: query; code: 500(Internal Server Error)
2024-01-08T10:48:12.888+08:00 warning vmware-converter-server[04320] [Originator@6876 sub=vmomi.soapStub[3]] SOAP request returned HTTP failure; <<io_obj p:0x08381940, h:868, <pipe '\\.\pipe\vmware-converter-worker-soap'>, <pipe '\\.\pipe\vmware-converter-worker-soap'>>, /converter/sdk>, method: query; code: 500(Internal Server Error)
2024-01-08T10:48:23.785+08:00 warning vmware-converter-server[03320] [Originator@6876 sub=vmomi.soapStub[3]] SOAP request returned HTTP failure; <<io_obj p:0x08381050, h:2476, <pipe '\\.\pipe\vmware-converter-worker-soap'>, <pipe '\\.\pipe\vmware-converter-worker-soap'>>, /converter/sdk>, method: query; code: 500(Internal Server Error)

解决方法】

您需要先支付 18.88元 才能查看此处内容!立即支付

2.迁移失败,提示“FAILED: A general system error occurred:Missing Vstor2 driver or not started.”

翻译成中文是这样的:失败:一般系统错误发生:Vstor2驱动缺失或未启动。

【解决方法】:

您需要先支付 18.88元 才能查看此处内容!立即支付

3.迁移任务启动很久了,一直卡在1%,取消后提示报错“Error: Unable to connect to the Converter helper server on the destination virtual machine”

先来看下日志:


1/8/24 2:42 PM
Connecting to the Converter helper server on the destination virtual machine.  //正在连接目标虚拟机上的转换器辅助服务器。
1/8/24 2:40 PM
Waiting for the destination virtual machine to boot up as the Converter helper server.  //等待目标虚拟机作为转换器辅助服务器启动。
1/8/24 2:40 PM
Connecting the Converter helper ISO image to the destination virtual machine.   //将转换器辅助ISO镜像连接到目标虚拟机。
1/8/24 2:40 PM
Powering on the destination virtual machine to run as the Converter helper server.  //启动目标虚拟机以作为转换器辅助服务器运行。
1/8/24 2:40 PM
Task: Convert physical machine.  //任务:转换物理机器。

【解决方法】:

您需要先支付 18.88元 才能查看此处内容!立即支付

4.报错“FAILED: A general system error occurred: # 192.168.15.9:22 SSH-2. 0-OpenSSH_7.4 Network error. Host 192.168.15.9 key can’t be retrieved(return code 2)”

先看VMware Converter的日志

2024-01-09T09:48:16.034+08:00 warning vmware-converter-server[01868] [Originator@6876 sub=vmomi.soapStub[55]] SOAP request returned HTTP failure; <<io_obj p:0x0ab8bd90, h:916, <pipe '\\.\pipe\vmware-converter-worker-soap'>, <pipe '\\.\pipe\vmware-converter-worker-soap'>>, /converter/sdk>, method: waitForUpdates; code: 500(Internal Server Error)
2024-01-09T09:48:16.034+08:00 error vmware-converter-server[13884] [Originator@6876 sub=Default] [task,352] [LRO] Unexpected Exception: Fault cause: vmodl.fault.SystemError
--> 
2024-01-09T09:48:16.035+08:00 info vmware-converter-server[13884] [Originator@6876 sub=Default] [task,381] [task-11] -- ERROR -- Convert: vmodl.fault.SystemError
--> (vmodl.fault.SystemError) {
-->    faultCause = (vmodl.MethodFault) null, 
-->    faultMessage = <unset>, 
-->    reason = "# 192.168.15.9:22 SSH-2.0-OpenSSH_7.4
--> # 192.168.15.9:22 SSH-2.0-OpenSSH_7.4
--> # 192.168.15.9:22 SSH-2.0-OpenSSH_7.4
--> write (192.168.15.9): Connection reset by peer
--> Network error. Host 192.168.15.9 key can't be retrieved.
-->  (return code 2)"
-->    msg = ""
--> }

【解决方法】:

您需要先支付 18.88元 才能查看此处内容!立即支付
赞(1) 打赏
未经允许不得转载:交换云生 » P2V迁移:使用VMware Converter将物理机转换为虚拟机的步骤与常见问题(转换源为远端Linux)
分享到

评论 抢沙发

交换云生

始于1908

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫