Cisco Call Manager 9.0 and 9.1 in VirtualBox Guide

As mentioned, I can confirm that Cisco Call Manager 9 (CCM9 ) does work in VirtualBox and can be installed in a similar manner to CCM7. I have had both 9.0.1 and 9.1.1 have been installed with all services running perfectly.

As we did with CCM7, CCM9 must first be installed in VMware and then moved over to VirtualBox. CCM9 is now 100% supported in VMware, so the install process should be flawless. Keep in mind though that VirtualBox is definitely not officially supported, so you will get no help from TAC. This should only be used in a lab environment.

The minimum requirements for CCM9 are the same as they were in CCM7, 1x 80GB SCSI disk with 2048MB RAM. The CUC prerequisites have changed slightly and if you use 80GB/2048MB you won’t be able to install CUC. I haven’t been bothered to find the minimum requirements for CUC but I’ll post them up when I get some time.

I’ve used VMware Workstation 8.0, but you should be able to use any version of VMware to build the initial machine. All we need to do is to have the install complete and boot successfully, all other finer details can be changed once we move over to VirtualBox.

  1. Start by creating a new VM and choose a custom config.
    1
  2.  Depending on your version of VMware this may change, but I used Workstation 8.0 as the hardware platform.
    2
  3. We don’t want to use the auto deployment scripts and we will need to modify the hardware before boot, so just choose the ISO later.
    3
  4. Any version of Red Hat should work here, but I used 64-bit version of Enterprise 6.
    4
  5. Name it appropriately.
    5
  6. One processor is enough but if you’ve got more resources to throw at it, you may be able to do it here as long as you match the same in VirtualBox later.
    6
  7. Same goes for the RAM. The minimum requirements call for 2048MB but if you’ve got more, chuck it in.
    7
  8. I hate using NAT, but it’s probably useful for labs. In any case I’ve got bridged here, but we will redo this step later in the VBox config.
    8
  9. Make sure you use SCSI here. I haven’t tried SAS but it may work too.
    9
  10. Create a new HDD.
    10
  11. Make sure this is set to SCSI, it won’t work with IDE here.
    11
  12. I’ve got the minimum as 80GB here, but if you’ve got more throw it here.
    12
  13. This is where the vmdk is stored, make sure you take note of the location as we will need this file later to import into VBox.
    13
  14. Finish it up.
    14
  15. Edit your VM before powering it on, we’ve got a few things to do here.
    15
  16. Select the CD/DVD drive and browse for your ISO.
    16
  17. Select your ISO.
    17
  18. I’ve finished up here, but if you want you can remove the floppy, sound cards etc.
    18
  19. Power on the VMWare image.
    19
  20. The install process here is exactly the same as a typical CCM9 install, I’ve included it just for the sake of doing so.
    20

  21. 21
  22. Notice here that CUC isn’t available because our hardware config is too low speccd.
    22

  23. 23

  24. 24

  25. 25

  26. 26

  27. 27

  28. 28

  29. 29

  30. 30

  31. 31

  32. 32

  33. 33

  34. 34

  35. 35

  36. 36

  37. 37

  38. 38

  39. 39

  40. 40
  41. This will take quite a while.
    41
  42. Once the installation has finished, log in and shut it down.
    42
  43. Now it’s time to fire up VirtualBox.
    43
  44. Add a new Red Hat 64-bit guest.
    44
  45. Make sure your memory size is the same as what you built in VMware.
    45
  46. We need to not add a new hard drive here (we will be reusing the one built by VMware).
    46
  47. Just accept this.
    47
  48. We need to edit our VM before powering it on.
    48
  49. Remove the SATA controller, if you remember we built the VM in VMware using SCSI disks.
    49
  50. Add a SCSI controller.
    50
  51. Select Choose Existing Disk.
    51
  52. Browse to the vmdk file that was outputted by VMware.
    52
  53. Your disk setup should now look like this.
    53
  54. Choose the IDE CDROM drive to boot from the CentOS live boot disk. Note that you can boot of any live distro, I actually used the Ubuntu 12.04 live CD because I was having issues with remote key forwarding to the VM whilst using CentOS.
    54
  55. Again, I hate NAT’ed NIC’s so I switched mine to bridged.
    55
  56. Mount your CCM partition and chroot to it.
    56
  57. vi/nano/whatever the hardware_check.sh script in /usr/local/bin/base_scripts/ which is similar to what we did in CCM7.
    57
  58. Find the function check_deployment() as shown below.
    582
  59. Like we did for CCM7 edit out the isDeploymentValidForHardware function.
    592
  60. Make sure you save the file, I used vi to edit this so :wq! it.
    602
  61. Throw the following lines in to change the hardware type to match those by VMware.

    vboxmanage setextradata “<VM name>” “VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion” “6 ”
    vboxmanage setextradata “<VM name>” “VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor” “VMware”
    vboxmanage setextradata “<VM name>” “VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor” “Phoenix Technologies LTD”
    vboxmanage setextradata “<VM name>” “VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct” “VMware Virtual Platform”

    61

  62. Now you’re ready to fire up CCM9 in VirtualBox so just run that thang.
    62
  63. On bootup you should be able to see the OS detecting all your hardware as VMware devices – this is a good thing, don’t worry.
    63
  64. If you receive some weird output, don’t worry too much, the important thing is that the OS boots and services start successfully.
    64
  65. Again, ignore any of these types of errors, this is why this shouldn’t be used in production.
    65
  66. Login, hooray!
    66
  67. Because the hardware has been modified slightly, the OS is unable to detect the vCPU and the amount of RAM.
    672
  68. However, everything still works perfectly 😉
    682

Just a few notes about the install. In the CCM7 install I did before, I added a new user whilst chroot’ed over to the CCM partition so we could SSH in later to modify the check_deployment() script. I only attempted a few times, but every time I tried my SSH user couldn’t log in. All permissions were set correctly, the user was added to the OS properly but SSH wouldn’t work. I’m sure if I dug deeper I would probably find some sort of SSH permission script in Cisco’s funky land, but for the purposes of getting CCM9 into VirtualBox it wasn’t needed.

I’ll be posting some more info on the topic as I use this more. Also, due to CCM9’s new licensing model I *may* look at loading licenses on to get this running past the 60 day limitation.

Good luck

x90

3 thoughts on “Cisco Call Manager 9.0 and 9.1 in VirtualBox Guide

  1. […] Follow my previous post about building Call Manager 9 in VirtualBox. […]

  2. Thanks for posting these great instructions.

    To eliminate the errors show in step 64, you can either add a serial (COM) port to the VM (step 55), or disable the program using it in /etc/inittab after step 60 (while still chrooted using the live cd).

    The “Init SD0” error message is the kernel telling you that it can’t start a program because the serial port it listens to doesn’t exist.

  3. @vboxRulez
    That’s an awesome bit of info, thanks so much!

Leave a Reply

Your email address will not be published. Required fields are marked *