home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

Disk source image error when reprovisioning a guest automatically

If you have already provisioned a guest and then enter the delete virtualization guest configuration mode command to delete the specified guest, you cannot deploy the guest again by using the add virtualization xml operational mode command. An error message similar to the following is displayed.

vyatta@vyatta:~$ add virtualization xml /home/vyatta/vr5600.xml image /home/vyatta/vr5600.qcow2 iso /home/vyatta/config.iso
RPC failure: [ERROR] - Disk source image "/var/lib/libvirt/images/vr5600/0-vr5600.qcow2" already exists at /opt/vyatta/share/perl5/Vyatta/Configd.pm line 193.
vyatta@vyatta:~$

The issue occurs because the delete virtualization guest command deletes the guest configuration only. The command does not delete any disk images that are used by the hypervisor in the /var/lib/libvirt/images folder. To resolve the issue, use the force option with the add virtualization xml command or delete the disk image when you delete the guest.

The delete virtualization image operational command is available to delete guest images from the /var/lib/libvirt/images folder.