kvm 制作eucalyptus(UEC)镜像的一些记录

启动镜像:

         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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值