Sandeep Raman
2013-Feb-14 15:41 UTC
[Libguestfs] virt-edit Guestname /boot/grub/grub.conf error
Hello, I get the following message on virt-edit Guestname /boot/grub/grub.conf. I have executed the command. guestmount ?ro -a /var/lib/nova/instances/instance-00000001/disk -m /dev/sda1 /mnt guestmount -d instance-00000001 -i ?ro /mnt root at compute:~# virt-edit instance-00000001 /boot/grub/grub.conf libguestfs: error: error: domain is a live virtual machine. Writing to the disks of a running virtual machine can cause disk corruption. Either use read-only access, or if the guest is running the guestfsd daemon specify live access. In most libguestfs tools these options are ?ro or ?live respectively. Consult the documentation for further information. root at compute:~# Please help how to get past this. Regards, Sandeep. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20130214/a184c210/attachment.htm>
Richard W.M. Jones
2013-Feb-25 16:52 UTC
[Libguestfs] virt-edit Guestname /boot/grub/grub.conf error
On Thu, Feb 14, 2013 at 09:11:41PM +0530, Sandeep Raman wrote:> Hello, > > I get the following message on virt-edit Guestname /boot/grub/grub.conf. > I have executed the command. > guestmount ?ro -a /var/lib/nova/instances/instance-00000001/disk -m > /dev/sda1 /mnt > guestmount -d instance-00000001 -i ?ro /mnt > > root at compute:~# virt-edit instance-00000001 /boot/grub/grub.conf > libguestfs: error: error: domain is a live virtual machine. > Writing to the disks of a running virtual machine can cause disk corruption. > Either use read-only access, or if the guest is running the guestfsd daemon > specify live access. In most libguestfs tools these options are ?ro or > ?live respectively. Consult the documentation for further information. > root at compute:~# > > Please help how to get past this.As the error says, this can't be done. You can't use virt-edit on live virtual machines. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v