  Re: [libvirt-users] virsh edit problems  On 09/26/2011 02:30
PM, Robin Lee Powell wrote: What I have now:       <serial
type='pty'>        <target port='0'/>      <console type='pty'>
That's correct for the persistent config.  No matter what I
change, whether I use "virsh edit"   or edit the files directly,
Don't do that. It won't work, and you risk corrupting things by
going behind libvirt's back.  > even with libvirt off, as soon
as libvirt notices (i.e. when I turn it back on) my changes get
blown away and it ends up looking just like the above.  Even as
simple a thing as changing the port number, or removing the
console, or adding a second serial... all gone.  That's an
indication that the things you are adding are not essential to
the persistent config. 'virsh edit' prunes your input back into
the xml essential to what libvirt needed, so if your edits
didn't stick, then they weren't making a difference.  Oh, wait,
that's not quite true; adding a second serial *does* work. But
nothing else I've tried