<div dir="ltr"><div><div><div><div>Hi Rich<br><br></div>I'm noe getting the below logs after running libguestfs-test-tool..<br><br>SUPERMIN_MODULES=/lib/modules/3.8.13-rt9-QorIQ-SDK-V1.4<br>SUPERMIN_KERNEL=/boot/vmlinuz-3.8.13-rt9-QorIQ-SDK-V1.4<br>
PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin<br>SELinux: sh: getenforce: command not found<br>guestfs_get_append: (null)<br>guestfs_get_autosync: 1<br>guestfs_get_backend: direct<br>guestfs_get_backend_settings: []<br>
guestfs_get_cachedir: /var/tmp<br>guestfs_get_direct: 0<br>guestfs_get_hv: /usr/bin/kvm<br>guestfs_get_memsize: 768<br>guestfs_get_network: 0<br>guestfs_get_path: /usr/local/lib/guestfs<br>guestfs_get_pgroup: 0<br>guestfs_get_program: libguestfs-test-tool<br>
guestfs_get_recovery_proc: 1<br>guestfs_get_selinux: 0<br>guestfs_get_smp: 1<br>guestfs_get_tmpdir: /tmp<br>guestfs_get_trace: 0<br>guestfs_get_verbose: 1<br>host_cpu: powerpc64<br>Launching appliance, timeout set to 600 seconds.<br>
libguestfs: launch: program=libguestfs-test-tool<br>libguestfs: launch: version=1.26.1<br>libguestfs: launch: backend registered: unix<br>libguestfs: launch: backend registered: uml<br>libguestfs: launch: backend registered: direct<br>
libguestfs: launch: backend=direct<br>libguestfs: launch: tmpdir=/tmp/libguestfskd0ua4<br>libguestfs: launch: umask=0002<br>libguestfs: launch: euid=1000<br>libguestfs: [00000ms] begin building supermin appliance<br>libguestfs: [00000ms] run supermin<br>
libguestfs: command: run: /usr/bin/supermin<br>libguestfs: command: run: \ --build<br>libguestfs: command: run: \ --verbose<br>libguestfs: command: run: \ --if-newer<br>libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock<br>
libguestfs: command: run: \ --copy-kernel<br>libguestfs: command: run: \ -f ext2<br>libguestfs: command: run: \ --host-cpu powerpc64<br>libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d<br>libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d<br>
supermin: version: 5.1.8<br>supermin: package handler: debian/dpkg<br>supermin: acquiring lock on /var/tmp/.guestfs-1000/lock<br>supermin: if-newer: output does not need rebuilding<br>libguestfs: [00014ms] finished building supermin appliance<br>
libguestfs: [00014ms] begin testing qemu features<br>libguestfs: command: run: /usr/bin/kvm<br>libguestfs: command: run: \ -display none<br>libguestfs: command: run: \ -help<br>libguestfs: command: run: /usr/bin/kvm<br>libguestfs: command: run: \ -display none<br>
libguestfs: command: run: \ -version<br>libguestfs: qemu version 2.0<br>libguestfs: command: run: /usr/bin/kvm<br>libguestfs: command: run: \ -display none<br>libguestfs: command: run: \ -machine accel=kvm:tcg<br>libguestfs: command: run: \ -device ?<br>
libguestfs: [00377ms] finished testing qemu features<br>[00378ms] /usr/bin/kvm \<br>    -global virtio-blk-pci.scsi=off \<br>    -nodefconfig \<br>    -enable-fips \<br>    -nodefaults \<br>    -display none \<br>    -M pseries \<br>
    -machine accel=kvm:tcg \<br>    -m 768 \<br>    -no-reboot \<br>    -rtc driftfix=slew \<br>    -global kvm-pit.lost_tick_policy=discard \<br>    -kernel /var/tmp/.guestfs-1000/appliance.d/kernel \<br>    -initrd /var/tmp/.guestfs-1000/appliance.d/initrd \<br>
    -device virtio-scsi-pci,id=scsi \<br>    -drive file=/tmp/libguestfskd0ua4/scratch.1,cache=unsafe,format=raw,id=hd0,if=none \<br>    -device scsi-hd,drive=hd0 \<br>    -drive file=/var/tmp/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none \<br>
    -device scsi-hd,drive=appliance \<br>    -device virtio-serial-pci \<br>    -serial stdio \<br>    -chardev socket,path=/tmp/libguestfskd0ua4/guestfsd.sock,id=channel0 \<br>    -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \<br>
    -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm'<br>kvm: -M pseries: Unsupported machine type<br>
Use -machine help to list supported machines!<br>libguestfs: error: guestfs_launch failed, see earlier error messages<br>libguestfs-test-tool: failed to launch appliance<br>libguestfs: closing guestfs handle 0x10016848 (state 0)<br>
libguestfs: command: run: rm<br>libguestfs: command: run: \ -rf /tmp/libguestfskd0ua4<br><br></div>The output of kvm machine help is as follows...<br><br><br> kvm -machine help<br>Supported machines are:<br>taihu                taihu<br>
mac99                Mac99 based PowerMAC<br>prep                 PowerPC PREP platform<br>g3beige              Heathrow based PowerMAC (default)<br>bamboo               bamboo<br>mpc8544ds            mpc8544ds<br>ppce500              generic paravirt e500 platform<br>
virtex-ml507         Xilinx Virtex ML507 reference design<br>none                 empty machine<br>ref405ep             ref405ep<br><br><br></div>Can you help regarding this.<br><br></div>Thanks<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Jun 4, 2014 at 5:12 PM, abhishek jain <span dir="ltr"><<a href="mailto:ashujain9727@gmail.com" target="_blank">ashujain9727@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>Hi Rich <br><br></div>I'm able to solve this.<br></div>I copied uImage to vmlinuz-3.8.13-rt9-QorIQ-SDK-V1.4 and I'm now able to proceed.<br><br></div>Thanks a lot for the help despite being on vocations.:-)<br>

