1.下载VMware Converter
访问VMware官网,注册后即可下载

2.将软件安装至一台Windows设备,一路默认典型安装即可

3.待转换的物理机、安装有Converter的Windows设备、安装有VMware ESXI/workstation的设备,三者需在同一局域网

4.以管理员身份运行Converter

5.登录Linux物理机,进行如下配置
执行如下命令编辑sudo权限文件:

sudo -i
visudo

将文件修改为如下内容:

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL
your_user_name ALL=(ALL:ALL) NOPASSWD: ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
your_user_name ALL=(ALL:ALL) NOPASSWD: ALL
# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL
your_user_name ALL=(ALL:ALL) NOPASSWD: ALL
# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d

(注:将 your_user_name 替换为要使用的用户名,一般为登录用户名即可)
修改完成后Ctrl+O保存,Ctrl+X退出

6.如运行有docker服务,执行命令停止docker服务

systemctl stop docker

7.打开Converter软件,按实际情况选择设备类型、输入地址、输入用户名密码进行转换即可

8.全部完成后,断开物理机连接再打开虚拟机进行验证,避免IP冲突

(参考:http://runxinzhi.com/plank-p-6692905.html)

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