Guest User

Untitled

a guest
Apr 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. `sudo -i`
  2.  
  3. `emerge app-emulation/lxc`
  4.  
  5. `lxc-checkconfig`
  6.  
  7. go set up your kernel for the security features it wants. make sure to back up your working version.
  8.  
  9. this is a quick hack, there are more formal methods and this is considered lazy, but it gets the job done:
  10.  
  11. `echo "lxc.network.type none" > /etc/lxc/none.conf`
  12.  
  13. it's supposed to grab this automatically but it was breaking for me:
  14.  
  15. `tarball="*path/to/stage3.tar*" lxc-create -t gentoo -n *your_name* -f /etc/lxc/none.conf`
  16.  
  17. wait...
  18.  
  19. `chroot /var/lib/lxc/*your_name*/rootfs /bin/bash`
  20.  
  21. `passwd`
  22.  
  23. create new password here
  24.  
  25. `exit`
  26.  
  27. `lxc-start -n *your_name* -F`
  28.  
  29. **BOOM NEW SHELL IN REALLY SAFE KIND ENVIRONMENT**
Add Comment
Please, Sign In to add comment