cookbook 'kvm', '~> 0.4.0', :supermarket
kvm (5) Versions 0.4.0 Follow11
Installs/Configures/tuning kvm
cookbook 'kvm', '~> 0.4.0'
knife supermarket install kvm
knife supermarket download kvm
KVM
DESCRIPTION
Install KVM Hypervisor on Ubuntu, Debian, CentOS or RHEL
REQUIREMENTS
OS
- Ubuntu (tested)
- Debian
- CentOS (tested host)
- RHEL
Cookbooks
- sysctl: https://github.com/Youscribe/sysctl-cookbook
- modules: https://github.com/Youscribe/modules-cookbook
- sysfs: https://github.com/Youscribe/sysfs-cookbook
- cpu: https://github.com/Youscribe/cpu-cookbook
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.
Dependent cookbooks
cpu >= 0.0.0 |
sysfs >= 0.0.0 |
modules >= 0.0.0 |
sysctl >= 0.0.0 |
ntp >= 1.2.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.4.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.4.0 failed this metric
FC038: Invalid resource action: kvm/recipes/host_tuning.rb:36
FC120: Do not set the name property directly on a resource: kvm/recipes/guest_tuning.rb:23
FC120: Do not set the name property directly on a resource: kvm/recipes/host_tuning.rb:89
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.4.0 passed this metric
Publish Metric
0.4.0 passed this metric
Supported Platforms Metric
0.4.0 passed this metric
Testing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.4.0 passed this metric
0.4.0 failed this metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.4.0 failed this metric
FC038: Invalid resource action: kvm/recipes/host_tuning.rb:36
FC120: Do not set the name property directly on a resource: kvm/recipes/guest_tuning.rb:23
FC120: Do not set the name property directly on a resource: kvm/recipes/host_tuning.rb:89
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.4.0 passed this metric
Publish Metric
0.4.0 passed this metric
Supported Platforms Metric
0.4.0 passed this metric
Testing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.4.0 passed this metric
0.4.0 failed this metric
FC120: Do not set the name property directly on a resource: kvm/recipes/guest_tuning.rb:23
FC120: Do not set the name property directly on a resource: kvm/recipes/host_tuning.rb:89
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.4.0 passed this metric
Publish Metric
0.4.0 passed this metric
Supported Platforms Metric
0.4.0 passed this metric
Testing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.4.0 passed this metric
0.4.0 passed this metric
0.4.0 passed this metric
Testing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.4.0 passed this metric
0.4.0 failed this metric
0.4.0 passed this metric