<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 4, 2014 at 4:38 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br>
<br>
On Wed, Jun 04, 2014 at 03:29:11PM +0530, abhishek jain wrote:<br>
> supermin: kernel: SUPERMIN_KERNEL environment variable /boot/uImage<br>
> supermin: failed to find a suitable kernel (host_cpu=powerpc64).<br>
><br>
> I looked for kernels in /boot and modules in /lib/modules.<br>
<br>
</div>If you follow the code in src/<a href="http://kernel.ml" target="_blank">kernel.ml</a> you'll see that this means<br>
supermin was unable to get the kernel version from the supplied kernel<br>
file.  The code is fairly simple to follow.  I barely have internet<br>
access here and in any case I don't know what's in that uImage file,<br>
so I suggest compiling supermin yourself, running the command by hand,<br>
and adding printf's to src/<a href="http://kernel.ml" target="_blank">kernel.ml</a> in supermin to find the problem.<br>
<br>
Rich.<br>
<div><div><br>
<br>
><br>
> If this is a Xen guest, and you only have Xen domU kernels<br>
> installed, try installing a fullvirt kernel (only for<br>
> supermin use, you shouldn't boot the Xen guest with it).<br>
> libguestfs: error: /usr/bin/supermin exited with error status 1, see debug<br>
> messages above<br>
> libguestfs-test-tool: failed to launch appliance<br>
> libguestfs: closing guestfs handle 0x10016848 (state 0)<br>
> libguestfs: command: run: rm<br>
> libguestfs: command: run: \ -rf /tmp/libguestfsfPWXx0<br>
><br>
><br>
><br>
> I think i need to enable virtio-serial in my kernel.<br>
> I'll you let you know the result after enabling virtio-seriel in the kernel<br>
> inn 5-10 min.<br>
> Well sorry to disturb you on vocations.:-(<br>
><br>
> Thanks<br>
><br>
><br>
> On Wed, Jun 4, 2014 at 2:49 PM, Richard W.M. Jones <<a href="mailto:rjones@redhat.com" target="_blank">rjones@redhat.com</a>><br>
> wrote:<br>
><br>
> > On Wed, Jun 04, 2014 at 02:25:58PM +0530, abhishek jain wrote:<br>
> > > Hi RIch<br>
> > ><br>
> > ><br>
> > > Below are the details of the powerpc ubuntu system ...<br>
> > ><br>
> > > ls -l /boot/<br>
> > > total 10200<br>
> > > -rw-r--r-- 1 root root 5224765 Nov 22  2013 uImage<br>
> > > -rw-r--r-- 1 root root 5192861 Nov 22  2013 uImage.orig<br>
> > ><br>
> > ><br>
> > > ls -l /lib/modules/<br>
> > > total 4<br>
> > > drwxr-xr-x 3 ubuntu ubuntu 4096 Jun  3 07:21 3.8.13-rt9-QorIQ-SDK-V1.4<br>
> > ><br>
> > ><br>
> > > uname -a<br>
> > > Linux t4240-ubuntu1310 3.8.13-rt9-QorIQ-SDK-V1.4 #10 SMP Tue May 27<br>
> > > 10:48:24 IST 2014 ppc64 ppc64 ppc64 GNU/Linux<br>
> ><br>
> > Well, assuming the modules directory matches the kernel (uImage)<br>
> > you could try:<br>
> ><br>
> > export SUPERMIN_KERNEL=/boot/uImage<br>
> > export SUPERMIN_MODULES=/lib/modules/3.8.13-rt9-QorIQ-SDK-V1.4<br>
> ><br>
> > Are these homebrew kernels?  I'm surprised that an official Ubuntu<br>
> > ppc kernel would have such a non-standard name.  Anyway, if homebrew<br>
> > you'll also need to ensure the kernel supports all the usual virtio<br>
> > devices (especially virtio-serial, which is required by libguestfs).<br>
> ><br>
> > Rich.<br>
> ><br>
> > --<br>
> > Richard Jones, Virtualization Group, Red Hat<br>
> > <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
> > Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" target="_blank">http://rwmj.wordpress.com</a><br>
> > virt-top is 'top' for virtual machines.  Tiny program with many<br>
> > powerful monitoring features, net stats, disk stats, logging, etc.<br>
> > <a href="http://people.redhat.com/~rjones/virt-top" target="_blank">http://people.redhat.com/~rjones/virt-top</a><br>
> ><br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" target="_blank">http://rwmj.wordpress.com</a><br>
</div></div>virt-builder quickly builds VMs from scratch<br>
<a href="http://libguestfs.org/virt-builder.1.html" target="_blank">http://libguestfs.org/virt-builder.1.html</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>