User Tools

Site Tools


gentoo_vmware

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gentoo_vmware [2014/11/24 01:14] (current)
0.0.0.0 created
Line 1: Line 1:
 +====== 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 <​tt>​.config</​tt>​ files are stored in subversion, under [[https://​dev.sihnon.net/​svnpriv/​configs/​kernel/​vmware/​|configs:/​kernel/​vmware/​]].
 +
 +Compile the kernel using <​tt>​genkernel</​tt>,​ which will set up an initramfs supporting LVM and framebuffer splashes:
 +
 +{{Root|<​code>​0@@</​code>​}}
 +
 +{{Kernel|2.6.28-gentoo-r1|<​code>​1@@</​code>​}}
 +
 +==== 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|<​source lang="​bash">​
 +layman -a vmware
 +</​source>​}}
 +
 +==== 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|<​syntax lang="​gentoo-conf-d">​
 +modules_2_6="​${modules_2_6} vmxnet"​
 +module_vmxnet_2_6=""​
 +</​syntax>​}}
 +
 +Start the <​tt>​vmware-tools</​tt>​ daemon, and ensure it autostarts on boot:
 +{{Root|<​source lang="​bash">​
 +rc-update add vmware-tools default
 +/​etc/​init.d/​vmware-tools start
 +</​source>​}}
 +
 +This daemon makes use of the <​tt>​vmware</​tt>​ 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 <​tt>​net</​tt>​ by modifying the init configuration as so:
 +{{File|/​etc/​conf.d/​vmware-tools|<​syntax lang="​gentoo-conf-d">​
 +rc_need="​net"​
 +</​syntax>​}}
 +
 +==== 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|<​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.
 +{{Root|<​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>​}}
 +
 +==== 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 <​tt>​lscpi</​tt>​ output:
 +<​code>​2@@</​code>​
 +
 +===== Todo =====
 +  * ...
gentoo_vmware.txt · Last modified: 2014/11/24 01:14 by 0.0.0.0