启动镜像:
kvm -m 1024 -drive file="CentOS5.5.qcow2.10G, index=0, if=scsi, boot=on -boot c -net nic -net user kernel vmlinuz-************* -append root=/dev/sda2 -initrd initrd-*****
为了让UEC识别qcow2的磁盘格式,需要更改UEC各个节点(node)的 /usr/share/eucalyptus/gen_kvm_libvirt_xml文件
<domain type='kvm'><name>i-465507AB</name>
<os>
<type>hvm</type>
<kernel>kernel</kernel>
<initrd>ramdisk</initrd>
<cmdline>root=/dev/sda2 console=ttyS0</cmdline>
</os>
<features>
<acpi/>
</features>
<memory>524288</memory>
<vcpu>2</vcpu>
<devices>
<disk type='file'>
<driver type='qcow2'/>
<source file='disk'/>
<target dev='sda'/>
</disk>
<interface type='bridge'>
<source bridge='br0'/>
<mac address='d0:0d:46:55:07:AB'/>
<model type='e1000'/>
</interface>
<serial type="file">
<source path='console.log'/>
<target port='1'/>
</serial>
</devices>
</domain>