1.首先保证物理机6.5镜像
mkdir /var/www/html/rhel6.5
mount /iso/rhel-server-6.5-x86_64-dvd.iso /var/www/html/rhel6.5/
vim /etc/rc.d/rc.local
2.选择本地镜像安装
3.空格取消ipv6
时区选择上海
帐号密码
1.cd /etc/udev/rules.d ,删除以70开头的文件
2.设置本地域名及解析vim /etc/hosts
3.配置yum源
4.安装需要的软件
5.selinux设置为disabled
6.修改本机名称
7.修改本机ip
8.重起网络
/etc/init.d/network restart
9.关闭火墙并永久关闭
/etc/init.d/iptables stop
/etc/init.d/ip6tables stop
chkconfig iptables off ##永久关闭
chkconfig ip6tables off
10.真机清理缓存
yum install -y ...
virt-sysprep -d rhel6.5
11.创建虚拟机快照
qemu-img create -f qcow2 -b rhel6.5.qcow2 vm1
qemu-img create -f qcow2 -b rhel6.5.qcow2 vm2
qemu-img create -f qcow2 -b rhel6.5.qcow2 vm3
12.倒入现有磁盘映像
13.给各个虚拟机镜像配置名称和ip、yum源
14.为了防止操作失误,可以删除母盘rhel6.5而保留文件