On Tue, Dec 02, 2014 at 02:26:49PM +0000, Suvajit Sarkar wrote:
Hello, I am trying to run this command virt-rescue --suggest -d XYZ virt-rescue --network -d XYZ the prompt is looking like this: I have no name!@(none):
This is probably: https://bugzilla.redhat.com/show_bug.cgi?id=812970 It is supposed to be fixed in libguestfs >= 1.28.
now I mounted the root partition suggested by virt-rescue to /sysroot then chroot /sysroot after that I tried to rebuild an initrd.img with the following command
update-initramfs -c -k 3.2.0-58-generic
But it failed with following error: update-initramfs: failed for /boot/initrd.img-3.2.0-58-generic with 1.
What was the output of the 'virt-rescue --suggest -d XYZ'? And did you run _all_ those commands?
Also when running apt-get update , it fails saying "no address associated with hostname.
Likely you need to copy /etc/resolv.conf to /sysroot/etc/resolv.conf as well, so that name resolution works inside the chroot.
host configuration:ubuntu 14.04 guest:ubuntu 12.04
Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org