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
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