Bug #26509
Autostart at boot iocage jails that have property boot=on
Running as VM in virtualbox, but I don't think that matters.
Description
I created an iocage jail using the new UI, and set the "boot" checkbox. Running command "iocage get boot jailname" confirms this works:
root@freenas:~ # iocage get boot mineos_1 on
However, upon boot or reboot of FreeNAS, the jail shows as "down". I expected it to be started automatically and "up".
root@freenas:~ # iocage list -l +-----+----------+------+-------+------+-----------------+-------------------------+-----+----------+ | JID | NAME | BOOT | STATE | TYPE | RELEASE | IP4 | IP6 | TEMPLATE | +=====+==========+======+=======+======+=================+=========================+=====+==========+ | - | mineos_1 | on | down | jail | 11.1-RELEASE-p2 | vtnet0|192.168.0.210/24 | - | - | +-----+----------+------+-------+------+-----------------+-------------------------+-----+----------+
Associated revisions
History
#1
Updated by Kris Moore over 3 years ago
- Assignee changed from Release Council to Brandon Schneider
- Priority changed from No priority to Expected
- Target version set to 11.1
Brandon, Probably time to turn on this knob. Should just be rc.conf setting I believe.
#2
Updated by Brandon Schneider over 3 years ago
- Status changed from Unscreened to Closed: Behaves correctly
This knob is already active, as the user notes this is in Virtualbox. That does matter :) They need to enable iocage in their VM's rc.conf, as boot=on only means this jail will start with the rc process. It doesn't enable it in the configuration itself.
#3
Updated by Brandon Schneider over 3 years ago
- Status changed from Closed: Behaves correctly to Investigation
It's too early! The user must have meant that their FreeNAS is in a VM. I'll talk to you offline about this Kris.
#4
Updated by Jurgen Segaert over 3 years ago
That is correct; I'm running FreeNAS in virtualbox. I manually added a tuneable to set iocage_enable="YES", and that indeed fixed it. I guess I was just expecting the FreeNAS system to do that for me automatically, as soon as I started creating iocage jails in the new UI.
#5
Updated by Kris Moore over 3 years ago
Per discussion with William and Brandon, adding iocage_enable="YES" to rc.conf should be just fine here.
#6
Updated by Brandon Schneider over 3 years ago
- Status changed from Investigation to Needs Developer Review
- Assignee changed from Brandon Schneider to Kris Moore
#7
Updated by Dru Lavigne over 3 years ago
- Subject changed from iocage jails that have property boot=on, do not automatically start on boot to Autostart at boot iocage jails that have property boot=on
#8
Updated by Kris Moore over 3 years ago
- Status changed from Needs Developer Review to Ready For Release
#9
Updated by Dru Lavigne over 3 years ago
- Status changed from Ready For Release to Resolved