Dennis Jacobfeuerborn
2013-Dec-29 18:44 UTC
[libvirt-users] --persistent/--config confusion
Hi, I'm wondering how to attach a network device properly to a domain. According to the man page without "--config" a device created with "attach-device" will be added to the domain yet with "--config" it will only be added to the config and only be available after a restart of the guest. Is there no way to attach the device immediately *and* also make that change persistent? Regards, Dennis
On 12/29/2013 11:44 AM, Dennis Jacobfeuerborn wrote:> Hi, > I'm wondering how to attach a network device properly to a domain. > According to the man page without "--config" a device created with > "attach-device" will be added to the domain yet with "--config" it will > only be added to the config and only be available after a restart of the > guest. > Is there no way to attach the device immediately *and* also make that > change persistent?Try combining both --config and --live on the same command line. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Dennis Jacobfeuerborn
2014-Jan-15 04:27 UTC
Re: [libvirt-users] --persistent/--config confusion
On 15.01.2014 03:35, Eric Blake wrote:> On 12/29/2013 11:44 AM, Dennis Jacobfeuerborn wrote: >> Hi, >> I'm wondering how to attach a network device properly to a domain. >> According to the man page without "--config" a device created with >> "attach-device" will be added to the domain yet with "--config" it will >> only be added to the config and only be available after a restart of the >> guest. >> Is there no way to attach the device immediately *and* also make that >> change persistent? > > Try combining both --config and --live on the same command line. >I tried --persistent and that seemed to have updated both the running system and the configuration. Regards, Dennis