Jail create with pkglist option requires IP address, how can I set it ?

12 views
Skip to first unread message

pau...@gmail.com

unread,
Jun 9, 2020, 2:36:25 PM6/9/20
to iocage
Hi,
 I am trying to create a jail with a non-dhcp IP and a default pkg list using:

$ sudo iocage create -n nodered -r 12.1-RELEASE -T -C -p /mnt/datapool/iocage/pkglist.json
nodered successfully created
!
You need an IP address for the jail to install packages!


How can I set the IP during jail creation  so the packages can be installed ?
Or maybe even better, how can I set properties in general during jail creation ? 
I have found the defaults.json file and use that to  set generic properties like vnet and  defaultrouter but those options are the same for all jails.


 Regards,
     Paul

Brandon Schneider

unread,
Jun 9, 2020, 2:41:27 PM6/9/20
to pau...@gmail.com, iocage

Exactly how the Quick How To on the github page shows :)

Supply whatever property you want during creation, the json files do not need to be hand edited. iocage set can do that, but during create you can say sudo iocage create -n nodered -r 12.1-RELEASE -T -C -p /mnt/datapool/ ip4_addr="em0|192.168.1.10/24" for example.


Brandon

--
You received this message because you are subscribed to the Google Groups "iocage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iocage+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iocage/f4901e86-3c89-424e-877e-205ce9fca40co%40googlegroups.com.
signature.asc

pau...@gmail.com

unread,
Jun 9, 2020, 2:50:23 PM6/9/20
to iocage
Thanks for the hint ;-)

How To's on github are not the first place I would look.
I'm  an old-fashioned man page reader and the option of specifying properties is missing in the 'create' section of the man page.
I do see the it's mentioned in the Synopsis, and as {PROPS] in iocage create --help output.

  Paul



Op dinsdag 9 juni 2020 20:41:27 UTC+2 schreef Brandon Schneider:

Exactly how the Quick How To on the github page shows :)

Supply whatever property you want during creation, the json files do not need to be hand edited. iocage set can do that, but during create you can say sudo iocage create -n nodered -r 12.1-RELEASE -T -C -p /mnt/datapool/ ip4_addr="em0|192.168.1.10/24" for example.


Brandon

On 9 Jun 2020, at 13:36, pau...@gmail.com wrote:

Hi,
 I am trying to create a jail with a non-dhcp IP and a default pkg list using:

$ sudo iocage create -n nodered -r 12.1-RELEASE -T -C -p /mnt/datapool/iocage/pkglist.json
nodered successfully created
!
You need an IP address for the jail to install packages!


How can I set the IP during jail creation  so the packages can be installed ?
Or maybe even better, how can I set properties in general during jail creation ? 
I have found the defaults.json file and use that to  set generic properties like vnet and  defaultrouter but those options are the same for all jails.


 Regards,
     Paul

--
You received this message because you are subscribed to the Google Groups "iocage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ioc...@googlegroups.com.

Brandon Schneider

unread,
Jun 9, 2020, 2:52:45 PM6/9/20
to pau...@gmail.com, iocage

Heh, it should be in the manpage as PROPERTIES after the flags you can supply. If my memory is faulty, PR’s are always welcomed :)

Brandon

To unsubscribe from this group and stop receiving emails from it, send an email to iocage+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iocage/5e1bcd5c-b02e-47f2-af67-d29784d55cf1o%40googlegroups.com.
signature.asc

Paul van der Zwan

unread,
Jun 9, 2020, 3:06:09 PM6/9/20
to Brandon Schneider, iocage
It’s only mentioned in the Synopsis and not the create section.

Adding for example the text below might make it a bit clearer:

A space separated list of properties can be appended to the create command to specify any non-default properties for the jail.
Example:
# iocage create -s -r 11.0-RELEASE dhcp=0 vnet=1 ip4_addr="192.168.1.2/24” 


Regards,
 Paul
Reply all
Reply to author
Forward
0 new messages