[virt-tools-list] virt-clone "PORT Number"

Cole Robinson crobinso at redhat.com
Wed Oct 17 01:04:27 UTC 2012


On 10/09/2012 03:04 PM, Service Computing wrote:
> Dear Users,
> 
> I am using virt-clone utility to clone xen guests using the following:
> virt-clone --connect xen:/// --original demo --name newdemo  --file
> /var/lib/libvirt/images/newdemo.img
> 
> Domain demo has the port 5902. I need an assistance that how to assign port to
> the cloned guest. One way is to use "virsh edit" but i need to give port
> during cloning. Such as we define port in "virt-install --vnc --vncport 5903"
> etc etc.
> 

There isn't any way unfortunately. You could create a wrapper script as a one
off that does: virt-clone, virsh dumpxml, edit the port number, virsh define.

Feel free to also file a feature request:

http://virt-manager.org/page/BugReporting

- Cole




More information about the virt-tools-list mailing list