-
Notifications
You must be signed in to change notification settings - Fork 352
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
Need help with figuring out how I am supposed to add other distros to the image builder #203
Comments
Xenial? In the big 2024? Xenial is what I used as a child, you don't want that these days it's almost a decade out of date. Anura's v86 Filesystem integration works best with Linux kernel 5.15+ so I would choose a more recent distro with that. Your realistic options boil down to
Realistically to build a anura.x86 compatible rootfs you only need one thing (initially). You need epoxy-server in twisp mode (or twisp the application itself) starting on boot with wisp V2 over /dev/hvc0, and you need virtio console support in the kernel. Once you get that done, for x86 support you only really need to start anura mouse after X11 starts, and you just need X11. Everything else should just mostly work |
I have considered making a separate repo with builders for these images but never got around to it. It's not exactly difficult as much as it's annoying |
@ProgrammerIn-wonderland So basically I just need to adapt the dockerfile for the alpine image to another linux image(definitely not xenial because as you said it has too old of a kernel)? |
Xenial is possible, you'll just find it's very slow. But for the most part, yes you can just adapt the dockerfile |
So I am assuming that I just need to adapt distro specific commands(like the package manager, etc.) and leave the stuff dealing with epoxy and 9p? |
Pretty much |
And there is nothing that I need to change in the directory of the dockerfile? No configs, no Anura Mouse drivers, none of that(basically I am asking if I can just copy the directory x86_image_wizard/alpine directory and just change the dockerfile)? |
Mostly, yeah. At most you might need to add a symlink for /bin/ash -> /bin/bash |
I want to open a PR for this, but I don't know exactly how the image build works.
What I think I understand so far:
When an image is built, it uses a 9p filesystem, and creates a docker image.
This also gets compiled with the Anura Mouse driver files to allow the mouse to interact with the command line(for example, in htop). It also links the x server into the xfrog app and manager so x86 apps can be drawn on-screen.
What I want to know is how to make this work for something like the i386/ubuntu:bionic or i386/ubuntu:xenial (or both) base images off of docker, so then Anura can run ubuntu.
I also think that there should be documentation on this for developers.
The text was updated successfully, but these errors were encountered: