[virt-tools-list] [PATCH virt-install] virtinst: Add --transient flag.

Richard W.M. Jones rjones at redhat.com
Wed Jun 1 13:32:55 UTC 2016


A fairly trivial patch which allows virt-install to create transient
libvirt domains.  This is useful to me because I want to use
'virt-builder' + 'virt-install --import --transient' to fire up
one-off guests for testing, and I don't want to deal with the hassle
of cleaning up libvirt domains.

I tested this using:

$ virt-builder centos-6
$ ./virt-install --import --transient \
    --name tmp3 --ram 2048 \
    --disk path=centos-6.img,format=raw \
    --os-variant centos6.5

After killing the guest with:

$ virsh destroy tmp3

you will observe that libvirt completely forgets the guest.

Also checked with 'python setup.py pylint' and 'python setup.py test'.

Rich.




More information about the virt-tools-list mailing list