Re: migrate libvirt config between machines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Tue, Nov 30, 2021 at 09:28:36AM +0100, Michal Prívozník wrote:
> On 11/29/21 17:37, daggs wrote:
> > Greetings,
> > 
> > I'd like to migrate my current libvirt config from one machine to another, what is the best way to do so?
> > 
> > Thanks
> > 
> Do you mean domain/network/... XMLs or {libvirtd,qemu,...}.config files?
> For the former I suggest 'virsh dumpxml $dom > dom.xml' and copying over
> the file onto new machine and defining the domain again 'virsh define
> dom.xml' (s/dumpxml/net-dumpxml/ and s/define/net-define/ for networks
> and so on).
> If you run new enough libvirt there's even 'virsh migrate --offline'
> that encapsulates steps from above.

NB, i'm not sure this is clever enough to copy across the TPM state or
the EDK variables state, if you're using such feature.

|:      -o- :|
|:         -o-   :|
|:    -o- :|

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux