On 04/15/2017 12:38 AM, Reg Tiangha wrote:
> I guess I was wrong. The Anbox installer tries to install a 4.4 kernel
> and then fails compiling the Anbox dkms module due to the lack of kernel
> sources (I'm running a Qubes dom0 vm kernel).
>
> So I guess eventually, figuring out how to get a valid Grub
> configuration working on this thing to boot a local Ubuntu kernel needs
> to be done. It's weird that it doesn't work the same way as on my Debian
> templates, though. My last resort is copying a valid grub.cfg from one
> of my Debian templates over and manually editing it to point to use the
> xenial kernel and initramfs, but I don't want to have to do that unless
> absolutely necessary. But it's getting late in my part of the world, so
> I'm calling it for now. If anyone else manages to figure this stuff out
> in the meantime, please do share.
>
>
Well, I couldn't sleep while I still had one more thing to try. So I
copied over a working grub.cfg from one of my Debian 8 coldkernel VMs
and edited it to use the Xeial kernel and initramfs (I installed the
linux-generic-hwe-16.04 version which is 4.8). The VM then booted.
I was following the instructions at the bottom here:
https://www.qubes-os.org/doc/managing-vm-kernel/
which is essentially what you need to do to boot a coldkernel in a
Debian template, but for some reason, it doesn't seem to work in Xenial
because running update-grub2 does not create a proper grub.cfg file.
So if someone else can figure out how to get grub on Xenial to produce a
proper grub.cfg file, then that'll make life much easier for everyone.
That should be Step 1 in figuring out how to get this stuff to work in a
Xenial Template VM.
Anyway, I had to regenerate all the dkms modules including Anbox's
(easiest way was to just force reinstall qubes-kernel-vm-support) and
then re-run the Anbox installer and then it installed successfully.
That said, I don't know exactly how to use this. The YouTube video shows
that you can access the manager by clicking on the icon in the Unity
dash, but obviously, we don't have access to that. I was able to install
an apk by starting the session-manager by typing in:
anbox session-manager
and then in a different window, installing an apk by running:
adb install <program.apk>
But I don't know how to access it. So I'm stuck again, but progress has
been made and the program does run in the VM.
What we need to figure out is:
- How to get pvgrub working properly without having to do my kludge of
copying over a grub.cfg file and manually editing it to work with a
Xenial kernel. That'll make Anbox installation much easier later on.
- How to actually use this program without being able to access the
Unity dashboard.
The other easy answer is to use a Xenial HVM, but I can't see why this
can't work in a normal TemplateVM.
Anyway, I think I've taken this as far as I can on my own. I now hand it
off to others to figure out. Hopefully someone can by the time I wake up
in the morning.