Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-04-24 07:48:50 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-04-24 07:48:50 +0200
commit1078073817319a8b6dedeb1a5760ed130024683b (patch)
treea786029054b203c77c9e06356afad96381604989
parentf5f70d8015fe0e34be8254b362844ff052cd6b36 (diff)
updated README
-rw-r--r--README.md23
1 files changed, 22 insertions, 1 deletions
diff --git a/README.md b/README.md
index fc0d905..955acc1 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# LXC
-Bases on https://github.com/lxc/lxc-templates (version 3.04.)
+Based on `lxc-archlinux` from https://github.com/lxc/lxc-templates (version 3.0.4).
# usage
@@ -9,3 +9,24 @@ Copy `lxc-archlinux32` to `/usr/share/lxc/templates`.
Create an LXC image with:
`lxc-create -n arch32 -t /usr/share/lxc/templates/lxc-archlinux32 -- -a pentium4`
(choose one of `pentium4`, `i686` or `i486`)
+
+Things are adaped automatically in the LXC config file, for instance
+
+```
+lxc.arch = i486
+```
+
+If you want to use X in the container the following snippet might help:
+
+```
+lxc.mount.entry = /dev/dri dev/dri none bind,optional,create=dir
+lxc.mount.entry = /dev/snd dev/snd none bind,optional,create=dir
+lxc.mount.entry = /tmp/.X11-unix tmp/.X11-unix none bind,optional,create=dir,ro
+lxc.mount.entry = /dev/video0 dev/video0 none bind,optional,create=file
+```
+
+Mounting your hosts home for instance is quite handy:
+
+```
+lxc.mount.entry=/home home none bind 0 0
+```