<div>Ok thanks. What is the alternate method to achieve this? Use Qemu Manager or Virtmanager?</div><div> </div><div>Sandeep.<br><br></div><div class="gmail_quote">On Mon, Feb 25, 2013 at 10:22 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div class="HOEnZb"><div class="h5">On Thu, Feb 14, 2013 at 09:11:41PM +0530, Sandeep Raman wrote:<br>

> Hello,<br>
><br>
> I get the following message on virt-edit Guestname /boot/grub/grub.conf.<br>
> I have executed the command.<br>
> guestmount –ro -a /var/lib/nova/instances/instance-00000001/disk -m<br>
> /dev/sda1 /mnt<br>
> guestmount -d instance-00000001 -i –ro /mnt<br>
><br>
> root@compute:~# virt-edit instance-00000001 /boot/grub/grub.conf<br>
> libguestfs: error: error: domain is a live virtual machine.<br>
> Writing to the disks of a running virtual machine can cause disk corruption.<br>
> Either use read-only access, or if the guest is running the guestfsd daemon<br>
> specify live access. In most libguestfs tools these options are –ro or<br>
> –live respectively. Consult the documentation for further information.<br>
> root@compute:~#<br>
><br>
> Please help how to get past this.<br>
<br>
</div></div>As the error says, this can't be done.  You can't use virt-edit on<br>
live virtual machines.<br>
<br>
Rich.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjonesvirt-p2v" target="_blank">http://people.redhat.com/~rjones<br>
virt-p2v</a> converts physical machines to virtual machines.  Boot with a<br>
live CD or over the network (PXE) and turn machines into KVM guests.<br>
<a href="http://libguestfs.org/virt-v2v" target="_blank">http://libguestfs.org/virt-v2v</a><br>
<br>
_______________________________________________<br>
Libguestfs mailing list<br>
<a href="mailto:Libguestfs@redhat.com">Libguestfs@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libguestfs" target="_blank">https://www.redhat.com/mailman/listinfo/libguestfs</a></font></span></blockquote></div><br>