<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to load VNF CloudGuard with Bootstrap cloud-init .iso in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Unable-to-load-VNF-CloudGuard-with-Bootstrap-cloud-init-iso/m-p/146035#M6720</link>
    <description>&lt;P&gt;Team - I have created a yaml file(as per article&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk165476" target="_blank"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk165476&lt;/A&gt;). Yaml is converted to iso using&amp;nbsp;&lt;SPAN&gt;mkisofs.&lt;BR /&gt;Upon booting up the VNF with this iso, it fails to run the commands.&lt;BR /&gt;&lt;BR /&gt;Error during bootup:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output of Cloud-init Log file:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[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 -&amp;gt; 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
################################################################################&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actual user_Data yml content(after re-mounting cloud-init):&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[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'&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 03:51:10 GMT</pubDate>
    <dc:creator>rishrapsody1612</dc:creator>
    <dc:date>2022-04-12T03:51:10Z</dc:date>
    <item>
      <title>Unable to load VNF CloudGuard with Bootstrap cloud-init .iso</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Unable-to-load-VNF-CloudGuard-with-Bootstrap-cloud-init-iso/m-p/146035#M6720</link>
      <description>&lt;P&gt;Team - I have created a yaml file(as per article&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk165476" target="_blank"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk165476&lt;/A&gt;). Yaml is converted to iso using&amp;nbsp;&lt;SPAN&gt;mkisofs.&lt;BR /&gt;Upon booting up the VNF with this iso, it fails to run the commands.&lt;BR /&gt;&lt;BR /&gt;Error during bootup:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;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&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Output of Cloud-init Log file:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[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 -&amp;gt; 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
################################################################################&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actual user_Data yml content(after re-mounting cloud-init):&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[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'&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 03:51:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Unable-to-load-VNF-CloudGuard-with-Bootstrap-cloud-init-iso/m-p/146035#M6720</guid>
      <dc:creator>rishrapsody1612</dc:creator>
      <dc:date>2022-04-12T03:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to load VNF CloudGuard with Bootstrap cloud-init .iso</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Unable-to-load-VNF-CloudGuard-with-Bootstrap-cloud-init-iso/m-p/146325#M6729</link>
      <description>&lt;P&gt;If I'm looking at the examples in&amp;nbsp;&lt;SPAN&gt;sk165476, the first line of the yaml file is NOT ---&lt;BR /&gt;Did you try it without that?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 22:12:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Unable-to-load-VNF-CloudGuard-with-Bootstrap-cloud-init-iso/m-p/146325#M6729</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-04-14T22:12:37Z</dc:date>
    </item>
  </channel>
</rss>

