KVM Cores / vcpus

Hi,

ich möchte mich kurz fassen.

Ich möchte eine Windows 10 VM betreiben, wo ich die CPU ‘durchreiche’ und 4 Cores pinne.

Ich kann tun und machen was ich will, ich bekomme immer nur 4 vCPUs welche in Windows auch wirklich als CPUs angesehen werden.

Daher das Problem, dass ich nur 2 “Cores” nutzen kann.

Des weiteren emuliert UCS mir IMMER nur eine Qemu CPU, ich möchte aber die vom Host haben.

Irgendwelche Ideen?

Hier meine Config:

<domain type='kvm'>
  <name>Test-VM-01</name>
  <uuid>d2173d24-f73a-4751-98f6-13c9ef2be803</uuid>
  <description>Neue Amirada VM</description>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
    <vcpupin vcpu='1' cpuset='1'/>
    <vcpupin vcpu='2' cpuset='2'/>
    <vcpupin vcpu='3' cpuset='3'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-i440fx-2.8'>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='1' cores='4' threads='1'/>
  </cpu>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/vms/s-vwin32'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/libvirt/images/virtio-win-0.1.135.iso'/>
      <target dev='hda' bus='ide'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='piix3-uhci'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:4e:ec:25'/>
      <source bridge='br-net-0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='none' model='none'/>
  <seclabel type='dynamic' model='dac' relabel='yes'/>
</domain>

lg,
Rene

Moin,

lesen Sie sich doch bitte mal diesen Thread durch. Dort wurden beide Ihrer Fragen (»Sockets vs Cores« und »CPU-Typ«) ausgiebig behandelt.

Gruß,
mosu

Hallo,

ich bin halbwegs vertraut mit Qemu, KVM, Sockets und Cores.

Viel mehr habe ich das Problem, dass änderungen an der Topologie einfach nicht übernommen werden.

Mittlerweile habe ich herausgefunden, dass die VM laufen muss, und ich diese mit ‘virsh destroy’ abschießen muss, dass änderungen übernommen werden

Liebe Grüße

Mastodon