一、kvm通过iso 安装镜像
1、生成空的img文件
qemu-img create -f qcow2 /opt/data/rock-feibiao/slse11-sp4/SLES-11-SP4-DVD-x86_64-GM-DVD1.img -opreallocation=metadata 20G
2、参考xml文件: 更改 name iso位置 img位置
默认cpu mode 使用 ide 硬盘,后面可再安装virtio驱动
# more /opt/data/rock-feibiao/slse11-sp4/SLES-11-SP4-DVD-test.xml
<domain type='kvm'>
<name>rock_SLES-11-SP4-DVD-test-02</name>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>2</vcpu>
<cputune>
<shares>100</shares>
</cputune>
<os>
<type arch='x86_64' machine='rhel6.3.0'>hvm</type>
<boot dev='hd'/>
<bootmenu enable='yes'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<!--
&l