Installing Cisco Secure ACS 5.3 in VirtualBox


ACS 5.3 is supported on a hardware appliance, VMWare ESX and VMWare Server. Even though not supported, it works without modification in VMWare Player. None of the above helps us if we want to test it with switches or routers in GNS3. While version 5.2 could be installed in VirtualBox, v5.3 consistently failed installation with “Unsupported hardware” error message. After trying all possible combinations of virtual hardware in VBox it still refused to install. After some hacking I eventually managed to get working.

Installation requires modification of the ISO image provided by Cisco and a bit of cheating in the kickstart file and pre-creation of partitions in the VM. We will need ISO editor (ISOpen or MagicISO), text editor (such as Notepad++) and a Linux live CD of your choice.

VBox hardware configuration:
OS Type: RedHat
RAM: 1024
CPU: PAE/NX enabled, VT-x/AMD-V disabled
Floppy: Disabled
Storage: Disk 70GB (I used dynamically expanded), Controller SCSI, SCSI Port 0
Audio: disabled
Network: Adapter Intel PRO/1000 MT
Serial Ports & USB: Disabled

All remaining settings stay at defaults.
Now we need to modify the kickstart file – ks.cfg – found in the root of the installation disk.

Red color shows old values and blue new ones. 

Change 0 to 1 on line 36

36: VM_APPLIANCE=01

Delete line 54
54:   UDI_PID=`/sbin/cars_udi_util -p`

Set variable “ret” to 0

56:   ret="$?"0

Delete lines 57 to 61 inclusive

57: if [ "$ret" -eq 0 ]; then
58:   echo "***** Cisco UDI PID: $UDI_PID " > /dev/console
59:     case $UDI_PID in
60:       Cisco-VM-SPID)
61:         VM_APPLIANCE=1

Delete –all from line 104

104:             echo "#clearpart --all --initlabel";

Delete lines 186 to 195 inlcusive

186:   else
187:       echo "***** Error: Unsupported Hardware Configuration. " > /dev/console
188:       echo "*****        This software can only be installed on Cisco " > /dev/console
189:       echo "*****        supported hardware or Virtual Machine technology " > /dev/console
190:       echo "*****        meeting the requirements specified in the installation guide." > /dev/console
191:       echo "*****        Exiting Installation..." > /dev/console
192:       sleep 5
193:       /sbin/halt -f
194:       exit 0
195:   fi

Save the file, and replace the existing ks.cfg in the ISO image.  When saving the edited ISO make sure the it is still bootable (ISOopen shows if the disk is bootable in the main UI).

Edited ks.cfg file can be downloaded here: http://www.filefactory.com/file/a322ga9ez05/n/ks.cfg

If we try the installation with our edited ISO we’ll get further than before, the install will still fail though.
Now we need to create partitions on the disk we’ll be installing ACS to.
Boot the VM to a Live Linux distro of your choice, create 2GB partition /sda1 and format it as ext3.
Now we should be able to install ACS. Simply boot the edited installation disk and follow the prompts. 

When booting ACS sits on "ip_contract" for a few minutes so be patient it will eventually boot.

13 comments:

  1. Hi. I've done everything you mentioned on your post, I edited the ISO with UltraISO (daemon tools didn't create a correct boot disk), created my own ks.cfg file and replaced it (yours couldn't be downloaded), created the 2Gb ext3 partition on the 75Gb virtual disk (/dev/sda1), which is on a scsi controller, disk 0, but anaconda keeps crashing on me. The last error says:
    IOError: [Errno 2] No such file or directory: '/tmp/smos.part'

    That file is supposed to contain the partition info but I can't seem to find it.

    Any ideas? Or can you repost your ks.cfg file to check mine against it?

    Thanks!!!

    ReplyDelete
  2. Install Partitions with Centos 4.7 and after install ACS_v5.3

    ReplyDelete
    Replies
    1. i tried that too still get the
      IOError: [Errno 2] No such file or directory: '/tmp/smos.part'
      after partitioning any ideas?

      Delete
  3. I use http://www.slax.org/download/7.0.8/slax-English-US-7.0.8-i486.iso
    to create /sda1 partition (cfdisk plus mkfs.ext3). And everythings was ok! :)
    ACS was installed and setted up.
    Thanx a lot, author (KP)!

    ReplyDelete
    Replies
    1. Edited ks.cfg for ACS 5.3.0.40
      https://drive.google.com/file/d/0Bw3O6H6xNjV6RTZMdTlOYmx1SDQ/edit?usp=sharing

      and 5.5.0.46.
      https://drive.google.com/file/d/0Bw3O6H6xNjV6SDhEZFYxaEo1MHc/edit?usp=sharing

      For ACS 5.5 you do not need to create /sda1 partition manually!

      Delete
    2. i'm trying to install with oracle virtual box on windows 7 but still failed.

      any idea ?

      Delete
    3. Hi Михаил Золин :

      can you explain little how did you use http://www.slax.org/download/7.0.8/slax-English-US-7.0.8-i486.iso
      to create /sda1 partition (cfdisk plus mkfs.ext3
      after downloading the .iso filw , then what ?

      Delete
  4. Any idea on how to edit ks.cfg for ver 5.2 ??

    ReplyDelete
  5. Just installed it in ver 5.6.0.22 in Virtual BOx and its working fine. Thanks.

    ReplyDelete
  6. can anyone upload vmware image
    thxx

    ReplyDelete
  7. I only added a line below AFTER line 54 and it installed the same as on VMWARE -
    UDI_PID="Cisco-VM-SPID"

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. We're trying to Install 5.8, does anyone have an updated config file?

    ReplyDelete