嵌套虚拟机的搭建
- 在vmware 虚拟机设置中,打开处理器的虚拟化Intel VT-x/EPT 或AMD-V/RVI(v)
- 配置虚拟机yum 源,安装qemu、qemu-kvm、libvirt
- 从阿里镜像源下载centos iso 阿里源 centos-7-x86
- 准备虚拟机创建所需xml,centos.xml
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>centos-test</name>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<vcpu placement='static'>4</vcpu>
<os>
<type arch='x86_64' machine='rhel6.5.0'>hvm</type>
<boot dev='hd'/>
<boot dev='cdrom'/>
<bootmenu enable='yes