Hi Olivier, as far as I know, the CPU attribute in One is used by scheduler only in order to decide how much CPU is consumed on hosts. It has no effect on VM unless you are using cgroups. The vCPU sets how many threads could be used by the VM. The number of vCPU in Nebula determines the number of sockets in '-smp' option of KVM.
Ad setting number of CPU: Let's look on following example: my hypervisor has two quad-core CPUs with hyperthreadig giving me 16 threads in total. In such case Nebula presents the CPU value of 1600 for the hypervisor. Now I decide that I do not want to run more than 20 VMs on such hyperviso, so 1600/20=80. But because Nebula divides these values by 100, you get 80/100 = 0.8. So if you want to run no more than 20 VMs on 16 threads, you shoud set the CPU value of the templates to 0.8. Ondra On 08/01/2014 05:07 PM, Olivier Sallou wrote: On 08/01/2014 03:44 PM, Steffen Claus wrote: Did you configure the value for "vCPU" as well? It was not set at all. Adding it indeed add some core to the VM, but this is a little misleading.... But should CPU be equal to VCPU for full CPU usage? (I want to really use 2 cores => CPU = 2, VCPU = 2) Thanks ________________________________ 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 _______________________________________________ Users mailing list Users@lists.opennebula.org<mailto:Users@lists.opennebula.org> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Steffen Claus Fraunhofer-Institut für Algorithmen und Wissenschaftliches Rechnen (SCAI) Schloss Birlinghoven D-53754 Sankt Augustin Tel: +49 2241 14-2511 steffen.cl...@scai.fraunhofer.de<mailto:steffen.cl...@scai.fraunhofer.de> http://www.scai.fraunhofer.de -- Olivier Sallou IRISA / University of Rennes 1 Campus de Beaulieu, 35000 RENNES - FRANCE Tel: 02.99.84.71.95 gpg key id: 4096R/326D8438 (keyring.debian.org) Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438 _______________________________________________ Users mailing list Users@lists.opennebula.org<mailto:Users@lists.opennebula.org> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ________________________________ This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you for understanding.
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org