KVM

Technical Notes

These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of the category tags above for the notes in any category.

Moving from CentOS 6 to 7

KVM: setting up bridged mode

systemctl disable NetworkManager
systemctl enable network
systemctl stop NetworkManager
systemctl start network
  • The only problem with the above is that network does not seem to start on boot.
chkconfig --list network    # shows that it should be running
systemctl start network     # the

KVM disk performance

I am testing using iozone.

Here is a recommendation from serverfault.com/…o-performance

The optimal configuration is (usually) as follows:

  1. On the host, set elevator=deadline
  2. Use virtio and only virtio
  3. use raw LVs whenever possible. Qcow2 gives overhead. Files on a FS also have overhead
  4. in the VM use the elevator=noop (See blog.bodhizazen.net/…rformance)
  5. both in host and VM, use noatime,nodiratime in fstab wherever possible

Migrate Xen to KVM on RHEL/CentOS 6

Red Hat's own documentation can be found here:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtua...

Set up bridging on server:

Installing KVM on CentOS 5.5

Note that this now only works for the 64 bit version of CentOS

useful link: http://itscblog.tamu.edu/startup-guide-for-kvm-on-centos-6/

yum groupinstall "Virtualization*"
yum install dejavu-lgc-sans-fonts
echo "BRIDGE=br0" >> /etc/sysconfig/network-scripts/ifcfg-eth0
#now check it looks ok:
vi /etc/sysconfig/network-scripts/ifcfg-eth0

Syndicate content