суббота, 15 апреля 2017 г.

kvm to work inside lxc

https://lists.linuxcontainers.org/pipermail/lxc-users/2017-April/013098.html
https://lists.linuxcontainers.org/pipermail/lxc-users/2017-April/013083.html

https://lists.linuxcontainers.org/pipermail/lxc-users/2017-April/013144.html

a) In LXD container:

   1.  lxc launch ubuntu: pokemon
   2.  lxc exec pokemon bash
   3.  add-apt-repository ppa:x2go/stable && sudo apt-get update
   4.  apt-get install xfce4 xfce4-goodies xfce4-artwork xubuntu-icon-theme
   firefox x2goserver x2goserver-xsession
   5.  adduser pikachu
   6.  vi /etc/ssh/sshd_config
            # Change to no to disable tunnelled clear text passwords
            PasswordAuthentication yes
   7.  /etc/init.d/ssh restart

b) In client:

   1. apt-get install x2goclient
   2. x2goclient
 
un this once:

* LXD host:

lxc launch ubuntu: pokemon
lxc exec pokemon bash


* container

apt install openssh-server firefox
adduser pikachu

# add your ssh key for pikachu



Then, connect with ssh -X:

ssh -X container_IP
export MOZ_NO_REMOTE=1 ; firefox


MOZ_NO_REMOTE=1 in the container is needed in case you run Firefox both 
locally and over SSH - otherwise, it won't be possible to start two 
separate Firefox instances 


ssh -X xrdp2 export MOZ_NO_REMOTE=1 ; firefox

Комментариев нет:

Отправить комментарий