lost and found ( for me ? )

install F5 BIG IP 11.3 VE trial on unsupported KVM host Ubuntu 14.04

Here are trial and error logs when deploying LTM VE evaluation license on unsupported KVM host Ubuntu 14.04.

Reference. Many thanks!

KVM host
# tail -1 /etc/lsb-release ;uname -ri
3.13.0-27-generic x86_64

# qemu-system-x86_64 -version
QEMU emulator version 2.0.0 (Debian 2.0.0+dfsg-2ubuntu1), Copyright (c) 2003-2008 Fabrice Bellard

unpack BIGIP- and deploy that image via virt-manager.

vNIC * 2 ( driver virtio )
vCPU * 1
Memory 3GB
serial console * 1
Guest OS : RHEL 6

xml file of the VM.
root@ubuntu:~# virsh dumpxml BIGIP-VE
<domain type='kvm' id='7'>
 <memory unit='KiB'>3072000</memory>
 <currentMemory unit='KiB'>3072000</currentMemory>
 <vcpu placement='static'>1</vcpu>
   <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
   <boot dev='hd'/>
 <clock offset='utc'/>
   <disk type='file' device='disk'>
     <driver name='qemu' type='qcow2'/>
     <source file='/media/hattori/disk1/KVM_images/BIGIP-'/>
     <target dev='vda' bus='virtio'/>
     <alias name='virtio-disk0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
   <controller type='usb' index='0'>
     <alias name='usb0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
   <controller type='pci' index='0' model='pci-root'>
     <alias name='pci.0'/>
   <interface type='network'>
     <mac address='52:54:00:da:97:91'/>
     <source network='default'/>
     <target dev='vnet2'/>
     <model type='virtio'/>
     <alias name='net0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
   <interface type='network'>
     <mac address='52:54:00:28:9b:b2'/>
     <source network='network1'/>
     <target dev='vnet3'/>
     <model type='virtio'/>
     <alias name='net1'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
   <serial type='pty'>
     <source path='/dev/pts/26'/>
     <target port='0'/>
     <alias name='serial0'/>
   <console type='pty' tty='/dev/pts/26'>
     <source path='/dev/pts/26'/>
     <target type='serial' port='0'/>
     <alias name='serial0'/>
   <input type='tablet' bus='usb'>
     <alias name='input0'/>
   <input type='mouse' bus='ps2'/>
   <input type='keyboard' bus='ps2'/>
   <graphics type='vnc' port='5902' autoport='yes' listen=''>
     <listen type='address' address=''/>
   <sound model='ich6'>
     <alias name='sound0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
     <model type='cirrus' vram='9216' heads='1'/>
     <alias name='video0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
   <memballoon model='virtio'>
     <alias name='balloon0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
 <seclabel type='none'/>

start the VM and connect to the VM with virsh console.

user : root
pass : default

virsh # console BIGIP-VE

BIG-IP 11.3.0 Build 39.0
Kernel 2.6.32-220.el6.f5.x86_64 on an x86_64
localhost.localdomain login: root
Password: default

[root@localhost:NO LICENSE] config # Jun  2 08:23:21 localhost emerg logger: Re-starting chmand
Jun  2 08:23:31 localhost emerg logger: Re-starting chmand
Jun  2 08:23:41 localhost emerg logger: Re-starting chmand

error messages appear on the console.

Let’s check /var/log/ltm logs to look into this.
unknown platform..
Jun  2 08:35:01 localhost err chmand[6295]: 012a0003:3: Shutdown of LCD message pass handling failed: Unknown Type
Jun  2 08:35:11 localhost notice chmand[6295]: 012a0005:5: Stopping chmand
Jun  2 08:35:11 localhost notice chmand[6310]: 012a0005:5: Starting ChassisManager (chmand)
Jun  2 08:35:11 localhost info chmand[6310]: 012a0006:6: Found platform 'Unknown' in /PLATFORM
Jun  2 08:35:11 localhost err chmand[6310]: 012a0003:3: unexpected init failure : HalSvcs: platform name not found in HAL system types
Jun  2 08:35:11 localhost crit chmand[6310]: 012a0002:2: critical platform initialize failure. exiting...
Jun  2 08:35:11 localhost err chmand[6310]: 012a0003:3: Shutdown of LCD message pass handling failed: Unknown Type
Jun  2 08:35:21 localhost notice chmand[6310]: 012a0005:5: Stopping chman

