Natenoms Wiki

Weil Teilen Spaß macht :)

Benutzer-Werkzeuge

Webseiten-Werkzeuge


Seitenleiste

Translations of this page:

Navigation



Lizenz dieses Wikis
Über dieses Wiki
Feed des Wikis
Impressum


Was gerade in meinem Blog geschieht:

en:linux:verschiedenes:kvm

Information about KVM

A collection of articles and other stuff related to Information about KVM.

* Online-Documentation from RedHat: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Host_Configuration_and_Guest_Installation_Guide/ * KVM Bestpractices from IBM: http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/topic/liaat/liaatbpkickoff.htm * KVM-Tuning: http://www.linux-kvm.org/page/Tuning_KVM * CPU-Flags: http://blog.incase.de/index.php/cpu-feature-flags-and-their-meanings/ * http://libvirt.org * http://libvirt.org/storage.html#StorageBackendLogical * http://www.ovirt.org/Develop * http://qemu-buch.de/de/index.php/QEMU-KVM-Buch/_Speichermedien/_VM-Snapshots * http://serverfault.com/questions/119949/how-to-copy-kvm-disk-image-to-lvm * http://doc.opensuse.org/documentation/html/openSUSE/opensuse-kvm/sec.libvirt.stornet.storage.html * http://redes-privadas-virtuales.blogspot.com/2011/05/taking-snapshots-on-kvm-with-lvm.html * http://redes-privadas-virtuales.blogspot.de/2011/03/taking-snapshots-on-kvm-with-libvirt.html * http://blog.allanglesit.com/2011/03/linux-kvm-managing-disk-images/ * http://www.centos.org/docs/5/html/5.2/Virtualization/chap-Virtualization-Managing_guests_with_virsh.html * http://redes-privadas-virtuales.blogspot.com/2011/03/taking-snapshots-on-kvm-with-libvirt.html * http://wiki.kartbuilding.net/index.php/KVM_Setup_on_Debian_Squeeze * CPU affinity: http://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/ch25s06.html * RAID, LUKS, LVM, KVM: http://serverfault.com/questions/453198/high-i-o-latency-with-software-raid-luks-encrypted-and-lvm-partitioned-kvm-setu

Input/Output
Tipps

Migration

Passthrough PCI devices into KVM

KVM on a USB stick

Handling with images

Free memory with KSM

KSM = [http://www.linux-kvm.org/page/KSM|Kernel Samepage Merging]

The following command shows ([http://bud-it.blogspot.de/2010/01/enabling-ksm-on-gentoo.html]) how much memory is used: <source lang=„bash“> echo „How many shared pages are being used: $1)MiB“ echo „How many more sites are sharing them i.e. how much saved: $2)MiB“ </source>

Examples

* KVM host with 5 VMs and Minecraft servers: 1525 MiB bis 1868 MiB * KVM host with 7 VMs: 802 MiB

Miscellaneous

KVM and Bridges: * http://www.linux-kvm.org/page/HOWTO1 * http://davemorris.wordpress.com/2010/11/22/kvm-snapshot-backups-with-qemu-img/ * http://tldp.org/HOWTO/BRIDGE-STP-HOWTO/set-up-the-bridge.html * http://libvirt.org/formatsnapshot.html#example * http://blog.datentraeger.li/?p=921 * http://www.linux-kvm.org/page/Virtio * http://libvirt.org/formatnetwork.html#elementsAddress * http://wiki.libvirt.org/page/Networking * http://www.linux-kvm.org/page/Main_Page * http://inqbus-hosting.de/support/dokumentation/docs/debian-unter-kvm-mit-libvirt * http://debianforum.de/forum/viewtopic.php?f=30&t=128367 * http://wiki.kartbuilding.net/index.php/KVM_Setup_on_Debian_Squeeze#Network_Setup_with_KVM * http://qemu-buch.de/de/index.php/QEMU-KVM-Buch/_Netzwerkoptionen/_Virtuelle_Netzwerke_konfigurieren/_Mehrere_QEMU/KVM-Instanzen_vernetzen/_Bridging * http://riaschissl.blogspot.com/2009/08/debiankvm-proxyarp-for-individual-ip.html * http://alexeytorkhov.blogspot.de/2009/09/mounting-raw-and-qcow2-vm-disk-images.html * http://libvirt.org/formatdomain.html#elementsDisks * https://help.ubuntu.com/community/KVM/CreateGuests * http://www.techotopia.com/index.php/Installing_a_KVM_Guest_OS_from_the_Command-line_%28virt-install%29 * http://libvirt.org/formatdomain.html#elementsNICSBridge * http://wiki.libvirt.org/page/Networking#Debian.2FUbuntu_Bridging * http://wiki.debian.org/KVM * http://www.linux-kvm.org/page/Migration * http://www.linux-kvm.org/page/Networking * http://www.linux-kvm.org/page/Main_Page * http://en.wikipedia.org/wiki/Comparison_of_platform_virtual_machines * http://virt.kernelnewbies.org/TechComparison * http://virt.kernelnewbies.org/InterWiki * http://www.linux-kvm.org/page/Networking * http://qemu-buch.de/de/index.php/QEMU-KVM-Buch/_Netzwerkoptionen/_Virtuelle_Netzwerke_konfigurieren * http://wiki.libvirt.org/page/Networking * http://pve.proxmox.com/wiki/Vision * http://mlists.in-berlin.de/pipermail/linux-l-mlists.in-berlin.de/2009-December/066096.html * http://bwachter.lart.info/linux/bridges.html * http://www.linux-magazin.de/Heft-Abo/Ausgaben/2004/12/Zugbruecke/%28offset%29/2 * http://qemu-buch.de/de/index.php/QEMU-KVM-Buch/_Speichermedien/_Images_anlegen * http://www.linux-kvm.org/page/9p_virtio

Common problems
IO performance

To avoid low io performance: * Use VIRTIO for the interface * Use the scheduler „noop“ for the harddisk with

# echo noop > /sys/block/sda/queue/scheduler

or add

elevator=noop

to the boot parameters.

  • Performance decreases from left to right: LVM > raw-image > qcow2

Information about the qcow format: http://people.gnome.org/~markmc/qcow-image-format.html.

Memory usage
Questions

* Since version xxx of qemu snapshots are saved within the qcow images. How can one use external backups instead of internal?

KVM

1)
$(cat /sys/kernel/mm/ksm/pages_shared) * $(getconf PAGESIZE) / 1024 / 1024
2)
$(cat /sys/kernel/mm/ksm/pages_sharing) * $(getconf PAGESIZE) / 1024 / 1024
en/linux/verschiedenes/kvm.txt · Zuletzt geändert: 2017/02/20 13:02 von Natenom