安装母盘虚拟机可以选择本地安装,也可以选择网络安装的办法。

本地安装需要有rhel6.5的镜像

网络安装需要将rhel6.5的镜像挂载在httpd上(我的挂载为/var/www/html/rhel)

本次采用本地安装

virt-manager打开虚拟机管理器新建虚拟机

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

进入安装引导界面:选择第二个

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

yum源配置,软件安装,删掉/etc/udev/rules.d  下面的70开头的文件,设置selinux为disabled,将防火墙关掉(iptables,ip6tables)

取消开机自启:chkconfig iptables off

安装lftp openssh-clients vim软件

配置网络
rhel6.5虚拟机封装

更改主机名

rhel6.5虚拟机封装

添加本地解析

rhel6.5虚拟机封装

删除绑定网卡的MAC地址

rhel6.5虚拟机封装

重启网络

rhel6.5虚拟机封装

搭建yum源,在真机中搭建6.5网络yum源,母板机使用

rhel6.5虚拟机封装

rhel6.5虚拟机封装

关闭selinux

rhel6.5虚拟机封装

关闭防火墙,设置为开机不启动

rhel6.5虚拟机封装

安装常用软件

rhel6.5虚拟机封装

生成快照

qemu-img create -f qcow2 -b rhel6.5-2.qcow2 hy1

qemu-img create -f qcow2 -b rhel6.5-2.qcow2 hy2

qemu-img create -f qcow2 -b rhel6.5-2.qcow2 hy3

创建完成后,在虚拟管理器分别以三个快照添加虚拟机

rhel6.5虚拟机封装

 

rhel6.5虚拟机封装

rhel6.5虚拟机封装

创建完成后,分别修改三个虚拟机的主机名和IP地址即可

rhel6.5虚拟机封装

rhel6.5虚拟机封装

rhel6.5虚拟机封装

相关文章: