]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vbox: Cleanup partially-defined VM on failure
authorDawid Zamirski <dzamirski@datto.com>
Tue, 7 Nov 2017 18:49:18 +0000 (13:49 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 7 Nov 2017 19:45:51 +0000 (14:45 -0500)
commit8442d01a716ba4e4306b32ca9824ebd6e43c2940
treecc19cf0b4734fe4c0a04e40440e82fd47f206f92
parent8fe48f20f88302e9ced078904b5f16c1e0a0772c
vbox: Cleanup partially-defined VM on failure

Since the VBOX API requires to register an initial VM before proceeding
to attach any remaining devices to it, any failure to attach such
devices should result in automatic cleanup of the initially registered
VM so that the state of VBOX registry remains clean without any leftover
"aborted" VMs in it. Failure to cleanup of such partial VMs results in a
warning log so that actual define error stays on the top of the error
stack.
src/vbox/vbox_common.c