Linux_创建母版,快速克隆,如何移动虚拟机.ziw
2017年1月9日, 星期一
Linux_创建母版,快速克隆,如何移动虚拟机
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231935684-1291810411.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231936092-987309648.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231936448-111387993.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231936733-1652357172.png)
1. 安裝虚拟机
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231937133-40443554.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231937489-1913737286.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231937837-819224983.jpg)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231938168-313357839.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231938450-351394439.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231939002-1955232727.jpg)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231939287-1816158737.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231939732-915102961.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231940141-1545657309.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231940583-475817522.jpg)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231941102-912790038.jpg)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231941651-2012345253.jpg)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231942092-1115372933.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231942567-1126581400.jpg)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231942987-492342891.jpg)
2. 建立母版——第一次启动虚拟机
2.2 配置虚拟机IP
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231944364-2092341694.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231944170-1191839568.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231944364-2092341694.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231944656-510054002.png)
2.3 删除网卡设备与配置文件映射关系文件
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231944912-1592572670.png)
2.4 设置开机关闭防火墙
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231945121-1782850155.png)
2.5 关闭selinux
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231945353-2098724115.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231945638-1565274275.png)
2.6 重启网络
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231945872-1926465481.png)
2.7 检查--ping
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231946156-1076700059.png)
2.8 设置dns服务
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231946398-2143369897.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231946614-469995653.png)
2.9 关机,马上拍照,克隆
poweroff
3. 克隆其他主机
3.1 修改主机名及主机IP
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231946912-962885083.png)
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231947153-87639116.png)
vi /etc/sysconfig/network-scripts/ifcfg-eth0
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231947381-569646760.png)
3.2 修改hosts
vi /etc/hosts
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231947626-315654514.png)
3.3 重启虚拟机
init 6
(reboot)
3.4 验证网络
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231947936-767315843.png)
xshell
![](https://images2018.cnblogs.com/blog/1093657/201808/1093657-20180822231948329-751739227.png)