====== Gentoo/VMware ====== [[Category:Hosts]] [[Category:Hosts/Servers]] [[Category:Hosts/Gentoo]] ===== Filesystems ===== {| class="wikitable" cellspacing="10" |+ /dev/sda (20Gb VMDK) |- ! Partition Number ! Size ! Filesystem ! Mount point ! Notes |- | 1 | 128Mb | ext2 | /boot | |- | 2 | ~20Gb | lvm | //none// | |} And the logical filesystems are: {| class="wikitable" cellspacing="10" |+ Logical volumes |- ! Volume Name ! Size ! Filesystem ! Mount point ! Notes |- | //hostname///home | 1Gb | ext3 | /home | |- | //hostname///root | 8Gb | ext3 | / | |- | //hostname///var | 10Gb | ext3 | /var | |- | //hostname///swap | 256Mb | swap | //none// |} ===== Installation ===== See [[Local Portage Mirror]] for instructions on setting up machines to use the local portage mirror for syncing the portage tree, and downloading cached source packages. ==== Kernel ==== Full kernel .config files are stored in subversion, under [[https://dev.sihnon.net/svnpriv/configs/kernel/vmware/|configs:/kernel/vmware/]]. Compile the kernel using genkernel, which will set up an initramfs supporting LVM and framebuffer splashes: {{Root|0@@}} {{Kernel|2.6.28-gentoo-r1|1@@}} ==== Framebuffer ==== See [[Framebuffer]] for steps to set up a high resolution framebuffer. ==== Portage ==== Add the vmware overlay, which contains the latest virtual machine tools package. {{Root| layman -a vmware }} ==== Installed Software ==== Also see: * [[Gentoo#Essential packages]] === Virtualisation === * {{Package|direct=yes|app-emulation/open-vm-tools}} [[vmware]] ===== Configuration ===== ==== Virtualisation ==== Load the vmware network module on boot: {{File|/etc/conf.d/modules| modules_2_6="${modules_2_6} vmxnet" module_vmxnet_2_6="" }} Start the vmware-tools daemon, and ensure it autostarts on boot: {{Root| rc-update add vmware-tools default /etc/init.d/vmware-tools start }} This daemon makes use of the vmware group, which is defined in LDAP, and will fail to start if it can't contact the directory server. Ensure this service doesn't get started before net by modifying the init configuration as so: {{File|/etc/conf.d/vmware-tools| rc_need="net" }} ==== LDAP ==== See [[LDAP/Openldap]]. Configuration files are stored in subversion, under [[https://dev.sihnon.net/svnpriv/configs/ldap/client/|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. {{Root| /etc/init.d/ntp-client start /etc/init.d/ntpd start rc-update add ntp-client default rc-update add ntpd default }} ==== 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. {{Root| /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 }} ==== iSCSI ==== If necessary, set up iSCSI following the instructions on [[ISCSI#Client]]. ===== Maintenance ===== ===== Hardware ===== ==== lspci ==== A standard vmware virtual machine, with networking and USB interfaces might have the following lscpi output: 2@@ ===== Todo ===== * ...