Hi, I am using "virsh edit" to edit a domain. After edit it says>> Domain ubuntu18.04 XML configuration edited.However, reopening the domain with "virsh edit" shows old file. The domain is also turned off. $virsh list --all --persistent Id Name State ---------------------------------------------------- - ubuntu18.04 shut off I have also tried running "virsh define" to set new configuration. $virsh define ubuntu18.04.xml>>> Domain ubuntu18.04 defined from ubuntu18.04.xmlHowever, it also did not change the file. How can I edit the domain config file? OS: Ubuntu 18.04.1 virsh: 4.0.0 -- Probir
Andrea Bolognani
2019-Jul-22 08:43 UTC
Re: [libvirt-users] virsh edit has no impact on domain
On Sat, 2019-07-20 at 03:20 -0500, Probir Roy wrote:> Hi, > > I am using "virsh edit" to edit a domain. After edit it says > > >> Domain ubuntu18.04 XML configuration edited. > > However, reopening the domain with "virsh edit" shows old file. > > The domain is also turned off. > > $virsh list --all --persistent > Id Name State > ---------------------------------------------------- > - ubuntu18.04 shut off > > > I have also tried running "virsh define" to set new configuration. > > > $virsh define ubuntu18.04.xml > >>> Domain ubuntu18.04 defined from ubuntu18.04.xml > > However, it also did not change the file. How can I edit the domain config file? > > OS: Ubuntu 18.04.1 > virsh: 4.0.0What exactly did you change? Can you show both the output of 'virsh dumpxml ubuntu18.04 --inactive' and the contents of ubuntu18.04.xml? -- Andrea Bolognani / Red Hat / Virtualization