This is an old revision of the document!
A virtual appliance with NAV preinstalled
Several users have requested an appliance with NAV preinstalled. That's why this appliance was made. Unfortunately is getting a bit outdated and needs an update, as it still runs NAV 3.5 on Debian 4.0 (Etch).
Debian GNU/Linux 4.0 (aka. etch)
What the local admin needs to do after starting the appliance
log in as 'root' and change the root-password (passwd)
add a decent email-address to forward root's email to in /etc/aliases
fix the network-configuration (/etc/network/interfaces) and restart network with /etc/init.d/network restart
add networks that shall be allowed to talk to the appliance in /etc/hosts.allow (both clients to the NAV webinterface and network equipment that send SNMP traps)
also fix hostname/domainname in the following files: /etc/hosts, /etc/resolv.conf, /etc/mailname and /etc/exim4/update-exim4.conf.conf
How the virtual appliance was created
A virtual machine was created on a VMware ESX server with 512MB RAM and 4GB of disk. Choises made during installation of Debian GNU/Linux 4.0 (aka. etch):
American English as language
using LVM on the disk to ease the expand-process
all files in one large partition
After a normal installation, the following changes are made:
the user added at install-time was removed
so was the root-alias in /etc/aliases pointing to that user
backport.org- and pkg-nav.alioth.debian.org-mirrors added to /etc/apt/sources.list
installed open-vm-tools (from backports.org) and ran the commands module-assistant prepare open-vm and module-assistant auto-install open-vm to build the opem-vm-modules
installed openssh-server
added 'ALL: 127.0.0.1' to /etc/hosts.allow and 'ALL: ALL' to /etc/hosts.deny
installed nav (aptitude install –without-recommends nav) and answered yes to all question
followed /usr/share/doc/nav/README.Debian
poweroff the machine and take a snapshot
Remove the network configuration in /etc/network/interfaces.
Change the temporary root-password to an empty one in /etc/shadow (and remove /etc/shadow-).
Adjust hostname in the following files: /etc/hosts, /etc/mailname and /etc/exim4/update-exim4.conf
Power off the virtual machine and export as appliance.
Debian GNU/Linux 5.0 (aka. lenny)
An appliance based on Debian GNU/Linux 5.0 will be created once a Debian package for lenny is present.
Todo
Links