Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
rishrapsody1612
Participant

Unable to load VNF CloudGuard with Bootstrap cloud-init .iso

Team - I have created a yaml file(as per article https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solut...). Yaml is converted to iso using mkisofs.
Upon booting up the VNF with this iso, it fails to run the commands.

Error during bootup:

INIT: version 2.88 booting

Booting Check Point User Space...
INIT: Entering runlevel: 3
.........
------------- This is a first boot ---------------

........................................................................../pfrm2.0/etc/cloud-init/user_data: line 1: ---: command not found
/pfrm2.0/etc/cloud-init/user_data: line 2: clishcmd:: command not found
/pfrm2.0/etc/cloud-init/user_data: line 3: -: command not found
/pfrm2.0/etc/cloud-init/user_data: line 4: -: command not found
/pfrm2.0/etc/cloud-init/user_data: line 5: -: command not found
/pfrm2.0/etc/cloud-init/user_data: line 6: -: command not found
/pfrm2.0/etc/cloud-init/user_data: line 7: -: command not found
/pfrm2.0/etc/cloud-init/user_data: line 8: -: command not found
/pfrm2.0/etc/cloud-init/user_data: line 9: -: command not found
/pfrm2.0/etc/cloud-init/user_data: line 10: -: command not found
/pfrm2.0/etc/cloud-init/user_data: line 11: -: command not found
/pfrm2.0/etc/cloud-init/user_data: line 12: -: command not found
udhcpc: started, v1.28.3

 

Output of Cloud-init Log file:

[Expert@Gateway-ID-F3DE3A00]# cat /var/log/cloud-init-output.log 
################################################################################
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:28:40] Check Point Cloud-Init SMB Ver: 06012020
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:28:40] Global Default Settings:
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:28:40] - set admin-access allowed-ipv4-addresses any
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:28:40] - set admin-access interfaces any access allow
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:28:40] - set antispoofing advanced-settings global-activation false
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:28:41] - set dhcp server interface LAN1 disable
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:28:41] Platform: Generic
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:19] Mounted config drive: mount /dev/scd0 /mnt/mount
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:19] Searching for metadata files
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:19] - Userdata location: /mnt/mount/userdata.yml
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:19] - Metadata location: 
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:19] - Vendordata location: 
[/pfrm2.0/etc/cloud-init/userdata_wrapper.sh 03:29:19] Data file presented: /pfrm2.0/etc/cloud-init/user_data
[/pfrm2.0/etc/cloud-init/userdata_wrapper.sh 03:29:19] - Data file is other -> executing as bash script
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:20] Sending user_data to userdata_wrapper.sh
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:20] Unmounting config drive: /mnt/mount
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:20] Initializing CLISH Database
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:43] Interface Fallback Configuration 
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:53] - Name: WAN
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:53]   Address:  
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:53]   Mac: 0c:35:f3:de:3a:00
[/pfrm2.0/etc/cloud-init/cloud-user-data.sh 03:29:53] End Check Point Cloud-Init
################################################################################

 

Actual user_Data yml content(after re-mounting cloud-init):

[Expert@Gateway-ID-F3DE3A00]# mount /dev/scd0 /mnt/mount
[Expert@Gateway-ID-F3DE3A00]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda6                45478       829     41065   2% /misc
tmpfs                    20480        96     20384   0% /tmp
tmpfs                    40960      6572     34388  16% /fwtmp
/dev/sda8               585320       544    541988   0% /logs
/dev/sda7              1096072     48216    974128   5% /storage
/dev/sda2               757680    430160    272472  61% /pfrm2.0
tmpfs                    20480         0     20480   0% /tmp/log/local
tmpfs                   512000         0    512000   0% /tetmp
/dev/scd0                  364       364         0 100% /mnt/mount
[Expert@Gateway-ID-F3DE3A00]# cat /mnt/mount/userdata.yml
--- 
clishcmd:
- 'set interface LAN1 state on'
- 'set interface LAN1 ipv4-address 192.168.1.1 subnet-mask 255.255.255.0'
- 'set interface LAN2 state on'
- 'set interface LAN2 ipv4-address 100.64.64.1 subnet-mask 255.255.255.248'
- 'add internet-connection interface LAN3 type static ipv4-address 100.100.100.1  mask-length 255.255.255.248 default-gw 100.100.100.2'
- 'set device-details hostname host1'
- 'set security-management mode centrally-managed'
- 'set security-management local-override-mgmt-addr true mgmt-address 198.18.251.11'
- 'set sic_init password aryaka123'
- 'set dns primary ipv4-address 8.8.8.8 secondary ipv4-address 4.2.2.2'

 

0 Kudos
1 Reply
PhoneBoy
Admin
Admin

If I'm looking at the examples in sk165476, the first line of the yaml file is NOT ---
Did you try it without that?

0 Kudos