<div dir="ltr"><div><div><div><div>Hi Rich<br><br></div>I tried the above two commands but resulted in below logs..<br><br><br>SUPERMIN_MODULES=/lib/modules/3.8.13-rt9-QorIQ-SDK-V1.4<br>SUPERMIN_KERNEL=/boot/uImage<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/libguestfsfPWXx0<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: build: /usr/local/lib/guestfs/supermin.d<br>supermin: build: visiting /usr/local/lib/guestfs/supermin.d/base.tar.gz type gzip base image (tar)<br>
supermin: build: visiting /usr/local/lib/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar)<br>supermin: build: visiting /usr/local/lib/guestfs/supermin.d/excludefiles type uncompressed excludefiles<br>supermin: build: visiting /usr/local/lib/guestfs/supermin.d/hostfiles type uncompressed hostfiles<br>
supermin: build: visiting /usr/local/lib/guestfs/supermin.d/init.tar.gz type gzip base image (tar)<br>supermin: build: visiting /usr/local/lib/guestfs/supermin.d/packages type uncompressed packages<br>supermin: build: visiting /usr/local/lib/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar)<br>
supermin: build: 121 packages, including dependencies<br>supermin: build: 7109 files<br>supermin: build: 7109 files, after removing unreadable files<br>supermin: build: 4939 files, after matching excludefiles<br>supermin: build: 4941 files, after adding hostfiles<br>
supermin: build: 4944 files, after munging<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>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 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></div>I think i need to enable virtio-serial in my kernel.<br>
</div>I'll you let you know the result after enabling virtio-seriel in the kernel inn 5-10 min.<br>Well sorry to disturb you on vocations.:-(<br><br></div>Thanks<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Jun 4, 2014 at 2:49 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 class="">On Wed, Jun 04, 2014 at 02:25:58PM +0530, abhishek jain wrote:<br>
> Hi RIch<br>
><br>
><br>
</div><div class="">> 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>
</div>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>
<div class=""><br>
Rich.<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>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>
</blockquote></div><br></div>