Open cl-ment opened 6 years ago
Thanks for the report. I think this was initially done via https://github.com/coreos/ignition/pull/402, but the overall migration is currently on hold as described in https://github.com/coreos/ignition/pull/460#issuecomment-332311647. I don't have more details at hand right now, but perhaps @bgilbert will chime in later.
Also related to https://github.com/coreos/bugs/issues/2238.
@lucab when you say 'overall migration is currently on hold' is there a target for when this will be fixed?
Thanks.
@damianoneill I'd like it to happen soon, but can't make any promises at the moment.
Thanks @bgilbert appreciate the update.
Any news on this issue? Setting the box URL to .../coreos_production_vagrant_virtualbox.json
per the latest version of Vagrantfile seems to work; the OEM ID is set to vagrant-virtualbox
in the kernel command line.
+1
@apeteri When I look at the referenced Vagrantfile, the box url you mention is the same? What exactly did you change to the Vagrantfile?
This seems to be fixed on the alpha channel. I was running on stable (currently version 1800.5.0) and my config failed to load. I switched my Vagrantfile to use the alpha channel (currently version 1855.0.0) and it started working.
While on the stable channel, the oem_id variable in my /usr/share/oem/grub.cfg
was set to "vagrant" (this failed). After switching to the alpha channel, it is now set to "vagrant-virtualbox" and everything works.
I can confirm that Ignition works with 1855.0.0 version of coreos_production_vagrant_virtualbox.json
box that https://github.com/coreos/coreos-vagrant.git is using.
Doesn't work with 1855.0.0 version of coreos_production_vagrant.json
box.
@wernerb I had an old Vagrantfile around at the time; it still pointed to a box URL without the _virtualbox
suffix.
Issue Report
Bug
Container Linux Version
Environment
Vagrant on Virtualbox
Expected Behavior
Ignition must do something according to the configuration file
config.ign
found in the vagrant directory.Actual Behavior
Ignition fails to fetch the startup configuration on coreos-vagrant
Reproduction Steps
Other Information
It looks like Ignition expects
coreos.oem.id=vagrant-virtualbox
orcoreos.oem.id=virtualbox
instead ofcoreos.oem.id=vagrant
on the kernel commad line in order to fetch the configuration properly.We can see this in https://github.com/coreos/ignition/blob/master/internal/oem/oem.go
You might want to change the parameter
oem_id
in/usr/share/oem/grub.cfg
on the box to one of those mentioned above: