If I do the same as you did, I get the same result as you. Note that my host is an Ubuntu 14.04 server.
However, if I do this (and "virsh edit" forces some of this upon exit, so it cann't look exactly like what you did):
Code:
<vcpu placement='static'>8</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-1.7'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu mode='custom' match='minimum'>
<model fallback='allow'>core2duo</model>
<topology sockets='4' cores='2' threads='2'/>
</cpu>
Then I get what I think you wanted:
Code:
doug@desk-dev:~$ cat /proc/cpuinfo | grep "core id"
core id : 0
core id : 1
core id : 0
core id : 1
core id : 0
core id : 1
core id : 0
core id : 1
doug@desk-dev:~$ cat /proc/cpuinfo | grep "cpu cores"
cpu cores : 2
cpu cores : 2
cpu cores : 2
cpu cores : 2
cpu cores : 2
cpu cores : 2
cpu cores : 2
cpu cores : 2
doug@desk-dev:~$ cat /proc/cpuinfo | grep "physical id"
physical id : 0
physical id : 0
physical id : 1
physical id : 1
physical id : 2
physical id : 2
physical id : 3
physical id : 3
My guest VM is an Ubuntu 15.04 desktop
Bookmarks