[DEV] LXC Containers on Shield Android TV

Full Android Experience with NO Limits on Shield TV and Nexus Player
User avatar
zulu99
Site Admin
Posts: 2483
Joined: Tue Oct 09, 2012 6:42 am

[DEV] LXC Containers on Shield Android TV

Postby zulu99 » Thu Jul 28, 2016 7:33 pm

LXC Containers on Shield Android TV




This project was not made to specifically have Ubuntu on Shield TV. Have LXC containers is an easy way to virtualize many different OSes, apps and drivers and speed up the development. About the Ubuntu OS that you see in the video, the GPU drivers are not present, therefore you can use console apps or apps that not rely too much on GPU. My interest as developer is to have two different Android OS at same time, but with LXC containers, others developers can create and share others OSes also with GPU driver active. In others words, this project can drastically accelerate the development on Shield TV and the only limit is your imagination.

What are LXC Containers ?
https://en.wikipedia.org/wiki/LXC

Download the LXC Containers enabled Kernel:
https://goo.gl/PBjZP7

fastboot flash boot boot.img
fastboot reboot

Download the Lxc for Android aarch64 binaries:
https://goo.gl/3uD8tQ

Download the Ubunntu arm64 rootfs:
https://goo.gl/rSV7N6


adb push lxc.tar.gz /sdcard/
adb push ubuntu_rootfs_aarch64_tar.gz /sdcard/

adb shell
su
tar -xpvzf /sdcard/lxc.tar.gz -C /data/
tar -xpvzf /sdcard/ubuntu_rootfs_aarch64_tar.gz -C /data/lxc/containers/ubuntu64/rootfs/

/data/lxc/startUbuntu64

Username: ubuntu
Password: ubuntu

Kernel source code: http://nv-tegra.nvidia.com/gitweb/?p=li ... -foster-r7

Note:
This thread is more oriented for development purpose, i do not respond to basic questions.
You are free to use this work for your projects.
We want see your virtualized OS inside Shield Android TV. Now you don't have limits !
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

User avatar
zulu99
Site Admin
Posts: 2483
Joined: Tue Oct 09, 2012 6:42 am

Re: LXC Containers on Shield TV

Postby zulu99 » Thu Jul 28, 2016 7:33 pm

LXC Containers and Boot from USB
In case you want boot Android from Usb, to have more space and to try things without touch the internal configuration, you can download this LXC enablet Kernel with boot from Usb included. For info about boot from usb read this post viewtopic.php?f=25&t=1580&start=410#p3636

https://goo.gl/ZkoxaI
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

User avatar
zulu99
Site Admin
Posts: 2483
Joined: Tue Oct 09, 2012 6:42 am

Re: [DEV] LXC Containers on Shield Android TV

Postby zulu99 » Sat Aug 06, 2016 11:03 am

06 Aug 2016 13.02

Updated the link of LXC Containers enabled Kernel in the first post.
The new version solve the problem on DRM apps like Netflix and Google Cast
Now you can have everything Android can offer + Lxc containers
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

User avatar
zulu99
Site Admin
Posts: 2483
Joined: Tue Oct 09, 2012 6:42 am

Re: [DEV] LXC Containers on Shield Android TV

Postby zulu99 » Tue Aug 09, 2016 8:17 am

In my Ubuntu 16.04 container, i'm testing ExaGear Desktop and some x86 apps via Wine

I installed PlayonLinux and some windows apps as you can see from the image attached below.
You do not have the required permissions to view the files attached to this post.
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

beng
Posts: 45
Joined: Tue Jan 05, 2016 12:35 pm

Re: [DEV] LXC Containers on Shield Android TV

Postby beng » Wed Sep 07, 2016 8:35 pm

Hi Zulu99
Would you have a debian (jessie) lxc / point me to where I could get this / create this please?
then I will be looking at using it for solutions like these
https://freedomboxfoundation.org/
or https://yunohost.org/#/...
Thanks in advance
beng

[edit] hmmm, well, could this be it: https://wiki.debian.org/LXC?

User avatar
zulu99
Site Admin
Posts: 2483
Joined: Tue Oct 09, 2012 6:42 am

Re: [DEV] LXC Containers on Shield Android TV

Postby zulu99 » Thu Sep 08, 2016 6:59 am

beng wrote:Hi Zulu99
Would you have a debian (jessie) lxc / point me to where I could get this / create this please?
then I will be looking at using it for solutions like these
https://freedomboxfoundation.org/
or https://yunohost.org/#/...
Thanks in advance
beng

[edit] hmmm, well, could this be it: https://wiki.debian.org/LXC?


you can create it by yourself with lxc in ubuntu

install lxc in ubuntu and after create a debian (jessie) container aarch64 ( template download )
after you can tar.gz the container with all permissions and extract in shield tv instead of the ubuntu version provided by me.

https://help.ubuntu.com/lts/serverguide/lxc.html


sudo lxc-create -t download -n u1

you will have a menu to select debian - jessie - aarch64
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

beng
Posts: 45
Joined: Tue Jan 05, 2016 12:35 pm

Re: [DEV] LXC Containers on Shield Android TV

Postby beng » Thu Sep 08, 2016 8:08 am

Hi Zulu99
Thanks for your answer.
my LX distribution is https://www.bunsenlabs.org/
(debian based + openbox)
commands are like ubuntu so I shall look at it.
Do you reckon we could run LXC containers on android phones?
thanks

User avatar
zulu99
Site Admin
Posts: 2483
Joined: Tue Oct 09, 2012 6:42 am

Re: [DEV] LXC Containers on Shield Android TV

Postby zulu99 » Thu Sep 08, 2016 4:53 pm

beng wrote:Hi Zulu99
Thanks for your answer.
my LX distribution is https://www.bunsenlabs.org/
(debian based + openbox)
commands are like ubuntu so I shall look at it.
Do you reckon we could run LXC containers on android phones?
thanks


To run Lxc on phone you need a kernel that support LXC and you can use my LXC binaries if the phone have cpu arm64 BUt in others forum you can find also the arm version of lxc binaries
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto

Mogster
Posts: 120
Joined: Fri Jul 01, 2016 12:57 am

Re: [DEV] LXC Containers on Shield Android TV

Postby Mogster » Sat Sep 10, 2016 3:21 pm

Thanks for this. I've run into a problem however - starting Ubuntu disconnects both the microSD card and ethernet. Is there a way to get it to play nice with the host?

User avatar
zulu99
Site Admin
Posts: 2483
Joined: Tue Oct 09, 2012 6:42 am

Re: [DEV] LXC Containers on Shield Android TV

Postby zulu99 » Sat Sep 10, 2016 5:09 pm

Mogster wrote:Thanks for this. I've run into a problem however - starting Ubuntu disconnects both the microSD card and ethernet. Is there a way to get it to play nice with the host?


You can find a way to disconnect the sdcard and ethernet from guest OS. In this way the host get the control.
usually i use wifi, i never tested with ethernet, but for sure you can disconnect the ethernet from guest, or with lxc config file or from inside the guest OS
Developer of DroidMote Server and DroidMote Client. Read the Quick Start Guides and then I'll be happy to help.
Donate with Paypal or Donate with Crypto


Return to “Full Android firmwares for Shield Android TV, Nexus Player and PC”

Who is online

Users browsing this forum: No registered users and 13 guests