Centos 6 KVM Host


This post is in the category: Incomplete

POSTS IN THIS CATEGORY ARE INCOMPLETE. Read at your own risk!


These are my general notes on configuring a Linux KVM server running on CentOS 6. Hopefully some day this will be complete enough to be in the Guides section.

Base OS Install

Best not use a Kickstart file for this one as we have some custom partitioning.

PXE boot the installer with no KS, or use the net install ISO.

Make this partition huge: /var/lib/libvirt/images. Maybe consider doing /var as a whole.

This server won’t hopefully be doing much else, so no need for a separate /home partision.

Bridge Networking

Pay particular order to the commands here. This commands are safe to run through SSH as long as they are done in order.

Create the network script for br0.

[root]$ vim /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE="br0"
BOOTPROTO="dhcp"
ONBOOT="yes"
TYPE="Bridge"
NM_CONTROLLED="no"

Modify the eth0 config script.

[root]$ vim /etc/sysconfig/network-scripts/ifcfg-eth0

Create / modify these lines:

BRIDGE="br0"
NM_CONTROLLED="no"

Restart networking. Holding your breath is required if you are doing this through SSH.

[root]$ /etc/init.d/network restart

If the GUI is installed, the network manager will show no connection…but who cares.

Configure Host Shutdown Procedure

Configure how to shutdown guests when the host is shut down. The comments in this file makes it pretty self-explanatory.

[root]$ vim /etc/sysconfig/libvirt-guests

Script to Create new VMs

TODO

This entry was posted in Incomplete and tagged on by .

About Andrew Wells

I have been developing on the LAMP stack since about 2006. I run Ubuntu XFCE on my desktop and have a history of managing Ubuntu and CentOS servers. I code web applications mostly in PHP but have experience with other languages as well. When I'm not working, I can be found working in my home lab or out snowboarding, hiking, camping, or biking depending on the season.

Leave a Reply

Your email address will not be published. Required fields are marked *