UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Qemu-kvm or QEMU on ubuntu touch?

    Scheduled Pinned Locked Moved OS
    10 Posts 6 Posters 2.8k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • T Offline
        thomas-k8s
        last edited by

        Hi all, does anyone have any experiences for that? Or simply test it for this options

        alan_gA mardyM 2 Replies Last reply Reply Quote 0
        • alan_gA Offline
          alan_g @thomas-k8s
          last edited by

          @thomas-k8s I don't have specific knowledge, but these are old kernels hacked down to fit on a phone. I would expect stuff kvm (or other virtualization technology) needs to be missing.

          T 1 Reply Last reply Reply Quote 1
          • mardyM Offline
            mardy @thomas-k8s
            last edited by

            @thomas-k8s said in Qemu-kvm or QEMU on ubuntu touch?:

            Hi all, does anyone have any experiences for that? Or simply test it for this options

            If you mean running QEMU on Ubuntu Touch, then Alan's aswer is the right one. If you mean running Ubuntu Touch using QEMU, then it should be possible, I gave it a try long ago and unity8 was popping up, but I couldn't figure out how to tell QEMU to use a specific screen size, so it was nearly unusable. And I don't remember which was the command line I used 🙂

            1 Reply Last reply Reply Quote 0
            • ManuelBoeM Offline
              ManuelBoe
              last edited by

              most ubports devices have dated hardware and most of the potential guest systems aren't mobile optimised.

              so even if that works, i think you haven't a good experience.

              Daily Drivers: Ubuntu Touch based on 20.04 on google-sargo
              and Postmarketos with Plasma Mobile on xiaomi-berillyum

              1 Reply Last reply Reply Quote 0
              • T Offline
                Tonoxis @alan_g
                last edited by

                @alan_g You are quite right about KVM being missing (iirc, it can be enabled in the kernel configuration for, at least to my knowledge, 3.4.0+), however QEMU Usermode emulation runs quite nicely. Obviously not helpful if someone wants to run a full guest OS, but it works well for say, running WINE-x86 under Ubuntu Touch as long as you have binfmt support enabled in the kernel.

                E 1 Reply Last reply Reply Quote 0
                • E Offline
                  Emphrath @Tonoxis
                  last edited by

                  @tonoxis for wine, you're better off running libertine i guess ?

                  T T 2 Replies Last reply Reply Quote 0
                  • T Offline
                    thomas-k8s @Emphrath
                    last edited by

                    @emphrath No, just wanna know the possibility

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      Tonoxis @Emphrath
                      last edited by Tonoxis

                      @emphrath Actually due to something involving proot (the application that facilitates the unprivileged chroot), WINE (and QEMU) refuses to run with a segmentation fault.

                      Running WINE under XMir is relatively simple, though it does require the system image to be writable. You'd need a kernel with binfmt_misc support, install qemu-user-binfmt and wine:i386 from the winehq repo. Then you just need a XMir wrapper (I think libertine-xmir is one), a script to start it all, and a .desktop shortcut to point the --desktop_file_hint argument to.

                      I did a write-up on running applications with Xmir without Libertine under Vivid a while back over on XDA-Developers (found here under the "old method" heading), go crazy!

                      Personally, I'm working on compiling a Gentoo Prefix so that I don't have to make system image changes just to have applications outside a Libertine container.

                      E 1 Reply Last reply Reply Quote 0
                      • E Offline
                        Emphrath @Tonoxis
                        last edited by

                        @tonoxis very interesting, thank you

                        T 1 Reply Last reply Reply Quote 0
                        • T Offline
                          Tonoxis @Emphrath
                          last edited by

                          @emphrath No problem, I've tried a lot of things that most people would find "useless" under ubPorts while working to make my trusty Nexus 7 a portable workstation. I've been tempted to add WINE to my setup again, but I don't want to deal with setting up an i386 chroot running on the device (since LXC doesn't function correctly for me, can't create LXC containers, oddly the Android container works fine).

                          In case I didn't mention it previously, yes, it requires qemu-user-static installed and you have to have an i386 chroot to install and run WINE/32.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post