Project

General

Profile

Bug #26509

Avatar?id=14398&size=22x22

Autostart at boot iocage jails that have property boot=on

Added by Jurgen Segaert about 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Expected
Assignee:
Kris Moore
Category:
Middleware
Target version:
Seen in:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
Yes
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Running as VM in virtualbox, but I don't think that matters.

ChangeLog Required:
No

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

Revision 0b68f66f (diff)
Added by Brandon Schneider about 1 year ago

fix(jails): Allow boot="on" in the GUI to mean something

Ticket: #26509

Revision 586b434d (diff)
Added by Brandon Schneider about 1 year ago

fix(jails): Allow boot="on" in the GUI to mean something

Ticket: #26509

Revision 6139d270 (diff)
Added by Brandon Schneider about 1 year ago

fix(jails): Allow boot="on" in the GUI to mean something

Ticket: #26509

Revision 1d3f3dd3 (diff)
Added by Brandon Schneider about 1 year ago

fix(jails): Allow boot="on" in the GUI to mean something (#545)

Ticket: #26509

Revision 274336bf (diff)
Added by Brandon Schneider about 1 year ago

fix(jails): Allow boot="on" in the GUI to mean something (#547)

Ticket: #26509

History

#1 Avatar?id=14398&size=24x24 Updated by Kris Moore about 1 year 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 about 1 year 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 about 1 year 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 about 1 year 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 Avatar?id=14398&size=24x24 Updated by Kris Moore about 1 year ago

Per discussion with William and Brandon, adding iocage_enable="YES" to rc.conf should be just fine here.

#6 Updated by Brandon Schneider about 1 year ago

  • Status changed from Investigation to Needs Developer Review
  • Assignee changed from Brandon Schneider to Kris Moore

#7 Updated by Dru Lavigne about 1 year 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 Avatar?id=14398&size=24x24 Updated by Kris Moore about 1 year ago

  • Status changed from Needs Developer Review to Ready For Release

#9 Updated by Dru Lavigne 12 months ago

  • Status changed from Ready For Release to Resolved

Also available in: Atom PDF