2015-12-04 18:22 GMT+08:00 Richard W.M. Jones <rjones@redhat.com>:
On Fri, Dec 04, 2015 at 06:00:39PM +0800, 阎淼 wrote:
/sys/block/{h,s,ub,v}d*/queue/scheduler: Directory nonexistent [ 1.775004] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2 /sbin/dhclient-script: 31: /sbin/dhclient-script: cannot open /etc/fstab: No such file RTNETLINK answers: File exists
The failure is here:
https://github.com/libguestfs/libguestfs/blob/master/appliance/init#L110-L11...
But actually it's a failure in whatever provides the dhclient / dhclient-script in your host. What is the host system?
It's Ubuntu 15.04 server.
This was reported before, but not resolved:
https://www.redhat.com/archives/libguestfs/2015-June/msg00361.html
It can be worked around by changing the code (see above) to use dhcpcd or another dhcp server. But basically it's a bug in your host distro that they are supplying a dhclient-script that doesn't work when /etc/fstab is missing, so you need to report it there.
I'll try the workaround. Thanks for your help. Miao
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com 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