[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] Virt-rescue problem

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:
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


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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]