This is an old revision of the document!
Table of Contents
Controller install
Alito reinstalled using the VB repo: https://www.virtualbox.org/wiki/Linux_Downloads#Debian-basedLinuxdistributions
Creating a VM
Seemingly can only be done (or is easiest) through the GUI.
No need to install any desktop packages.
Networking
Select bridged mode for bidirectional access to the LAN.
Edit /etc/network/interfaces for a static IP:
allow-hotplug eth0 iface eth0 inet static address 10.0.0.14 netmask 255.255.255.0 gateway 10.0.0.2 dns-domain local dns-nameservers 8.8.8.8
Then root@alito:/etc/network# ../init.d/networking restart (and get kicked off).
Samba for shared folders
Client/Guest
apt-get install cifs-utils
Create /etc/samba/credentials chmod 400 as root containing
username=samba_user password=samba_password
and add to fstab
//10.0.0.4/slack /alan cifs credentials=/etc/samba/credentials 0 0
cd /home mv slack slack.old ln -s /alan/alito slack
Server/Host
To reenable symlinks despite the security implications, edit /etc/samba/smb.conf
follow symlinks = yes wide links = yes
Guest Additions (for shared folders) -- DON'T DO THIS, IT'S JUST A TOY
No longer downloaded as an .iso, download, open with VirtualBox and they are added to the controller. They can be installed to a specific machine firstly by inserting the imaginary iso in the imaginary drive (Devices –> Insert ISO into drive…) and then by running the executable in '/media/cdrom0' as root.
If you get
root@alito:/media/cdrom0# ./VBoxLinuxAdditions.run bash: ./VBoxLinuxAdditions.run: Permission denied
It's probably a fstab problem. In /etc/fstab, change this:
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
To this:
/dev/sr0 /media/cdrom0 udf,iso9660 user,exec 0 0
and remount. You will also need to install “gcc, make, the header files for your Linux kernel and possibly perl”.
apt-get install gcc make linux-headers-$(uname -r) perl
Then sort permissions
adduser vboxsf slack
and log out and in again. Rm /home/slack and ln it to /media/sf_whatever.
NFS -- DON'T DO THIS, NFS AND DEBIAN HAVE BECOME A COMPLETE SHITSHOW
Install nfs-common nfs-kernel-server portmap.
Server
Config in /etc/exports
/home/slack/alito 10.0.0.14(rw,subtree_check)
Restart with root@alan:/etc# init.d/nfs-kernel-server reload
Client
Config in /etc/fstab
alan:/home/slack/alito /home/slack nfs rw,user,auto 0 0