KVM muito lento no Ubuntu 12.04

1

Eu uso o Ubuntu 12.04 64-bit e o KVM, meu CPU é Core i5 3.3 GHz e tenho 8 GB de RAM DDR3. Eu corro o Windows 7 no KVM e é extremamente lento. Meu colega de trabalho usa o Debian na mesma configuração do PC e pode rodar o Windows 7 extremamente rápido! Onde pode estar meu problema?

  

sudo cat /etc/libvirt/qemu/windows.xml

<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE 
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh edit windows
or other application using the libvirt API.
-->

<domain type='kvm'>
  <name>windows</name>
  <uuid>5c685175-baea-0ca6-591f-8269d923ffb8</uuid>
  <memory>2097152</memory>
  <currentMemory>2097152</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='pc-1.0'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/libvirt/images/windows.img'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <interface type='network'>
      <mac address='52:54:00:94:63:91'/>
      <source network='default'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'/>
    <sound model='ich6'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <video>
      <model type='vga' vram='262144' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>

UPD: Eu habilitei o Intel-VT antes de instalar o KVM. Eu também instalei drivers do VirtIO, então minha máquina virtual com o Windows 7 tem disco assim:

    
por Guy Fawkes 04.09.2012 / 09:41

3 respostas

1

Na minha pequena experiência é melhor usar essas configurações (pelo menos trabalho para mim)

type disk = qcow2
cache  = none
i/o mode = native

Talvez tente

    
por elbarna 26.04.2016 / 00:27
0

Habilite o mecanismo do Intel-VT nas configurações do BIOS.

    
por WhiteIntel 04.09.2012 / 10:03
0

Altere "cache" (режим временных файлов) para o virtio disk1 para NONE (do padrão)

    
por andrew667 15.09.2013 / 13:51