Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
kvm [2010/03/29 23:57]
a
kvm [2012/04/14 14:13]
stojan
Line 1: Line 1:
 ====== KVM ====== ====== KVM ======
 +** 
 +Creating VMs from Debian repositories** 
 +<code> 
 +virt-install -n vmserver -r 2048 --os-type=linux --os-variant=debiansqueeze \ 
 +--disk /backups/vmserver.raw,device=disk,bus=virtio,size=15,sparse=true,format=raw -w bridge=br0,model=virtio \ 
 +--vnc --noautoconsole --location  http://cdn.debian.net/debian/dists/stable/main/installer-amd64/ 
 +</code>
  
 [[http://www.linux-kvm.com/content/get-performance-boost-backing-your-kvm-guest-hugetlbfs|Get a performance boost by backing your KVM guest with hugetlbfs]] [[http://www.linux-kvm.com/content/get-performance-boost-backing-your-kvm-guest-hugetlbfs|Get a performance boost by backing your KVM guest with hugetlbfs]]
Line 15: Line 21:
  
    hugetlbfs       /hugepages  hugetlbfs       defaults        0 0    hugetlbfs       /hugepages  hugetlbfs       defaults        0 0
 +
 +<note tip>**Calculate the number of huge pages you require**
 +
 +On x86, large pages are 2MB in size so you need to find out how many 2MB pages you need to back your kvm guest. Let’s say you want to use 512 MB for your guest machine then divide 512 by 2 to get 256 pages. Add a few extra pages for additional memory requirements, lets say 40 pages to give a total of 296 pages. Record this value as you’ll need it later on.</note>
  
    echo 296 >  /proc/sys/vm/nr_hugepages    echo 296 >  /proc/sys/vm/nr_hugepages
kvm.txt · Last modified: 2012/04/14 14:25 by stojan
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready