- 16GB, Intel G3258, MSI CSM-H87M-G43 motherboard
- 128GB samsung 840 evo
- install ubuntu 14.04 server
- openssh server
- static ip address and dns
- bikeshed package for purge-old-kernels
- molly-guard
- cpu-checker
- lvm2 to handle partitions for vms
- https://help.ubuntu.com/community/KVM
- http://www.naturalborncoder.com/virtualization/2014/10/23/installing-and-running-kvm-on-ubuntu-14-04-part-1/
- get rid of virbr0:
- why can't I use --iso option? I get mount point /proc doesn't exist
- somewhere said to use full path to the ISO, still didn't work
sudo install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils virtinst lvm2
Bridged Networking: https://help.ubuntu.com/community/KVM/Networking
http://www.tecmint.com/apt-cache-server-in-ubuntu/
Let KVM machines use disk devices directly for performance.
Some ideas for the future: http://serverfault.com/a/677646
sudo pvcreate /dev/sda4
sudo pvcreate /dev/sdb4
sudo vgcreate vg-kyon-ssd /dev/sda4
sudo vgcreate vg-kyon-mech /dev/sdb4
Turtles, man.
sudo lvcreate -n cthost1 -L 64g vg-kyon-mech
sudo ./cthost1.sh
sudo virsh -c qemu:///system
list --all
start cthost1
console cthost1
https://help.ubuntu.com/community/OpenVPN
Modify /etc/default/openvpn and change so it doesn't start openvpn automatically.
sudo openvpn --daemon --config /etc/openvpn/client.conf --writepid /run/openvpn.pid
sudo kill -TERM $(cat /run/openvpn.pid)
cat /sys/module/kvm_intel/parameters/nested
# should be Y
http://www.lucainvernizzi.net/blog/2014/12/03/vagrant-and-libvirt-kvm-qemu-setting-up-boxes-the-easy-way/ https://liquidat.wordpress.com/2014/03/03/howto-vagrant-libvirt-multi-multi-machine-ansible-and-puppet/
vagrant-setup.sh
virt-install, to run the iso install process and have an encrypted filesystem.
vmbuilder process is easier. This is here just for reference.
VMNAME=cthost1
sudo virt-install \
--connect=qemu:///system \
--name=$VMNAME \
--ram=4096 \
--location="$HOME/ISOs/ubuntu-14.04.2-server-amd64.iso" \
--os-type=linux \
--os-variant=ubuntutrusty \
--disk /dev/mapper/vg--kyon--mech-cthost1,bus=virtio \
--graphics none \
--extra-args='console=tty0 console=ttyS0,115200n8 serial' \
--network=bridge=br0,model=virtio