GNOME Bugzilla – Bug 732761
VM import from system needs to update network
Last modified: 2016-03-31 13:22:00 UTC
I tried to import a VM created on the system connection to Boxes by using the import option from Boxes' wizard. The import seems to work, the VM is listed and the file system image is copied. However, when trying to start the box I get this: --- Connection to "nc-centos7" failed --- I connected to the session bus with virt-manager, the VM is listed there now, too. Trying to start it from here brings a better error message: --- Error starting domain: Network not found: no network with matching name 'default' Traceback (most recent call last):
+ Trace 233772
callback(asyncjob, *args, **kwargs)
callback(*args, **kwargs)
self._backend.create()
if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
--- I checked and there is not "default" network listed for the session connection. Also, the network of the imported VM was of NAT type which I guess is not supported by session connection?
Created attachment 279943 [details] Config dump of original VM
Created attachment 279944 [details] Config dump of imported VM
Hmm.. I think we need to change the network to something session libvirt can do as part of the import.
(In reply to comment #0) > > I connected to the session bus with virt-manager, the VM is listed there now, > too. Trying to start it from here brings a better error message: Better for you and me, not most users. :) If you don't see any errors on console either, thats a bug though.
Fixed in master now: commit: 367b7e3255c11ffede5537cda86f3a3bc5ed1c6e Date: Mon Feb 2 20:13:43 2015 +0000 vm-configurator: Replace 'network' interface also When updating domain configs, along with replacing the user interface with bridge interface, also replace interface of 'network' type. This interface is used by system libvirt VMs and seems to be not available to session libvirt. commit: f2e7aa8a9060ad1aed714ad9a7e21efc244d0d1d Date: Mon Feb 2 20:16:41 2015 +0000 vm-creator: Private 'connection' prop now protected commit: 251e2094df15dd79a1b9f0e919ee1ea448e481d9 Date: Mon Feb 2 20:17:36 2015 +0000 libvirt-system-vm-importer: Update domain config on import Lets ensure that box looks as much like other normal local boxes as possible after import from system broker. At least this fixes the issue of imported boxes not starting up due to domain using a network interface not available to session libvirt.