cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Beigel <>
Subject Re: vm use more cpu than restricted [kvm]
Date Thu, 01 Dec 2016 03:46:37 GMT
Hallo Simon

This is the xml file of the virtual machine.

greets Stefan

<domain type='kvm' id='7'>
  <description>Ubuntu 14.04 (64-bit)</description>
  <memory unit='KiB'>512000</memory>
  <currentMemory unit='KiB'>512000</currentMemory>
  <vcpu placement='static'>1</vcpu>
  <sysinfo type='smbios'>
      <entry name='manufacturer'>Apache Software Foundation</entry>
      <entry name='product'>CloudStack KVM Hypervisor</entry>
      <entry name='uuid'>0c795c99-5bab-46f8-a321-71e3e398036b</entry>
    <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
    <smbios mode='sysinfo'/>
  <clock offset='utc'>
    <timer name='kvmclock'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw' cache='none'/>
      <target dev='hdc' bus='ide'/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    <controller type='usb' index='0'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
    <interface type='bridge'>
      <mac address='06:0b:00:00:00:15'/>
      <source bridge='cloudbr0'/>
        <inbound average='25600' peak='25600'/>
        <outbound average='25600' peak='25600'/>
      <target dev='vnet8'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
    <serial type='pty'>
      <source path='/dev/pts/4'/>
      <target port='0'/>
      <alias name='serial0'/>
    <console type='pty' tty='/dev/pts/4'>
      <source path='/dev/pts/4'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='5903' autoport='yes' listen=''>
      <listen type='address' address=''/>
      <model type='cirrus' vram='9216' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
    <memballoon model='none'>
      <alias name='balloon0'/>
  <seclabel type='none'/>

2016-12-01 2:14 GMT+01:00 Simon Weller <>:

> Hi Stefan,
> This sounds very odd.
> Can you do a virsh dumpxml <vdomainid from virsh list> on the host so we
> can see what configuration has been written to the xml configuration?
> Thanks,
> Simon
> ________________________________
> From: Stefan Beigel <>
> Sent: Wednesday, November 30, 2016 3:29 PM
> To:
> Subject: vm use more cpu than restricted [kvm]
> Hi,
> I'am using cloudstack with a small scale deployment and the following
> configuration:
> cloudstack version: 4.8
> hosts:
>  - cpu: 2x 2400 mhz
>  - memory: 4GB
>  - os: ubuntu 14.04 64 bit
> vm:
>  - cpu: 1x 500 mhz
>  - memory: 500 mb
>  - os: ubuntu 14.04 64 bit
> I tried some tests and when I utilize the vm to 100% the host gets utilize
> to 50%.
> So one vm with 500 mhz gets 2400 mhz from the hosts.
> Is this normal or a bug?
> I enabled the "cpu cap" option for the used service offering.
> Hope someone can Help.
> Greets Stefan

View raw message