Linux_创建母版,快速克隆,如何移动虚拟机.ziw
Posted 一夜飘零
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux_创建母版,快速克隆,如何移动虚拟机.ziw相关的知识,希望对你有一定的参考价值。
2017年1月9日, 星期一
Linux_创建母版,快速克隆,如何移动虚拟机
![](https://image.cha138.com/20210512/63e5d782ab224d18b0cdc3a91af254c7.jpg)
![](https://image.cha138.com/20210512/160bc276baa743e0930a2aaf0709363d.jpg)
![](https://image.cha138.com/20210512/8b9077dc8ea344708110a73a000549ef.jpg)
![](https://image.cha138.com/20210512/3ef0e41f26824097a33b115f0be4c65e.jpg)
1. 安裝虚拟机
![](https://image.cha138.com/20210512/a5fab84079854c74824cf02818c5c91f.jpg)
![](https://image.cha138.com/20210512/74ce08b1e5884684acbf90bcf53c0246.jpg)
![](https://image.cha138.com/20210512/9b541c85aeaa497981e101cc6e5f548b.jpg)
![](https://image.cha138.com/20210512/0ed2a2971a5b461b8e3ef5f59f0fa928.jpg)
![](https://image.cha138.com/20210512/f7e271b146004946a00e6d95a78a844a.jpg)
![](https://image.cha138.com/20210512/2e61500a240f43668fa46976531769f9.jpg)
![](https://image.cha138.com/20210512/a25143d691f44e92aecf24c6cd6a458f.jpg)
![](https://image.cha138.com/20210512/4f21534b64b246749db05ae3b74242b7.jpg)
![](https://image.cha138.com/20210512/f9234f1604044a21ac33b94f56ecf64b.jpg)
![](https://image.cha138.com/20210512/9f49bcbb268d4b0f9e4128eb6e3de984.jpg)
![](https://image.cha138.com/20210512/fc0333c2a74b45c49fe72d5a3a97d753.jpg)
![](https://image.cha138.com/20210512/55b40c2593bc451f93bc9e98d5561f96.jpg)
![](https://image.cha138.com/20210512/7d03ae4f887b4c6093442f097a816458.jpg)
![](https://image.cha138.com/20210512/6187c0d1b3484fdf8e0f26c74314d57e.jpg)
![](https://image.cha138.com/20210512/a246196711a442deba61be878740de2f.jpg)
2. 建立母版——第一次启动虚拟机
2.2 配置虚拟机IP
![](https://image.cha138.com/20210512/bcb322a287794d7e94e882e604472e84.jpg)
![](https://image.cha138.com/20210512/7b939cb26d7d4f80a6112ed18a19d0b6.jpg)
![](https://image.cha138.com/20210512/bcb322a287794d7e94e882e604472e84.jpg)
![](https://image.cha138.com/20210512/dc4ed5a408a74431941e6c9b8917e424.jpg)
2.3 删除网卡设备与配置文件映射关系文件
![](https://image.cha138.com/20210512/fd9006e899614c2a8bbb110fa1f64938.jpg)
2.4 设置开机关闭防火墙
![](https://image.cha138.com/20210512/1f2b6e492b3f49108c6b0e04560d8fde.jpg)
2.5 关闭selinux
![](https://image.cha138.com/20210512/334331f798804e30a7d9237e031d899d.jpg)
![](https://image.cha138.com/20210512/c3cd3a972de84260b8b509495b0938b4.jpg)
2.6 重启网络
![](https://image.cha138.com/20210512/8ec52961a10642aba7a4d57e4ffa2fcc.jpg)
2.7 检查--ping
![](https://image.cha138.com/20210512/46da30a6453c40b8b0000423914dc72c.jpg)
2.8 设置dns服务
![](https://image.cha138.com/20210512/a27ad2bfb09644308a4657c0e3a0b78b.jpg)
![](https://image.cha138.com/20210512/e006184f2dbe4dee82fb71221b84aa4e.jpg)
2.9 关机,马上拍照,克隆
poweroff
3. 克隆其他主机
3.1 修改主机名及主机IP
![](https://image.cha138.com/20210512/f6de24bf5dea4e1397bb07434b64c3f7.jpg)
![](https://image.cha138.com/20210512/0ec27c26dc88459cbcecec2b1636e3a8.jpg)
vi /etc/sysconfig/network-scripts/ifcfg-eth0
![](https://image.cha138.com/20210512/9bc863a6d8e24f20aacaaa91836b6a9a.jpg)
3.2 修改hosts
vi /etc/hosts
![](https://image.cha138.com/20210512/58428e194b704cc9ad93a42c97412f5c.jpg)
3.3 重启虚拟机
init 6
(reboot)
3.4 验证网络
![](https://image.cha138.com/20210512/deb075c366dd4952853631cfcc8c3e58.jpg)
xshell
![](https://image.cha138.com/20210512/ce5a7c92e73f44f28e5ba060f2a9280e.jpg)
其他:如何移动虚拟机?
以上是关于Linux_创建母版,快速克隆,如何移动虚拟机.ziw的主要内容,如果未能解决你的问题,请参考以下文章