virt-install: add example for specify private root for container

Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
Chen Hanxiao 2014-01-23 14:50:50 +08:00 committed by Cole Robinson
parent 2a4c3df113
commit 4660b5d32e
1 changed files with 14 additions and 0 deletions

View File

@ -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: