CAos NSA on VirtualBox

From Caos Linux Wiki

Jump to: navigation, search

Contents

[edit] Purpose

To demonstrate a procedure to install cAos NSA on a Windows XP host using Virtual Box.

[edit] Prerequisites

  1. [1] Virtual Box
  2. [2] Latest current release of cAos NSA

[edit] Procedure

  1. Install and configure Virtual Box
  2. download the latest cAos ISO file.

[edit] Virtual Box setup

After installation select "new". Give your installation a name. Select Linux 2.6 as the OS Type. Select 256 MB (the default) base memory. At the Virtual hard disk, create a new, dynamically expanding image, 8G is more than enough (again the default), Finish.

Now back in the Virtual Box Console you will see your newly created VM. Double click the new installation and you should be prompted with "Welcome to the First Run wizard."

  • Select Next
  • At "Select Installation Media" choose "Image File" radio button, and browse for your cAos image file.
  • Select Next, and you should be booting the installation.

At the boot: console type install

The NSA installer should start doing it's thing. In about 5 min. it will be done.

Reboot the VM and set-up your installation as you see fit.

[edit] Windows XP Configuration

Now here's the fun part! Virtual Box allows several different types of network configuration. Since we have created a server we want the VM to be accessible to other host on our local network.

  1. NAT (Network Address Translation) - This will allow the VM to get out, but there is no way in.
  2. Host Interface - Allows you to connect to your VM form your WinXP box only.
  3. Host Interface + Windows bridging - This allows your Win XP box and any other hosts on your local network to connect to the VM.

We have set-up a cAos server and want to connect to it, and possibly have it available to the Internet so we want to do the last operation.


First shutdown your running cAos. You can't make modifications to its configuration if it's running. Highlight the installation and in the Right pane click network.

There are 3 VERY important parts to this screen.

Image:VMB-network config.PNG

To accomplish our goal, we want to...

  1. Create a new host interface - click the +card icon in the lower portion of this window, give the card any name you like. I like VM1 cAos, VM2 Redhat, etc.
  2. Use the nwe host interface - once it's created, in the "attached to:" pull down select the Host Adapter you just created.

We should be done with VirtualBox network set-up.

Now here's the tricky part.

Open the properties for "My Network Places" in Win XP. I do this my Right clicking from the desktop and selecting Properties. Here you should see your physical network card, and the VM1 host adapter you just created. There may be others in there but these are the ones of interest.

We are going to create a Network Bridge from these 2 interfaces, using the CTRL key select your physical network card and the VM card. Right click and choose "Add To Bridge" - This should take a couple of minutes. Then you should see something like the image below.

Image:Network_Bridge.PNG

A coupe of caveats here! When you crate the bridge, the MAC address of your machine changes, so if your doing DHCP reservations, they will no longer work, but you can get the new MAC and fix the reservation. Your machine will now have 2 IP addresses. If your on a corporate network this may not be allowed, at home it should work just fine.

Check the IP address on your VM...ifconfig, and you should not only be able to get to it from your host Win XP machine but any host on your internal network. If you operate your own firewall you would also be able to forward ports to this address if you so choose.

Hammered|

[edit] Disclaimer

  • cAos is no way affiliated with Virtual Box.
  • It worked for me, I have no idea if it will work for you.
  • Have fun! - That's what's it's all about!
Personal tools