[et-mgmt-tools] virt-p2v 0.9.7 - temporary failure in name resolution

Henry Kemp henry.kemp at future-route.com
Thu Mar 20 11:30:50 UTC 2008


I've just run through the process of getting virt-p2v setup to PXE boot
and that seemed pretty straightforward. During the install though it
didn't set up name resolution correctly - I'm assuming it should try to
do this from either looking at the files from the guest its trying to
virtualise or through DHCP?

Working throgh the virt-p2v script from the source code and the output
of virt-p2v (below) it looks as though it mounts up /etc from the
original host correctly and /etc/resolv.conf looks ok.

Then because this client is using DHCP when we run "/etc/init.d/network
start" it tries to move resolv.conf to one side but it can't because the
filesystem has been mounted ro. The script then unmounts /etc and we go
back to the /etc filesystem from the live image which doesn't have
anything setup for resolv.conf.

I can get around this by entering the IP of the target Xen host but it
would be a bit more user friendly if it picked up resolv.conf from the
box we're trying to virtualise.

Rgds,

Henry

**************************************************

virt-p2v starting up at 2008-03-20 10:50:23

sh: setterm -blank 0
all_block_devices: block devices: sda
shget: blockdev --getsize64 '/dev/sda'
all_block_devices: non-removable block devices: sda [78999715840]
shget: lvs --noheadings -o vg_name,lv_name,devices,lv_size
all_partitions: PVs: sda2
all_partitions: LVs: /dev/VolGroup00/LogVol00; /dev/VolGroup00/LogVol01
all_partitions: all partitions: /dev/sda2; /dev/sda1
all_partitions: partitions after removing PVs: /dev/sda1
shget: file -sbL '/dev/VolGroup00/LogVol00'
partition detection: /dev/VolGroup00/LogVol00 is Linux swap
shget: file -sbL '/dev/VolGroup00/LogVol01'
shwithstatus: mount -o ro '/dev/VolGroup00/LogVol01' /mnt/root
shget: file -bL '/mnt/root/sbin/init'
sh: umount /mnt/root
partition detection: /dev/VolGroup00/LogVol01 is RHEL 5.0 x86_64
shget: file -sbL '/dev/sda1'
shwithstatus: mount -o ro '/dev/sda1' /mnt/root
sh: umount /mnt/root
partition detection: /dev/sda1 is Linux /boot
shget: dmesg
shget: grep ^processor /proc/cpuinfo | tail -1 | awk '{print $3+1}'
sh: mount -o ro '/dev/VolGroup00/LogVol01' /mnt/root
sh: touch /etc/resolv.conf
sh: mount -o bind /mnt/root/etc /etc
shwithstatus: /etc/init.d/network start
cp: cannot create regular file `/etc/resolv.conf.predhclient.eth0':
Read-only file system
mv: cannot move `/etc/ntp.conf' to `/etc/ntp.conf.predhclient.eth0':
Read-only file system
/sbin/dhclient-script: line 399: /etc/ntp.conf.predhclient.eth0: No such
file or directory
/sbin/dhclient-script: line 402: /etc/ntp.conf: Read-only file system
/sbin/dhclient-script: line 402: /etc/ntp.conf: Read-only file system
sh: umount -l /etc
shfailok: ping -c3 `/sbin/ip route list match 0.0.0.0 | head -1 | awk
'{print $3}'`
sh: umount -l /mnt/root
ssh_connect: ssh -l 'root' -p '22' 'pluto.future-route.local' /bin/ls
'/var/lib/xen/images'
ssh_disconnect
ssh: pluto.future-route.local: Temporary failure in name resolution
ssh: exited with error code 255




More information about the et-mgmt-tools mailing list