Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support userdata on QEMU s390x #825

Closed
tuan-hoang1 opened this issue Jul 1, 2019 · 5 comments
Closed

Support userdata on QEMU s390x #825

tuan-hoang1 opened this issue Jul 1, 2019 · 5 comments

Comments

@tuan-hoang1
Copy link
Contributor

Feature Request

Environment

QEMU s390x

Desired Feature

Pass Ignition config file/string from host QEMU to FCOS guest.

Other Information

-fw_cfg and SMBIOS OEM string are not supported.
#656 (comment) suggests 2 approaches:

  • extra cdrom image containing the Ignition config
  • via network (like OpenStack)

Related

coreos/ignition-dracut#87
#666
#656

@ajeddeloh
Copy link
Contributor

Sorry for taking so long to reply to this.

via network (like OpenStack)

This is separate from qemu. Qemu as a platform does not have any one way networking works.

extra cdrom image containing the Ignition config

We really dislike this. It's near impossible to differentiate between a disk that's slow to show up and a disk that will never show up. We do it where we have to (clouds where that's the only option) but we avoid it whenever possible.

My knowledge of s390x is very limited right now, so unfortunately I don't have any counter-suggestions.

@lucab
Copy link
Contributor

lucab commented Jul 16, 2019

My additional 2¢: if this is specifically for qemu s390x and not for (generically) metal s390x, then we'd like to identify a viable qemu-provided back-channel to use for this.
An implementation of fw_cfg for s390x (hypervisor and guest-kernel) is the cleanest thing that comes to my mind.

EDIT: see coreos/mantle#1045 (comment)

@laenion
Copy link
Contributor

laenion commented Jul 16, 2019

Desired Feature

Pass Ignition config file/string from host QEMU to FCOS guest.

* extra cdrom image containing the Ignition config

In pull request coreos/ignition-dracut#80 I've implemented something like this - mainly because we have to get rid of the hardcoded /boot dependency for openSUSE, which usually does not contain a separate boot partition. While doing so I made the partition containing the user config configurable - and the device could also be a cdrom device if desired.

@tuan-hoang1
Copy link
Contributor Author

The temporary solution atm is to use guestfish. We would need a better way to deal with this.

@lucab
Copy link
Contributor

lucab commented Dec 18, 2019

Potentially relevant here, there seems to be a virtio-ccw hypervisor back-channel: https://www.ibm.com/support/knowledgecenter/linuxonibm/com.ibm.linux.z.lkdd/lkdd_c_ccwdd.html.

I think this is a mechanism similar to what we are using on zvm, so we could try to follow the same path for qemu too.

jlebon added a commit to jlebon/ignition that referenced this issue Dec 18, 2019
s390x doesn't support the qemu fw_cfg mechanism. Let's hack around this
for now by having the fetcher on s390x just use the same one as
OpenStack, i.e. config drives (and technically metadata server too,
which will fail... again, this is a short-term hack).

For background, see:
coreos/coreos-assembler#1004
coreos/ignition-dracut#145
coreos#825
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants