虚拟机的克隆
1.机器克隆
2.vmware 虚拟网络
3.克隆机器
1.机器克隆
1.准备模板机
2.网络配置 => ip 静态ip
网卡:
vim /etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO=“static”
ONBOOT=“yes”
IPADDR=192.168.41.11
GATEWAY=192.168.41.2
DNS1=192.168.41.2
3.机器自带没用的东西 去除掉
1.jdk卸载掉:
rpm -qa | grep java
xxx
xx
x
卸载:
rpm -e xxx --nodeps
rpm -e xx --nodeps
rpm -e x --nodeps
2.hostname
vim /etc/hostname
bigdata11
3.内网ip 与hostname 映射
vim /etc/hosts
192.168.41.11 bigdata11
192.168.41.12 bigdata12
192.168.41.13 bigdata13
192.168.41.14 bigdata14
192.168.41.15 bigdata15
192.168.41.16 bigdata16
4.防火墙关闭:打开所有端口
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
2.vmware 虚拟网络
1.关闭虚拟机
2.虚拟网络:
编辑=》虚拟网络=》vm8=》
子网ip:192.168.41.0
子网掩码:255.255.255.0
nat设置:192.168.41.2
3.开机:
验证内网ip : ifconfig
92.168.41.11 bigdata11
4.远程登录
xshell :
ip
用户名
密码
port
3.克隆机器
注意:
创建完整克隆
1.修改克隆机器的内网ip
vim /etc/sysconfig/network-scripts/ifcfg-ens33
2.hostname
vim /etc/hostname
3.重启机器
1142

被折叠的 条评论
为什么被折叠?



