summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Hanxiao <chenhanxiao@cn.fujitsu.com>2014-01-23 14:50:50 +0800
committerCole Robinson <crobinso@redhat.com>2014-01-25 12:00:15 -0500
commit4660b5d32e815c2eca6c61117c8b8ba60c2e164f (patch)
tree7a3674288029bf091a61667f9264b8084e7db57b
parent2a4c3df113626b43a89f307a4d79fbda3fca0a6b (diff)
downloadvirt-manager-4660b5d32e815c2eca6c61117c8b8ba60c2e164f.tar.gz
virt-install: add example for specify private root for container
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
-rw-r--r--man/virt-install.pod14
1 files changed, 14 insertions, 0 deletions
diff --git a/man/virt-install.pod b/man/virt-install.pod
index 3e8e7d55..e569de97 100644
--- a/man/virt-install.pod
+++ b/man/virt-install.pod
@@ -1487,6 +1487,20 @@ at 512 MB of ram and 2 host cpus:
--vcpus 2 \
--init /usr/bin/httpd
+Start a linux container guest(LXC) with a private root filesystem,
+using /bin/sh as init.
+Container's root will be under host dir /home/LXC.
+The host dir "/home/test" will be mounted at
+"/mnt" dir inside container:
+
+ # virt-install \
+ --connect lxc:/// \
+ --name container \
+ --ram 128 \
+ --filesystem /home/LXC,/ \
+ --filesystem /home/test,/mnt \
+ --init /bin/sh
+
Install a paravirtualized Xen guest, 500 MB of RAM, a 5 GB of disk, and
Fedora Core 6 from a web server, in text-only mode, with old style --file
options: