使用VMware Converter将Linux物理机转为虚拟机
VMware P2V
·
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)
更多推荐
所有评论(0)