Googling this error, I found the following article.

check /PLATFORM file.
[root@localhost:NO LICENSE] / # cat /PLATFORM

modify /bin/qp file and reboot the VM by following the above URL.

on the LTM VE.
  29  2014-06-02 08:40:53 mv /bin/qp /root/qp.backup
  31  2014-06-02 08:41:05 rm -f /bin/qp
  32  2014-06-02 08:41:10 vi /bin/qp

[root@localhost:NO LICENSE] config # cat /bin/qp
echo "Z100"

if [ ! -f /PLATFORM ] ; then
 echo "platform=Z100
systype=0xb" > /PLATFORM

  34  2014-06-02 08:41:31 chmod 7500 /bin/qp
  36  2014-06-02 08:41:40 /bin/qp

[root@localhost:NO LICENSE] config # cat /PLATFORM

  39  2014-06-02 08:42:02 reboot

Okay, no errors appear on the console.
virsh # console BIGIP-VE
ドメイン BIGIP-VE に接続しました
エスケープ文字は ^] です

BIG-IP 11.3.0 Build 39.0
Kernel 2.6.32-220.el6.f5.x86_64 on an x86_64
localhost.localdomain login: root
Last login: Mon Jun  2 08:48:01 on ttyS0
[root@localhost:NO LICENSE] config #
[root@localhost:NO LICENSE] config #

user : admin
pass : admin

Next step is activating a trial key via GUI.

nn, error, I can’t activate the key..
Error 51133, F5 registration key is not compatible with the detected platform - This platform

Googling this error, I found the following article.


follow the above instructions.

edit /bin/qp
# cat /bin/qp
# Script to query and return platform type (D44, D50, etc.)
# It uses the info saved in /PLATFORM if available; otherwise it
# simply calls halid & returns the appropriate field (writing /PLATFORM as well)!
if [ -f /PLATFORM ]; then
   grep platform= /PLATFORM | sed -e 's/platform=//'
   exit 0

if [ -f /bin/halid ]; then
   /bin/halid > /tmp/platform_info &

   cnt=$(expr 10)
   while [ $cnt -gt 0 ]; do
   if [ -n "$pid" ]; then
       kill -0 $pid > /dev/null 2>&1
       if [ $? -eq 1 -a -f /tmp/platform_info ]; then
   cnt=$(expr $cnt - 1)
   # amazingly, /bin/sleep is off-by-one when run by 'throttle' which is what
   # live install does, so give plenty of time here waiting for
   # halid to finish. ( 'time throttle sleep 5' = 4.2s reliably)
   sleep 5

   if [ $cnt -gt 0 -a -f /tmp/platform_info ]; then
   cnt=`grep -c system_id  /tmp/platform_info`
   if [ -n "$cnt" -a $cnt -eq 1 ]; then
       family=`grep system_family /tmp/platform_info | awk '{print $3}'`
       platform=`grep system_id /tmp/platform_info | awk '{print $3}'`
       host=`grep host_id /tmp/platform_info | awk '{print $3}'`
       systype=`grep system_type /tmp/platform_info | awk '{print $3}'`
       echo "platform=${platform}" > /PLATFORM
       echo "family=${family}" >> /PLATFORM
       if [ -n "$host" ]; then
           echo "host=${host}" >> /PLATFORM
       if [ -n "$systype" ]; then
           echo "systype=${systype}" >> /PLATFORM
       echo "${platform}"
       rm -f /tmp/platform_info
       exit 0
   if [ -n "$pid" ]; then
       kill -9 $pid > /dev/null 2>&1
   rm -f /tmp/platform_info
echo "platform=Unknown"  > /PLATFORM
echo "family=Unknown" >> /PLATFORM
echo "host=Unknown" >> /PLATFORM
echo "Unknown"
exit 1

edit /tmp/platform_info
# cat /tmp/platform_info
Info:base_mac=@leave this unchanged@

reboot the VM and activate a trial license via GUI.

Okay, I was able to activate a trial license.
F5 LTM 11.3 VE trial is running within Ubuntu 14.04 KVM host !!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.