Qemu-kvm or QEMU on ubuntu touch?
-
Hi all, does anyone have any experiences for that? Or simply test it for this options
-
@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.
-
@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
-
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.
-
@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.
-
@tonoxis for wine, you're better off running libertine i guess ?
-
@emphrath No, just wanna know the possibility
-
@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.
-
@tonoxis very interesting, thank you
-
@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.