Defensive Cyber Operations

From Bobs Projects
Jump to: navigation, search


Setting up a mini-Range on CSIT lab computer

Using Kali Linux as the host O/S.

  • download Kali ISO and dd to USB device
  • boot from USB
  • use sda1 as /boot
  • use sda4 as swap (will auto-detect)
  • use sda2 as partition for LV
  • create VG "lxc" on LV
  • create LV "root" on "lxc" (16GB)
  • create LV "var" on "lxc" (8GB)
  • finish install
  • login

Networking

  • sudo apt-get install bridge-utils
  • edit /etc/network/interfaces to set up bridge (use br0)
  • reboot, make sure networking is working correctly

Install KVM

Generally, following instructions from How to use KVM from the command line on Debian or Ubuntu

  • sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-dev libvirt-client uuid

Fix bridge-helper (if broken), following Features/HelperNetworking, in particular:

  • sudo chmod u+s /usr/lib/qemu/qemu-bridge-helper
  • sudo echo "allow br0" > /etc/qemu/bridge.conf

Add user to libvirt-qemu group:

  • sudo adduser cecsit libvirt-qemu

Reboot for things to stabilise.