Difference between revisions of "User:Lucas/Gentoo Install Notes"
From stoney cloud
Line 1: | Line 1: | ||
− | * hack /usr/local/scripts/netfilter/local/chains/vms/kvm_0231_chain.sh on host to allow gateway conns | + | * hack <code>/usr/local/scripts/netfilter/local/chains/vms/kvm_0231_chain.sh</code> on host to allow gateway conns |
* first hd is /dev/vda | * first hd is /dev/vda | ||
* default gentoo handbook install with lvm setup on vda3 and one large lv_root | * default gentoo handbook install with lvm setup on vda3 and one large lv_root | ||
* install lvm2 so you can build a lvm initramfs | * install lvm2 so you can build a lvm initramfs | ||
− | ** if you skip this you will have tons of fun loading lvm in the initramfs shell: lvm vgscan --mknodes && lvm lvchange -a ly vg01/lv_root | + | ** if you skip this you will have tons of fun loading lvm in the initramfs shell: <code>lvm vgscan --mknodes && lvm lvchange -a ly vg01/lv_root</code> |
− | * kernel build with: genkernel --install --lvm --menuconfig all (do not use --virtio, activate them in menuconfig instead, I had heaps of fun hunting down all the modules) | + | * kernel build with: <code>genkernel --install --lvm --menuconfig all</code> (do not use <code>--virtio</code>, activate them in menuconfig instead, I had heaps of fun hunting down all the modules) |
− | ** actually genkernel --install --lvm --kernel-config=/root/kernel.config since lazy me hates using a ui | + | ** actually <code>genkernel --install --lvm --kernel-config=/root/kernel.config all</code> since lazy me hates using a ui |
− | ** the --virtio switch seems screwed due to some oldconfig changes with the VIRTIO_MMIO system, but i haven't looked into that more | + | ** the --virtio switch seems screwed due to some oldconfig changes with the <code>VIRTIO_MMIO</code> system, but i haven't looked into that more |
− | * remember to also set GRUB_CMDLINE_LINUX="dolvm" in /etc/default/grub (as i said before, a ton of fun) | + | * remember to also set <code>GRUB_CMDLINE_LINUX="dolvm"</code> in <code>/etc/default/grub</code> (as i said before, a ton of fun) |
− | * more things to install on new machines: emerge dev-vcs/git vim | + | * more things to install on new machines: <code>emerge dev-vcs/git vim</code> |
− | * now for puppet: USE="augeas vim-syntax" emerge puppet | + | * now for puppet: <code>USE="augeas vim-syntax" emerge puppet</code> |
− | * before using puppet: emerge eix && eix-update | + | * before using puppet: <code>emerge eix && eix-update</code> |
− | * clone puppet tree: git clone https://github.com/purplehazech/purplehazech-orcatamer.git /etc/puppet/environments/development | + | * clone puppet tree: <code>git clone https://github.com/purplehazech/purplehazech-orcatamer.git /etc/puppet/environments/development</code> |
− | * install librarian: gem19 install librarian-puppet | + | * install librarian: <code>gem19 install librarian-puppet</code> |
− | * load puppet modules: cd /etc/puppet/environments/development && librarian-puppet install | + | * load puppet modules: <code>cd /etc/puppet/environments/development && librarian-puppet install</code> |
− | * run puppet like so to find the first batch of stuff to fix: puppet apply --environment=development --modulepath=/etc/puppet/environments/development/modules/:/etc/puppet/environments/developmen | + | * run puppet like so to find the first batch of stuff to fix: <code>puppet apply --environment=development --modulepath=/etc/puppet/environments/development/modules/:/etc/puppet/environments/developmen |
− | t/manifests/ -e 'include ::role::puppet::master' --noop | + | t/manifests/ -e 'include ::role::puppet::master' --noop</code> |
== TODOs == | == TODOs == | ||
− | * | + | * replace silly headers in orcatamer with block chars with something that most tools dont bork on (ie. some ascii art) |
** I removed this on Puppetfile and Modulefile to get librarian to run | ** I removed this on Puppetfile and Modulefile to get librarian to run | ||
* use github https URLs through out, they are simply proxy friendlier everywhere | * use github https URLs through out, they are simply proxy friendlier everywhere | ||
* refactor role and profile things into proper modules and use proper puppet:// data urls | * refactor role and profile things into proper modules and use proper puppet:// data urls |
Revision as of 18:35, 22 February 2014
- hack
/usr/local/scripts/netfilter/local/chains/vms/kvm_0231_chain.sh
on host to allow gateway conns - first hd is /dev/vda
- default gentoo handbook install with lvm setup on vda3 and one large lv_root
- install lvm2 so you can build a lvm initramfs
- if you skip this you will have tons of fun loading lvm in the initramfs shell:
lvm vgscan --mknodes && lvm lvchange -a ly vg01/lv_root
- if you skip this you will have tons of fun loading lvm in the initramfs shell:
- kernel build with:
genkernel --install --lvm --menuconfig all
(do not use--virtio
, activate them in menuconfig instead, I had heaps of fun hunting down all the modules)- actually
genkernel --install --lvm --kernel-config=/root/kernel.config all
since lazy me hates using a ui - the --virtio switch seems screwed due to some oldconfig changes with the
VIRTIO_MMIO
system, but i haven't looked into that more
- actually
- remember to also set
GRUB_CMDLINE_LINUX="dolvm"
in/etc/default/grub
(as i said before, a ton of fun) - more things to install on new machines:
emerge dev-vcs/git vim
- now for puppet:
USE="augeas vim-syntax" emerge puppet
- before using puppet:
emerge eix && eix-update
- clone puppet tree:
git clone https://github.com/purplehazech/purplehazech-orcatamer.git /etc/puppet/environments/development
- install librarian:
gem19 install librarian-puppet
- load puppet modules:
cd /etc/puppet/environments/development && librarian-puppet install
- run puppet like so to find the first batch of stuff to fix:
puppet apply --environment=development --modulepath=/etc/puppet/environments/development/modules/:/etc/puppet/environments/developmen
t/manifests/ -e 'include ::role::puppet::master' --noop
TODOs
- replace silly headers in orcatamer with block chars with something that most tools dont bork on (ie. some ascii art)
- I removed this on Puppetfile and Modulefile to get librarian to run
- use github https URLs through out, they are simply proxy friendlier everywhere
- refactor role and profile things into proper modules and use proper puppet:// data urls