[lxc-users] Desktop Environment in LXD

Rahul Rawail rhlrawail at gmail.com
Wed Jun 22 09:14:35 UTC 2016


Thanks Brian it worked better, now I am trying to do a passthrough of LXD
container but there is no .conf file in LXD, where do I add mount entries?

On Tue, Jun 21, 2016 at 2:11 AM, brian mullan <bmullan.mail at gmail.com>
wrote:

> Rahul
>
> If you are talking x2go.. there currently is no way to do 3D or hw
> acceleration,  as I said previously I don't know of ANY remote desktop
> solution outside of commercial ones line PCoIP from Teradici that do that
> or perhaps "maybe" NoMachine's commercial version of NX.
>
> Now I do know that the x2go team has been working for quite some time on a
> much more advanced x2go that "perhaps" would let you do that but they have
> not said anything yet about when that might be finished.
>
> also..
>
> In x2go ... edit your PROFILE again.
>
> Click on the CONNECTION tab and notice that SLIDER.
>
> Its not intuitive BUT the farther you slide it to the RIGHT the LESS
> compression is done.
> The farther you slide it to the LEFT the MORE compression is done.
>
> If you have a fast Internet connection ... try sliding it all the way to
> the right to LAN (re no compression) and try that.
>
> Also, on your Client and on the x2go server... check to see if
> libjpeg-turbo8 is installed.   libjpeg-turbo replaces the original libjpeg
> library and the "turbo" version is about 250% faster.
>
> Brian
>
>
>
>
> On Mon, Jun 20, 2016 at 10:35 AM, Rahul Rawail <rhlrawail at gmail.com>
> wrote:
>
>> Hi Brian,
>>
>> Thanks a ton, that worked flawlessly.
>> I only have one issue now even the full hd video is not smooth, Is there
>> a way to get vgpu, hardware acceleration or 3d support in LXD, some of my
>> users are going to use autocad.
>>
>> On Sun, Jun 19, 2016 at 1:39 AM, brian mullan <bmullan.mail at gmail.com>
>> wrote:
>>
>>> no... neither x2go nor guacamole will do 3d or hw rendering.
>>>
>>> I'm not aware of ANY remote desktop solution that does that other unless
>>> you go with PCoIP which requires a HW card purchase for the server & each
>>> client & is pretty pricey.
>>>
>>> PCoIP is not open source its a proprietary software/hardware solution
>>> from Teradici...
>>>
>>> http://www.teradici.com/pcoip-technology
>>>
>>>
>>> On Sat, Jun 18, 2016 at 11:35 AM, Rahul Rawail <rhlrawail at gmail.com>
>>> wrote:
>>>
>>>> Brian, just another quick one, does this approach allows hardware
>>>> acceleration and can all containers work on graphic intensive application
>>>> like 3d rendering at the same time using host's single GPU.
>>>> Thanks
>>>>
>>>> On Sun, Jun 19, 2016 at 1:22 AM, Rahul Rawail <rhlrawail at gmail.com>
>>>> wrote:
>>>>
>>>>> Thanks a lot Brian, I will give it a shot tomorrow, the reason  asked
>>>>> you this was because I have to implement it for over 100 people and then
>>>>> connect each of them remotely to their container.
>>>>>
>>>>> On Sun, Jun 19, 2016 at 1:11 AM, brian mullan <bmullan.mail at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Rahul
>>>>>>
>>>>>> Whether you use KVM or LXD you still need to install an OS & a
>>>>>> Desktop Environment.
>>>>>>
>>>>>> The LXD approach will give you alot of scalability over KVM because
>>>>>> there is no HW virtualization required ... and ... every container is
>>>>>> sharing the Host's Kernel.
>>>>>>
>>>>>> So there is much less overhead with LXD than with KVM and much less
>>>>>> memory utilization.
>>>>>>
>>>>>> x2go will be using the xserver in the container provided by the
>>>>>> ubuntu-desktop (xubuntu-desktop, lubuntu-desktop, ubuntu-mate etc) desktop
>>>>>> environment you install in the container.
>>>>>>
>>>>>> Try it and see if it suits your needs.   Its really simple to install
>>>>>> if you follow the steps I gave you.
>>>>>>
>>>>>> Brian
>>>>>>
>>>>>>
>>>>>> On Sat, Jun 18, 2016 at 11:05 AM, Rahul Rawail <rhlrawail at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Thanks Ron and Brian.
>>>>>>>
>>>>>>> Brian,
>>>>>>>
>>>>>>> I have a question, I am happy to follow the x2go approach but does
>>>>>>> it add to performance overhead for the container or the container performs
>>>>>>> as it should be, because the main reason to go to LXD over KVM is to get
>>>>>>> high density, faster performance and less resource intensive.
>>>>>>>
>>>>>>> Other question is does this approach use host x server and all the
>>>>>>> host drivers, in case I have graphic card so will all the containers have
>>>>>>> access to GPU in parallel.
>>>>>>>
>>>>>>> Thanks again for detailed steps.
>>>>>>>
>>>>>>> On Sun, Jun 19, 2016 at 12:34 AM, brian mullan <
>>>>>>> bmullan.mail at gmail.com> wrote:
>>>>>>>
>>>>>>>> I do this using 3 different methods.
>>>>>>>> using xnest
>>>>>>>> using xRDP & Guacamole
>>>>>>>> and using x2go.
>>>>>>>>
>>>>>>>> For me the most easiest & most full featured approach is x2go.
>>>>>>>>
>>>>>>>> Guacamole & xRDP works great & only requires an HTML5 bBrowser but
>>>>>>>> there is alot to the setup and some capabilities of Guacamole (cut & paste,
>>>>>>>> printing) are still a bit cumbersome to accomplish.
>>>>>>>>
>>>>>>>> The following is going to assume Ubuntu 16.04 and x2go...
>>>>>>>>
>>>>>>>> ## Create an LXD container using say Ubuntu 16.04
>>>>>>>>
>>>>>>>> ## enter the container:
>>>>>>>>
>>>>>>>> lxc exec container_name bash
>>>>>>>>
>>>>>>>> ## add some repositories for xenial (re 16.04)
>>>>>>>>
>>>>>>>> echo "deb http://archive.canonical.com/ubuntu xenial partner" |
>>>>>>>> sudo tee -a /etc/apt/sources.list
>>>>>>>> echo  "deb-src http://archive.canonical.com/ubuntu xenial partner"
>>>>>>>> | sudo tee -a /etc/apt/sources.list
>>>>>>>> echo "deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports
>>>>>>>> main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
>>>>>>>> echo "deb-src http://us.archive.ubuntu.com/ubuntu/
>>>>>>>> xenial-backports main restricted universe multiverse" | sudo tee -a
>>>>>>>> /etc/apt/sources.list
>>>>>>>>
>>>>>>>> apt install software-properties-common -y
>>>>>>>>
>>>>>>>> ## add the ubuntu-mate repository
>>>>>>>>
>>>>>>>> sudo add-apt-repository ppa:ubuntu-mate-dev/xenial-mate -y
>>>>>>>>
>>>>>>>> ## add the x2go repository
>>>>>>>>
>>>>>>>> add-apt-repository ppa:x2go/stable
>>>>>>>>
>>>>>>>> ## update & upgrade the container
>>>>>>>>
>>>>>>>> apt update && apt upgrade -y
>>>>>>>>
>>>>>>>> ## install ubuntu-mate dekstop or xubuntu-desktop or
>>>>>>>> lubuntu-desktop (this will take upto 30 min or more depending on PC/HD etc)
>>>>>>>>
>>>>>>>> sudo apt install lightdm ubuntu-mate-core ubuntu-mate-desktop -y
>>>>>>>>
>>>>>>>> ## set things up so all future user accounts you create in this
>>>>>>>> container default to the Ubuntu-Mate desktop
>>>>>>>>
>>>>>>>> sudo update-alternatives --set x-session-manager
>>>>>>>> /usr/bin/mate-session
>>>>>>>>
>>>>>>>> ## install the x2go server side software
>>>>>>>>
>>>>>>>> apt install x2goserver x2goserver-xsession
>>>>>>>>
>>>>>>>> ## create user accounts for your "users" as you normally would
>>>>>>>>
>>>>>>>> ## then depending on whether you want to use login/password or a
>>>>>>>> key based login edit the /etc/ssh/sshd_config and set it up appropriately
>>>>>>>> ## adn when done configuring the container...  reboot the container
>>>>>>>>
>>>>>>>>
>>>>>>>> >>> On the Host:
>>>>>>>>
>>>>>>>> sudo apt install software-properties-common -y
>>>>>>>>
>>>>>>>> ## add the x2go repository
>>>>>>>>
>>>>>>>> sudo add-apt-repository ppa:x2go/stable
>>>>>>>>
>>>>>>>> sudo apt install x2goclient
>>>>>>>>
>>>>>>>>                                 = = = = = = =
>>>>>>>>
>>>>>>>> Finally make sure you container is started & get its IP address
>>>>>>>>
>>>>>>>> Start the x2go client (Click the DASH icon and type "x2go") then
>>>>>>>> click on the x2go icon that comes up
>>>>>>>>
>>>>>>>> In the x2go client gui create a Profile (upper left corner icon of
>>>>>>>> the x2go gui)  for the container
>>>>>>>>
>>>>>>>>    1. enter some Profile "name" at the top to ID what that profile
>>>>>>>>    is for say "My Ubuntu-Mate Desktop)
>>>>>>>>    2. input the container's HOST IP,
>>>>>>>>    3. click the drop down menu and select which Desktop
>>>>>>>>    Environment (re Session Type) you installed (Mate in the case)
>>>>>>>>    4. Save that profile.
>>>>>>>>
>>>>>>>> You will see that there will appear a new square icon on the right
>>>>>>>> side of the x2go GUI.
>>>>>>>>
>>>>>>>> Then execute that Profile by clicking on it & login using one of
>>>>>>>> the login ID's you created in the container.
>>>>>>>>
>>>>>>>> Audio/Printing etc should also all just work.
>>>>>>>>
>>>>>>>> If you can't login the usual problem are authentication is not
>>>>>>>> setup right (login ID + password vs key based)  remember to do that in
>>>>>>>> container.
>>>>>>>>
>>>>>>>> Note:
>>>>>>>> Once you've created the 1st container like this you can just
>>>>>>>> clone/copy it to create more.
>>>>>>>> On the Host just create a different x2go Login Profile for each
>>>>>>>> container/IP & give each Profile a different TItle.  You can also have diff
>>>>>>>> containers with different desktops (xubuntu, lubuntu, ubuntu-mate etc)
>>>>>>>>
>>>>>>>> If you leave the x2go Profile LOGIN field empty any valid user can
>>>>>>>> click on the Profile Icon and just fill in their ID and Password in order
>>>>>>>> to log into the container.
>>>>>>>>
>>>>>>>> Brian
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160622/3f658c16/attachment-0001.html>


More information about the lxc-users mailing list