User Tools

Site Tools


gentoo_kvm

Gentoo/KVM

Filesystems

{| class=“wikitable” cellspacing=“10”

! Partition Number ! Size ! Filesystem ! Mount point ! Notes

And the logical filesystems are:

{| class=“wikitable” cellspacing=“10”

! Volume Name ! Size ! Filesystem ! Mount point ! Notes

Installation

All the KVM machines will be set up to use binary packages for the base system, built by the host node. Only packages that require custom use flags unique to that host will be built on the virtual machine itself. New packages should be built on the build host even if they are not to be installed on the build host itself.

See Local Portage Mirror for instructions on setting up machines to use the local portage mirror for syncing the portage tree, and downloading binary or cached source packages.

Kernel

The kernel is built and stored on the host machine so that a single kernel can be maintained for all virtual machines.

todo - Document the process for configuring and installing a new kernel

Installed Software

Also see:

Configuration

LDAP

See LDAP/Openldap. Configuration files are stored in subversion, under configs:/ldap/client/.

NTP

Install NTP and configure it to start up on boot. The configuration will be pushed to the machine via DHCP, so the clock will synchronise with the local time server. <source lang="bash"> /etc/init.d/ntp-client start /etc/init.d/ntpd start rc-update add ntp-client default rc-update add ntpd default </source>

Logging

Configure network logging, as per Syslog.

Firewalls

Start with an blank firewall which can be customised per host. The ipv4 and ipv6 firewalls are disabled by default, so create the empty rule set, and start them up. <source lang="bash"> /etc/init.d/iptables save /etc/init.d/iptables start rc-update add iptables default /etc/init.d/ip6tables save /etc/init.d/ip6tables start rc-update add ip6tables default </source>

Maintenance

Virtual machines built using binary packages provided by a build host should be updated using the following incantation only:

<source lang="bash"> emerge world -kuDNav </source>

Hardware

lspci

Todo

gentoo_kvm.txt · Last modified: 2014/11/24 01:14 by 0.0.0.0