[one-users] VM is always using a single CPU

Olivier Sallou olivier.sallou at irisa.fr
Fri Aug 1 03:30:43 PDT 2014


Hi,
I have an issue with CPUs, all my VMs have a single CPU whatever is set
in my sunstone template.

Executed command is:
/usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 2048 -smp
1,sockets=1,cores=1,threads=1 ....


while in my template in sunstone I see :
CPU 	2

I expect to have here 2 CPUs.

The generated deployment file is below:

<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
    <name>one-984</name>
    <cputune>
        <shares>2048</shares>
    </cputune>
    <memory>2097152</memory>
    <os>
        <type arch='x86_64'>hvm</type>
        <boot dev='hd'/>
    </os>
    <devices>
        <emulator>/usr/bin/kvm</emulator>
        <disk type='file' device='disk'>
            <source file='/var/lib/one//datastores/0/984/disk.0'/>
            <target dev='vda'/>
            <driver name='qemu' type='raw' cache='none'/>
        </disk>
        <disk type='file' device='cdrom'>
            <source file='/var/lib/one//datastores/0/984/disk.1'/>
            <target dev='hda'/>
            <readonly/>
            <driver name='qemu' type='raw'/>
        </disk>
        <interface type='bridge'>
            <source bridge='br0'/>
            <mac address='00:04:c0:a8:02:40'/>
        </interface>
        <graphics type='vnc' listen='0.0.0.0' port='6884' keymap='fr'/>
    </devices>
    <features>
        <acpi/>
    </features>
</domain>



Could you explain what is wrong ?

I am using OpenNebula 4.2  (expecting an upgrade soon...)

Thanks

Olivier

-- 


gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140801/ffff67a6/attachment.htm>


More information about the Users mailing list