[virt-tools-list] [virt-manager PATCH] virt-install: add example for specify private root for container

Martin Kletzander mkletzan at redhat.com
Thu Jan 23 08:37:43 UTC 2014


On Thu, Jan 23, 2014 at 02:50:50PM +0800, Chen Hanxiao wrote:
> From: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
>
> Signed-off-by: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
> ---
>  man/virt-install.pod | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/man/virt-install.pod b/man/virt-install.pod
> index 3e8e7d5..e569de9 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:
> --
> 1.8.2.1
>

ACK,

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20140123/b965fb45/attachment.sig>


More information about the virt-tools-list mailing list