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

add aarch64 & x86 vm as kernel + blockdev files #2355

Open
txt-file opened this issue Dec 30, 2021 · 5 comments
Open

add aarch64 & x86 vm as kernel + blockdev files #2355

txt-file opened this issue Dec 30, 2021 · 5 comments
Assignees

Comments

@txt-file
Copy link
Contributor

txt-file commented Dec 30, 2021

My community recently got a request for aarch64 virtual machine image. Intended usage was offloader.

I looked into OpenWrt and they provide vm images split into kernel & storage. IMHO the split is a good idea. I do not yet know how to define kernel + blockdev files. So I open it as issue.

I would like to have x86 also as split kernel + blockdev files.

comment by NeoRaider (in rC3 meetup): AutoUpdater support might be difficult.

@txt-file txt-file changed the title add aarch64 & x86 vm as kernel + blockdev devices add aarch64 & x86 vm as kernel + blockdev files Dec 30, 2021
@neocturne
Copy link
Member

Generally sysupgrade requires a combined kernel+rootfs image with partition table, it will not work with split images (as the kernel image can't even be accessed from inside the VM). Providing these images for boot tests as extra_images isn't a problem, but the usefulness is limited.

@T-X
Copy link
Contributor

T-X commented Dec 31, 2021

For LXC/LXD support as requested in #1583 a separate aarch64 rootfs tarball might be useful.

Ideally OpenWrt would also be able to output the portable LXD image files, which are basically a tarball of rootfs tarball + an LXD YAML config file, to ease setup. And OpenWrt sysupgrade would then know how to detect and sysupgrade such LXD images).

@neocturne
Copy link
Member

@T-X Please keep LXC-related discussion in #1583.

@neocturne
Copy link
Member

I've looked into the aarch64 VM images, and while OpenWrt does have an armvirt target, it still uses the legacy image build code, which will not work anymore since 6ba58c9. I might look into converting the target at some point (like it was done with x86 in OpenWrt 21.02), but at the moment other issues have higher priority.

@neocturne
Copy link
Member

We now have ARM v7 and v8 VM support using the armsr targets. Like the standard x86 images, this defaults to a combined image, so sysupgrade is supported.

Separate images like added for x86 in #2359 may still be useful for development, but we haven't added them for ARM so far (and I'm not sure if doing so even makes sense for a UEFI-based target)

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

3 participants