Re: [virt-manager PATCH] man: add a example of how to config user namespace for LXC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/10/2014 10:04 PM, Chen Hanxiao wrote:
> From: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
> 
> update virt-xml man page and add a example.
> 
> Signed-off-by: Chen Hanxiao <chenhanxiao@xxxxxxxxxxxxxx>
> ---
>  man/virt-xml.pod | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/man/virt-xml.pod b/man/virt-xml.pod
> index 44f6353..177b4b9 100644
> --- a/man/virt-xml.pod
> +++ b/man/virt-xml.pod
> @@ -326,6 +326,10 @@ Generate XML for a virtio console device and print it to stdout:
>  
>    # virt-xml --build-xml --console pty,target_type=virtio
>  
> +Enable user namespace for lxc container, user ID 1000 on the host system will be mapped to user ID 0 inside container LXC1. So does group ID.
> +
> +  # virt-xml --connect=lxc:/// LXC1 --edit --idmap uid_start=0,uid_target=1000,uid_count=10,gid_start=0,gid_target=1000,gid_count=10
> +
>  
>  =head1 BUGS
>  
> 

I like to keep the example section small, otherwise it won't be useful. I
think in this case we don't need an explicit example: if people know that they
need UID mapping they can probably figure it out from the docs or help text.

- Cole

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux