Re: [virt-bootstrap] [PATCH v6 04/26] untar: Use unique name with virt-sandbox

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

 



On Thu, 2017-08-17 at 10:39 +0100, Radostin Stoyanov wrote:
> Specify unique name when creating Libvirt domain with virt-sandbox.
> Othrwise the default name "sandbox" will be used and this might result
> in collision with another instance of virt-bootstrap.
> ---
>  src/virtBootstrap/utils.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/virtBootstrap/utils.py b/src/virtBootstrap/utils.py
> index 5095ccf..f98e0b3 100644
> --- a/src/virtBootstrap/utils.py
> +++ b/src/virtBootstrap/utils.py
> @@ -102,6 +102,7 @@ def safe_untar(src, dest):
>      """
>      virt_sandbox = ['virt-sandbox',
>                      '-c', LIBVIRT_CONN,
> +                    '--name=bootstrap_%s' % os.getpid(),
>                      '-m', 'host-bind:/mnt=' + dest]  # Bind destination folder
>  
>      # Compression type is auto detected from tar

ACK

--
Cedric

_______________________________________________
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