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 11.3.0.39 evaluation license on unsupported KVM host Ubuntu 14.04.

Reference. Many thanks!

KVM host
# tail -1 /etc/lsb-release ;uname -ri
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"
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-11.3.0.39.0.qcow2.zip 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'>
 <name>BIGIP-VE</name>
 <uuid>266d7e1c-5ed5-289b-734d-05d3189040d5</uuid>
 <memory unit='KiB'>3072000</memory>
 <currentMemory unit='KiB'>3072000</currentMemory>
 <vcpu placement='static'>1</vcpu>
 <resource>
   <partition>/machine</partition>
 </resource>
 <os>
   <type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
   <boot dev='hd'/>
 </os>
 <features>
   <acpi/>
   <apic/>
   <pae/>
 </features>
 <clock offset='utc'/>
 <on_poweroff>destroy</on_poweroff>
 <on_reboot>restart</on_reboot>
 <on_crash>restart</on_crash>
 <devices>
   <emulator>/usr/bin/kvm-spice</emulator>
   <disk type='file' device='disk'>
     <driver name='qemu' type='qcow2'/>
     <source file='/media/hattori/disk1/KVM_images/BIGIP-11.3.0.39.0.qcow2'/>
     <target dev='vda' bus='virtio'/>
     <alias name='virtio-disk0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
   </disk>
   <controller type='usb' index='0'>
     <alias name='usb0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
   </controller>
   <controller type='pci' index='0' model='pci-root'>
     <alias name='pci.0'/>
   </controller>
   <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>
   <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'/>
   </interface>
   <serial type='pty'>
     <source path='/dev/pts/26'/>
     <target port='0'/>
     <alias name='serial0'/>
   </serial>
   <console type='pty' tty='/dev/pts/26'>
     <source path='/dev/pts/26'/>
     <target type='serial' port='0'/>
     <alias name='serial0'/>
   </console>
   <input type='tablet' bus='usb'>
     <alias name='input0'/>
   </input>
   <input type='mouse' bus='ps2'/>
   <input type='keyboard' bus='ps2'/>
   <graphics type='vnc' port='5902' autoport='yes' listen='127.0.0.1'>
     <listen type='address' address='127.0.0.1'/>
   </graphics>
   <sound model='ich6'>
     <alias name='sound0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
   </sound>
   <video>
     <model type='cirrus' vram='9216' heads='1'/>
     <alias name='video0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
   </video>
   <memballoon model='virtio'>
     <alias name='balloon0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
   </memballoon>
 </devices>
 <seclabel type='none'/>
</domain>


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.
http://blog.routedlogic.net/2013/04/27/f5-virtual-edition-on-fedoranon-el-systems/

check /PLATFORM file.
[root@localhost:NO LICENSE] / # cat /PLATFORM
platform=Unknown
family=Unknown
host=Unknown

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
family=0x80000000
host=SERVER_APPLIANCE
systype=0xb" > /PLATFORM
fi

  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
platform=Z100
family=0x80000000
host=SERVER_APPLIANCE
systype=0xb


  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
Password:
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.

https://devcentral.f5.com/questions/running-bigip-113039-on-oracle-virtualbox-under-mac-os-1092

follow the above instructions.

edit /bin/qp
# cat /bin/qp
#!/bin/sh
#
# 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
fi


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

   pid=$!
   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
       break
       fi
   else
       break
   fi
   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
   done

   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
       fi
       if [ -n "$systype" ]; then
           echo "systype=${systype}" >> /PLATFORM
       fi
       echo "${platform}"
       rm -f /tmp/platform_info
       exit 0
   fi
   else
   if [ -n "$pid" ]; then
       kill -9 $pid > /dev/null 2>&1
   fi
   rm -f /tmp/platform_info
   fi
fi
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:system_id=Z99
Info:system_family=0x80000000
Info:system_type=0xb
Info:system_if=Z99
Info:host_id=Z99
Info:base_mac=@leave this unchanged@
Info:mac_offset=0

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.