Chef cookbook to install KVM on Debian based distros
Switch branches/tags
Clone or download
#16 Compare This branch is 64 commits ahead of natlownes:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
attributes
recipes
templates/default
.gitignore
.kitchen.yml
.rubocop.yml
.travis.yml
Berksfile
Gemfile
README.md
Rakefile
chefignore
metadata.rb

README.md

KVM

Build Status CK Version

DESCRIPTION

Install KVM Hypervisor on Ubuntu, Debian, CentOS or RHEL

REQUIREMENTS

OS

  • Ubuntu (tested)
  • Debian
  • CentOS (tested host)
  • RHEL

Cookbooks

USAGE

Default recipe

Detect the server role from OHAI : host or guest. And install minimum packages. For security, the default recipe doesn't install a kvm server, you need to install it with kvm::host

host recipe

Install minimum packages and configuration to do kvm virtualization.

guest recipe

Disable ntp because kvm-clock is preferred in the guest.

host-tuning recipe

Install packages and configuration to enhance your kvm host.

  • Set vm.swappiness = 0 if the kernel < 3.5 and cpu has ept flag.
  • Load vhost_net module on Ubuntu/debian to speed up networking.
  • Avoid cpu frequency change to prevent potential clock drifting.
  • Enable transparent huge pages

guest-tuning recipe

Install packages and configuration to enhance your kvm guest.

  • Change the block IO scheduler according to the attribute default["kvm"]["guest"]["tuning"]["io_scheduler"]. By the default the noop scheduler is used.