In the previous part of this tutorial we deployed OSSIM instance. Now it’s time for initial configuration.
- As a good start, let’s configure IP address. VM should have static private address. It can be configured via Azure Portal. Go to Virtual machines (classic) and select OSSIM VM. Then show all settings and select IP address on “General” tab.
- Use your ssh client to connect to the VM.
ssh –l adminuser your_dnsname.cloudapp.net
- Change to root user.
sudo su -
- From the menu select 3 – Jailbreak System and confirm by choosing Yes.
- We have extended our virtual disk, however root partition is still 8 GB. It’s time to fix it. First of all, turn off swap.
- Use fdisk utility to edit partition layout. Enter p to show current partition layout.
- Enter d to delete partitions. Start with the highest number (5). Delete all partitions.
- Create new primary partition (n). Follow defaults. Linux type partition is created.
- Add bootable flag (a).
- Write changes (w).
- Use partprobe command to re-read partition table.
- Now it is necessary to resize filesystem. It can be accomplished by:
- Have you noticed that swap is missing? Let’s add it via waagent. Edit /etc/waagent.conf.
ResourceDisk.Format=y # Format if unformatted. If 'n', resour$
ResourceDisk.Filesystem=ext4 # Typically ext3 or ext4. FreeBSD image$
ResourceDisk.EnableSwap=y # Create and use swapfile on resource d$
ResourceDisk.SwapSizeMB=2048 # Size of the swapfile
- To apply changes unmount /mnt and restart waagent.
service walinuxagent restart
- Finally, configure OSSIM management interface. Exit to OSSIM menu and select System Preferences -> Configure Network -> Setup Management Network.
- Set hostname, DNS settings and any setting you may need. To access OSSIM web interface create Windows VM in the same network (it shouldn’t be accessed from the internet).