[Libvirt-cim] [PATCH] cimtest: fix guest images generation

John Ferlan jferlan at redhat.com
Fri Aug 9 10:32:17 UTC 2013


On 08/09/2013 02:02 AM, Jincheng Miao wrote:
> ----- Original Message -----
>> I'm not the expert here - how would I know whether this works?
>>
>> I read the README, ran make but it didn't succeed:
>>
>> # make
>> chmod +x xmt-convert.sh
>> (cd xm-test && sh ../xmt-convert.sh `basename xm-test/initrd-1.1-i386.img`)
>> 1856 blocks
>> if uname -r | grep -q xen; then \
>> 	cp /boot/vmlinuz-`uname -r` /var/lib/libvirt/images/default-xen-kernel; \
>> fi
>> chmod +x xmt-makefv.sh
>> ./xmt-makefv.sh xm-test/xm-test.gz xm-test/xmt_disk.img
>> Warning: The resulting partition is not properly aligned for best
>> performance.
>> FAILED: No kver 0-rescue-9481a187403f46b38d535cf9ffa1cc20
>> make: *** [xm-test/xmt_disk.img] Error 1
> 
> hmm, for this error, xmt-makefv.sh fails to find the kernel image in your os.
> 
> In kernel_path() of xmt-makefv, 
> it uses "find /boot | grep vmlinuz | egrep -v 'xen|hmac'| tail -n1" to get image path. 
> 
> The error you met maybe that your kernel image lacks hmac (a signature).
> 
I understand the error I saw wasn't in the area you changed. I don't
believe my run got to the code you changed and as much as it seems like
an ACK would be in order, I couldn't test your portion of the change on
my host.

John


FWIW:

I have a f19 host


# find /boot | grep vmlinuz
/boot/.vmlinuz-3.9.11-200.fc18.x86_64.hmac
/boot/vmlinuz-3.9.6-200.fc18.x86_64
/boot/.vmlinuz-3.9.6-200.fc18.x86_64.hmac
/boot/vmlinuz-3.9.11-200.fc18.x86_64
/boot/vmlinuz-3.9.5-201.fc18.x86_64
/boot/vmlinuz-3.10.4-300.fc19.x86_64
/boot/.vmlinuz-3.9.5-201.fc18.x86_64.hmac
/boot/.vmlinuz-3.10.4-300.fc19.x86_64.hmac
/boot/vmlinuz-0-rescue-9481a187403f46b38d535cf9ffa1cc20


# find /boot | grep vmlinuz | egrep -v 'xen|hmac'
/boot/vmlinuz-3.9.6-200.fc18.x86_64
/boot/vmlinuz-3.9.11-200.fc18.x86_64
/boot/vmlinuz-3.9.5-201.fc18.x86_64
/boot/vmlinuz-3.10.4-300.fc19.x86_64
/boot/vmlinuz-0-rescue-9481a187403f46b38d535cf9ffa1cc20




More information about the Libvirt-cim mailing list