libguestfs supermin error
Hi I have compiled libguestfs-1.26.1 on powerpc ubuntu using supermin_5.1.8-2_powerpc.deb as it dependency package. When I'm executing the binary libguestfs-test-tool on powerpc ubuntu,I'm getting supermin error... ATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin SELinux: sh: getenforce: command not found guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfsbnHqnU libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.8 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: build: /usr/local/lib/guestfs/supermin.d supermin: build: visiting /usr/local/lib/guestfs/supermin.d/base.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/excludefiles type uncompressed excludefiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/hostfiles type uncompressed hostfiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/init.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/packages type uncompressed packages supermin: build: visiting /usr/local/lib/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar) supermin: build: 121 packages, including dependencies supermin: build: 7109 files supermin: build: 7109 files, after removing unreadable files supermin: build: 4939 files, after matching excludefiles supermin: build: 4941 files, after adding hostfiles supermin: build: 4944 files, after munging supermin: failed to find a suitable kernel (host_cpu=powerpc64). I looked for kernels in /boot and modules in /lib/modules. If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsbnHqnU Please help regarding this. Thanks Abhishek Jain
On Tue, Jun 03, 2014 at 06:55:49PM +0530, abhishek jain wrote:
supermin: failed to find a suitable kernel (host_cpu=powerpc64).
I looked for kernels in /boot and modules in /lib/modules.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsbnHqnU
This seems to be the same error as before: https://www.redhat.com/archives/libguestfs/2014-May/msg00138.html Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Hi Rich But there is no src/kernel.ml file on my ubuntu powerpc to which the above patch is reffering. I have installed supermin as supermin_5.1.8-2_powerpc.deb debian package. Thanks On Tue, Jun 3, 2014 at 7:16 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Tue, Jun 03, 2014 at 06:55:49PM +0530, abhishek jain wrote:
supermin: failed to find a suitable kernel (host_cpu=powerpc64).
I looked for kernels in /boot and modules in /lib/modules.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsbnHqnU
This seems to be the same error as before:
https://www.redhat.com/archives/libguestfs/2014-May/msg00138.html
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Hi Rich I have installed supermin from source supermin_5.1.7.orig.tar.gz on powerpc and have applied the patch as reffered by you.Know I'm getting following error .. libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin SELinux: sh: getenforce: command not found guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfsJF3lvj libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.7 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: build: /usr/local/lib/guestfs/supermin.d supermin: build: visiting /usr/local/lib/guestfs/supermin.d/base.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/excludefiles type uncompressed excludefiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/hostfiles type uncompressed hostfiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/init.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/packages type uncompressed packages supermin: build: visiting /usr/local/lib/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar) supermin: build: 121 packages, including dependencies supermin: build: 7109 files supermin: build: 7109 files, after removing unreadable files supermin: build: 4939 files, after matching excludefiles supermin: build: 4941 files, after adding hostfiles supermin: build: 4944 files, after munging supermin: failed to find a suitable kernel (host_cpu=powerpc64). I looked for kernels in /boot and modules in /lib/modules. If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsJF3lvj *My kernel.ml <http://kernel.ml> file after applying the patch is as follows...* cat src/kernel.ml (* supermin 5 * Copyright (C) 2009-2014 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *) open Unix open Printf open Utils open Ext2fs open Fnmatch let patt_of_cpu host_cpu = let models = match host_cpu with | "mips" | "mips64" -> [host_cpu; "*-malta"] | "ppc" | "powerpc" | "powerpc64" -> ["ppc"; "powerpc"; "powerpc64"] | "sparc" | "sparc64" -> ["sparc"; "sparc64"] | "amd64" | "x86_64" -> ["amd64"; "x86_64"] | _ when host_cpu.[0] = 'i' && host_cpu.[2] = '8' && host_cpu.[3] = '6' -> ["?86"] | _ when String.length host_cpu >= 5 && String.sub host_cpu 0 5 = "armv7" -> ["armmp"] | _ -> [host_cpu] in List.map (fun model -> sprintf "vmlinu?-*-%s" model) models let rec build_kernel debug host_cpu dtb_wildcard copy_kernel kernel dtb = (* Locate the kernel. *) let kernel_name, kernel_version = find_kernel debug host_cpu copy_kernel kernel in (* If the user passed --dtb option, locate dtb. *) (match dtb_wildcard with | None -> () | Some wildcard -> find_dtb debug copy_kernel kernel_name wildcard dtb ); (* Get the kernel modules. *) let modpath = find_modpath debug kernel_version in if debug >= 1 then ( printf "supermin: kernel: kernel_version %s\n" kernel_version; printf "supermin: kernel: modules %s\n%!" modpath; ); (kernel_version, modpath) and find_kernel debug host_cpu copy_kernel kernel = let kernel_file, kernel_name, kernel_version = try let kernel_env = getenv "SUPERMIN_KERNEL" in if debug >= 1 then printf "supermin: kernel: SUPERMIN_KERNEL environment variable %s\n%!" kernel_env; let kernel_version = get_kernel_version_from_file kernel_env in if debug >= 1 then printf "supermin: kernel: SUPERMIN_KERNEL version %s\n%!" kernel_version; let kernel_name = Filename.basename kernel_env in kernel_env, kernel_name, kernel_version with Not_found -> let is_powerpc = String.length host_cpu >= 3 && host_cpu.[0] = 'a' && host_cpu.[1] = 'r' && host_cpu.[2] = 'm' in let all_files = Sys.readdir "/boot" in let all_files = Array.to_list all_files in (* In original: ls -1dvr /boot/vmlinuz-*.$arch* 2>/dev/null | grep -v xen *) let patterns = patt_of_cpu host_cpu in let files = kernel_filter patterns is_powerpc all_files in let files = if files <> [] then files else (* In original: ls -1dvr /boot/vmlinuz-* 2>/dev/null | grep -v xen *) kernel_filter ["vmlinu?-*"] is_powerpc all_files in if files = [] then no_kernels host_cpu; let files = List.sort (fun a b -> compare_version b a) files in let kernel_name = List.hd files in let kernel_version = get_kernel_version kernel_name in if debug >= 1 then printf "supermin: kernel: picked kernel %s\n%!" kernel_name; ("/boot" // kernel_name), kernel_name, kernel_version in copy_or_symlink_file copy_kernel kernel_file kernel; kernel_name, kernel_version and kernel_filter patterns is_powerpc all_files = let files = List.filter (fun filename -> List.exists (fun patt -> fnmatch patt filename [FNM_NOESCAPE]) patterns ) all_files in let files = List.filter (fun filename -> find filename "xen" = -1) files in let files = if not is_powerpc then files else ( List.filter (fun filename -> find filename "lpae" = -1 && find filename "tegra" = -1 ) files ) in List.filter (fun filename -> has_modpath filename) files and no_kernels host_cpu = eprintf "\ supermin: failed to find a suitable kernel (host_cpu=%s). I looked for kernels in /boot and modules in /lib/modules. If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it).\n" host_cpu; exit 1 and find_dtb debug copy_kernel kernel_name wildcard dtb = let dtb_file = try let dtb_file = getenv "SUPERMIN_DTB" in if debug >= 1 then printf "supermin: kernel: SUPERMIN_DTB environment variable = %s\n%!" dtb_file; dtb_file with Not_found -> (* Replace vmlinuz- with dtb- *) if not (string_prefix "vmlinuz-" kernel_name) && not (string_prefix "vmlinuz-" kernel_name) then no_dtb_dir kernel_name; let dtb_dir = try List.find dir_exists ( List.map (fun prefix -> prefix ^ String.sub kernel_name 8 (String.length kernel_name - 8) ) ["/boot/dtb-"; "/usr/lib/linux-image-"]) with Not_found -> no_dtb_dir kernel_name; "" in let all_files = Sys.readdir dtb_dir in let all_files = Array.to_list all_files in let files = List.filter (fun filename -> fnmatch wildcard filename [FNM_NOESCAPE]) all_files in if files = [] then no_dtb dtb_dir wildcard; let dtb_name = List.hd files in let dtb_file = dtb_dir // dtb_name in if debug >= 1 then printf "supermin: kernel: picked dtb %s\n%!" dtb_file; dtb_file in copy_or_symlink_file copy_kernel dtb_file dtb and no_dtb_dir kernel_name = eprintf "\ supermin: failed to find a dtb (device tree) directory. I expected to take '%s' and to replace vmlinuz- with dtb- to form a directory. You can set SUPERMIN_KERNEL, SUPERMIN_MODULES and SUPERMIN_DTB to override automatic selection. See supermin(1).\n" kernel_name; exit 1 and no_dtb dtb_dir wildcard = eprintf "\ supermin: failed to find a matching device tree. I looked for a file matching '%s' in directory '%s'. You can set SUPERMIN_KERNEL, SUPERMIN_MODULES and SUPERMIN_DTB to override automatic selection. See supermin(1).\n" wildcard dtb_dir; exit 1 and find_modpath debug kernel_version = try let modpath = getenv "SUPERMIN_MODULES" in if debug >= 1 then printf "supermin: kernel: SUPERMIN_MODULES environment variable = %s\n%!" modpath; modpath with Not_found -> let modpath = "/lib/modules/" ^ kernel_version in if debug >= 1 then printf "supermin: kernel: picked modules path %s\n%!" modpath; modpath and has_modpath kernel_name = try let kv = get_kernel_version kernel_name in modules_dep_exists kv with | Not_found -> false and get_kernel_version kernel_name = if (string_prefix "vmlinuz-" kernel_name) || (string_prefix "vmlinux-" kernel_name) then ( let kv = String.sub kernel_name 8 (String.length kernel_name - 8) in if modules_dep_exists kv then kv else get_kernel_version_from_name kernel_name ) else get_kernel_version_from_name kernel_name and modules_dep_exists kv = try (lstat ("/lib/modules/" ^ kv ^ "/modules.dep")).st_kind = S_REG with Unix_error _ -> false and get_kernel_version_from_name kernel_name = get_kernel_version_from_file ("/boot" // kernel_name) (* Extract the kernel version from a Linux kernel file. * * Returns a string containing the version or [Not_found] if the * file can't be read, is not a Linux kernel, or the version can't * be found. * * See ftp://ftp.astron.com/pub/file/file-<ver>.tar.gz * (file-<ver>/magic/Magdir/linux) for the rules used to find the * version number: * 514 string HdrS Linux kernel * >518 leshort >0x1ff * >>(526.s+0x200) string >\0 version %s, * * Bugs: probably limited to x86 kernels. *) and get_kernel_version_from_file file = try let chan = open_in file in let buf = read_string chan 514 4 in if buf <> "HdrS" then ( close_in chan; raise Not_found ); let s = read_leshort chan 518 in if s < 0x1ff then ( close_in chan; raise Not_found ); let offset = read_leshort chan 526 in if offset < 0 then ( close_in chan; raise Not_found ); let buf = read_string chan (offset + 0x200) 132 in close_in chan; let rec loop i = if i < 132 then ( if buf.[i] = '\000' || buf.[i] = ' ' || buf.[i] = '\t' || buf.[i] = '\n' then String.sub buf 0 i else loop (i+1) ) else raise Not_found in loop 0 with | Sys_error _ -> raise Not_found | Invalid_argument _ -> raise Not_found (* Read an unsigned little endian short at a specified offset in a file. *) and read_leshort chan offset = let buf = read_string chan offset 2 in (Char.code buf.[1] lsl 8) lor Char.code buf.[0] and read_string chan offset len = seek_in chan offset; let buf = String.create len in really_input chan buf 0 len; buf and copy_or_symlink_file copy_kernel src dest = if not copy_kernel then symlink src dest else ( let cmd = sprintf "cp -p %s %s" (quote src) (quote dest) in run_command cmd ) Please help me what I need to change in order to proceed . Thanks for the support. On Tue, Jun 3, 2014 at 8:07 PM, abhishek jain <ashujain9727@gmail.com> wrote:
Hi Rich
But there is no src/kernel.ml file on my ubuntu powerpc to which the above patch is reffering. I have installed supermin as supermin_5.1.8-2_powerpc.deb debian package.
Thanks
On Tue, Jun 3, 2014 at 7:16 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Tue, Jun 03, 2014 at 06:55:49PM +0530, abhishek jain wrote:
supermin: failed to find a suitable kernel (host_cpu=powerpc64).
I looked for kernels in /boot and modules in /lib/modules.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsbnHqnU
This seems to be the same error as before:
https://www.redhat.com/archives/libguestfs/2014-May/msg00138.html
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Hi Rich Kindly ignore my previos mail. I have downloaded the latest version of supermin supermin-5.1.8 and have compiled it for powerpc.Moreover there was no need to patch the src/ kernel.ml file as the changes were already implemented on the latest version. But still when i run libguestfs-test-tool on powerpc ubuntu,I get the below logs.. libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin SELinux: sh: getenforce: command not found guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfscCuR3p libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.8 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: build: /usr/local/lib/guestfs/supermin.d supermin: build: visiting /usr/local/lib/guestfs/supermin.d/base.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/excludefiles type uncompressed excludefiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/hostfiles type uncompressed hostfiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/init.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/packages type uncompressed packages supermin: build: visiting /usr/local/lib/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar) supermin: build: 121 packages, including dependencies supermin: build: 7109 files supermin: build: 7109 files, after removing unreadable files supermin: build: 4939 files, after matching excludefiles supermin: build: 4941 files, after adding hostfiles supermin: build: 4944 files, after munging supermin: failed to find a suitable kernel (host_cpu=powerpc64). I looked for kernels in /boot and modules in /lib/modules. If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfscCuR3p Please help me regarding this. Thanks On Wed, Jun 4, 2014 at 12:22 PM, abhishek jain <ashujain9727@gmail.com> wrote:
Hi Rich
I have installed supermin from source supermin_5.1.7.orig.tar.gz on powerpc and have applied the patch as reffered by you.Know I'm getting following error ..
libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************
PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
SELinux: sh: getenforce: command not found guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfsJF3lvj
libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.7
supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: build: /usr/local/lib/guestfs/supermin.d supermin: build: visiting /usr/local/lib/guestfs/supermin.d/base.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/excludefiles type uncompressed excludefiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/hostfiles type uncompressed hostfiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/init.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/packages type uncompressed packages supermin: build: visiting /usr/local/lib/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar) supermin: build: 121 packages, including dependencies supermin: build: 7109 files supermin: build: 7109 files, after removing unreadable files supermin: build: 4939 files, after matching excludefiles supermin: build: 4941 files, after adding hostfiles supermin: build: 4944 files, after munging supermin: failed to find a suitable kernel (host_cpu=powerpc64). I looked for kernels in /boot and modules in /lib/modules.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsJF3lvj
*My kernel.ml <http://kernel.ml> file after applying the patch is as follows...* cat src/kernel.ml (* supermin 5 * Copyright (C) 2009-2014 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *)
open Unix open Printf
open Utils open Ext2fs open Fnmatch
let patt_of_cpu host_cpu = let models = match host_cpu with | "mips" | "mips64" -> [host_cpu; "*-malta"] | "ppc" | "powerpc" | "powerpc64" -> ["ppc"; "powerpc"; "powerpc64"] | "sparc" | "sparc64" -> ["sparc"; "sparc64"] | "amd64" | "x86_64" -> ["amd64"; "x86_64"] | _ when host_cpu.[0] = 'i' && host_cpu.[2] = '8' && host_cpu.[3] = '6' -> ["?86"] | _ when String.length host_cpu >= 5 && String.sub host_cpu 0 5 = "armv7" -> ["armmp"] | _ -> [host_cpu] in List.map (fun model -> sprintf "vmlinu?-*-%s" model) models
let rec build_kernel debug host_cpu dtb_wildcard copy_kernel kernel dtb = (* Locate the kernel. *) let kernel_name, kernel_version = find_kernel debug host_cpu copy_kernel kernel in
(* If the user passed --dtb option, locate dtb. *) (match dtb_wildcard with | None -> () | Some wildcard -> find_dtb debug copy_kernel kernel_name wildcard dtb );
(* Get the kernel modules. *) let modpath = find_modpath debug kernel_version in
if debug >= 1 then ( printf "supermin: kernel: kernel_version %s\n" kernel_version; printf "supermin: kernel: modules %s\n%!" modpath; );
(kernel_version, modpath)
and find_kernel debug host_cpu copy_kernel kernel = let kernel_file, kernel_name, kernel_version = try let kernel_env = getenv "SUPERMIN_KERNEL" in if debug >= 1 then printf "supermin: kernel: SUPERMIN_KERNEL environment variable %s\n%!" kernel_env; let kernel_version = get_kernel_version_from_file kernel_env in if debug >= 1 then printf "supermin: kernel: SUPERMIN_KERNEL version %s\n%!" kernel_version; let kernel_name = Filename.basename kernel_env in kernel_env, kernel_name, kernel_version with Not_found -> let is_powerpc = String.length host_cpu >= 3 && host_cpu.[0] = 'a' && host_cpu.[1] = 'r' && host_cpu.[2] = 'm' in
let all_files = Sys.readdir "/boot" in let all_files = Array.to_list all_files in
(* In original: ls -1dvr /boot/vmlinuz-*.$arch* 2>/dev/null | grep -v xen *) let patterns = patt_of_cpu host_cpu in let files = kernel_filter patterns is_powerpc all_files in
let files = if files <> [] then files else (* In original: ls -1dvr /boot/vmlinuz-* 2>/dev/null | grep -v xen *) kernel_filter ["vmlinu?-*"] is_powerpc all_files in
if files = [] then no_kernels host_cpu;
let files = List.sort (fun a b -> compare_version b a) files in let kernel_name = List.hd files in let kernel_version = get_kernel_version kernel_name in
if debug >= 1 then printf "supermin: kernel: picked kernel %s\n%!" kernel_name;
("/boot" // kernel_name), kernel_name, kernel_version in
copy_or_symlink_file copy_kernel kernel_file kernel; kernel_name, kernel_version
and kernel_filter patterns is_powerpc all_files = let files = List.filter (fun filename -> List.exists (fun patt -> fnmatch patt filename [FNM_NOESCAPE]) patterns ) all_files in let files = List.filter (fun filename -> find filename "xen" = -1) files in let files = if not is_powerpc then files else ( List.filter (fun filename -> find filename "lpae" = -1 && find filename "tegra" = -1 ) files ) in List.filter (fun filename -> has_modpath filename) files
and no_kernels host_cpu = eprintf "\ supermin: failed to find a suitable kernel (host_cpu=%s).
I looked for kernels in /boot and modules in /lib/modules.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it).\n" host_cpu; exit 1
and find_dtb debug copy_kernel kernel_name wildcard dtb = let dtb_file = try let dtb_file = getenv "SUPERMIN_DTB" in if debug >= 1 then printf "supermin: kernel: SUPERMIN_DTB environment variable = %s\n%!" dtb_file; dtb_file with Not_found -> (* Replace vmlinuz- with dtb- *) if not (string_prefix "vmlinuz-" kernel_name) && not (string_prefix "vmlinuz-" kernel_name) then no_dtb_dir kernel_name; let dtb_dir = try List.find dir_exists ( List.map (fun prefix -> prefix ^ String.sub kernel_name 8 (String.length kernel_name - 8) ) ["/boot/dtb-"; "/usr/lib/linux-image-"]) with Not_found -> no_dtb_dir kernel_name; "" in
let all_files = Sys.readdir dtb_dir in let all_files = Array.to_list all_files in
let files = List.filter (fun filename -> fnmatch wildcard filename [FNM_NOESCAPE]) all_files in if files = [] then no_dtb dtb_dir wildcard;
let dtb_name = List.hd files in let dtb_file = dtb_dir // dtb_name in if debug >= 1 then printf "supermin: kernel: picked dtb %s\n%!" dtb_file; dtb_file in
copy_or_symlink_file copy_kernel dtb_file dtb
and no_dtb_dir kernel_name = eprintf "\ supermin: failed to find a dtb (device tree) directory.
I expected to take '%s' and to replace vmlinuz- with dtb- to form a directory.
You can set SUPERMIN_KERNEL, SUPERMIN_MODULES and SUPERMIN_DTB to override automatic selection. See supermin(1).\n" kernel_name; exit 1
and no_dtb dtb_dir wildcard = eprintf "\ supermin: failed to find a matching device tree.
I looked for a file matching '%s' in directory '%s'.
You can set SUPERMIN_KERNEL, SUPERMIN_MODULES and SUPERMIN_DTB to override automatic selection. See supermin(1).\n" wildcard dtb_dir; exit 1
and find_modpath debug kernel_version = try let modpath = getenv "SUPERMIN_MODULES" in if debug >= 1 then printf "supermin: kernel: SUPERMIN_MODULES environment variable = %s\n%!" modpath; modpath with Not_found -> let modpath = "/lib/modules/" ^ kernel_version in if debug >= 1 then printf "supermin: kernel: picked modules path %s\n%!" modpath; modpath
and has_modpath kernel_name = try let kv = get_kernel_version kernel_name in modules_dep_exists kv with | Not_found -> false
and get_kernel_version kernel_name = if (string_prefix "vmlinuz-" kernel_name) || (string_prefix "vmlinux-" kernel_name) then ( let kv = String.sub kernel_name 8 (String.length kernel_name - 8) in if modules_dep_exists kv then kv else get_kernel_version_from_name kernel_name ) else get_kernel_version_from_name kernel_name
and modules_dep_exists kv = try (lstat ("/lib/modules/" ^ kv ^ "/modules.dep")).st_kind = S_REG with Unix_error _ -> false
and get_kernel_version_from_name kernel_name = get_kernel_version_from_file ("/boot" // kernel_name)
(* Extract the kernel version from a Linux kernel file. * * Returns a string containing the version or [Not_found] if the * file can't be read, is not a Linux kernel, or the version can't * be found. * * See ftp://ftp.astron.com/pub/file/file-<ver>.tar.gz * (file-<ver>/magic/Magdir/linux) for the rules used to find the * version number: * 514 string HdrS Linux kernel * >518 leshort >0x1ff * >>(526.s+0x200) string >\0 version %s, * * Bugs: probably limited to x86 kernels. *) and get_kernel_version_from_file file = try let chan = open_in file in let buf = read_string chan 514 4 in if buf <> "HdrS" then ( close_in chan; raise Not_found ); let s = read_leshort chan 518 in if s < 0x1ff then ( close_in chan; raise Not_found ); let offset = read_leshort chan 526 in if offset < 0 then ( close_in chan; raise Not_found ); let buf = read_string chan (offset + 0x200) 132 in close_in chan; let rec loop i = if i < 132 then ( if buf.[i] = '\000' || buf.[i] = ' ' || buf.[i] = '\t' || buf.[i] = '\n' then String.sub buf 0 i else loop (i+1) ) else raise Not_found in loop 0 with | Sys_error _ -> raise Not_found | Invalid_argument _ -> raise Not_found
(* Read an unsigned little endian short at a specified offset in a file. *) and read_leshort chan offset = let buf = read_string chan offset 2 in (Char.code buf.[1] lsl 8) lor Char.code buf.[0]
and read_string chan offset len = seek_in chan offset; let buf = String.create len in really_input chan buf 0 len; buf
and copy_or_symlink_file copy_kernel src dest = if not copy_kernel then symlink src dest else ( let cmd = sprintf "cp -p %s %s" (quote src) (quote dest) in run_command cmd )
Please help me what I need to change in order to proceed .
Thanks for the support.
On Tue, Jun 3, 2014 at 8:07 PM, abhishek jain <ashujain9727@gmail.com> wrote:
Hi Rich
But there is no src/kernel.ml file on my ubuntu powerpc to which the above patch is reffering. I have installed supermin as supermin_5.1.8-2_powerpc.deb debian package.
Thanks
On Tue, Jun 3, 2014 at 7:16 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Tue, Jun 03, 2014 at 06:55:49PM +0530, abhishek jain wrote:
supermin: failed to find a suitable kernel (host_cpu=powerpc64).
I looked for kernels in /boot and modules in /lib/modules.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsbnHqnU
This seems to be the same error as before:
https://www.redhat.com/archives/libguestfs/2014-May/msg00138.html
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Hi RIch Below are the necessary details of the system.. *ls -l /boot/total 10200-rw-r--r-- 1 root root 5224765 Nov 22 2013 uImage-rw-r--r-- 1 root root 5192861 Nov 22 2013 uImage.origls -l /lib/modules/total 4drwxr-xr-x 3 ubuntu ubuntu 4096 Jun 3 07:21 3.8.13-rt9-QorIQ-SDK-V1.4uname -aLinux t4240-ubuntu1310 3.8.13-rt9-QorIQ-SDK-V1.4 #10 SMP Tue May 27 10:48:24 IST 2014 ppc64 ppc64 ppc64 GNU/Linux* Thanks On Wed, Jun 4, 2014 at 1:04 PM, abhishek jain <ashujain9727@gmail.com> wrote:
Hi Rich
Kindly ignore my previos mail. I have downloaded the latest version of supermin supermin-5.1.8 and have compiled it for powerpc.Moreover there was no need to patch the src/ kernel.ml file as the changes were already implemented on the latest version. But still when i run libguestfs-test-tool on powerpc ubuntu,I get the below logs..
libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************
PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin SELinux: sh: getenforce: command not found guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfscCuR3p
libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.8
supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: build: /usr/local/lib/guestfs/supermin.d supermin: build: visiting /usr/local/lib/guestfs/supermin.d/base.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/excludefiles type uncompressed excludefiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/hostfiles type uncompressed hostfiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/init.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/packages type uncompressed packages supermin: build: visiting /usr/local/lib/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar) supermin: build: 121 packages, including dependencies supermin: build: 7109 files supermin: build: 7109 files, after removing unreadable files supermin: build: 4939 files, after matching excludefiles supermin: build: 4941 files, after adding hostfiles supermin: build: 4944 files, after munging supermin: failed to find a suitable kernel (host_cpu=powerpc64).
I looked for kernels in /boot and modules in /lib/modules.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfscCuR3p
Please help me regarding this.
Thanks
On Wed, Jun 4, 2014 at 12:22 PM, abhishek jain <ashujain9727@gmail.com> wrote:
Hi Rich
I have installed supermin from source supermin_5.1.7.orig.tar.gz on powerpc and have applied the patch as reffered by you.Know I'm getting following error ..
libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************
PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
SELinux: sh: getenforce: command not found guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfsJF3lvj
libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.7
supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: build: /usr/local/lib/guestfs/supermin.d supermin: build: visiting /usr/local/lib/guestfs/supermin.d/base.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/excludefiles type uncompressed excludefiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/hostfiles type uncompressed hostfiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/init.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/packages type uncompressed packages supermin: build: visiting /usr/local/lib/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar) supermin: build: 121 packages, including dependencies supermin: build: 7109 files supermin: build: 7109 files, after removing unreadable files supermin: build: 4939 files, after matching excludefiles supermin: build: 4941 files, after adding hostfiles supermin: build: 4944 files, after munging supermin: failed to find a suitable kernel (host_cpu=powerpc64). I looked for kernels in /boot and modules in /lib/modules.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsJF3lvj
*My kernel.ml <http://kernel.ml> file after applying the patch is as follows... * cat src/kernel.ml (* supermin 5 * Copyright (C) 2009-2014 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *)
open Unix open Printf
open Utils open Ext2fs open Fnmatch
let patt_of_cpu host_cpu = let models = match host_cpu with | "mips" | "mips64" -> [host_cpu; "*-malta"] | "ppc" | "powerpc" | "powerpc64" -> ["ppc"; "powerpc"; "powerpc64"] | "sparc" | "sparc64" -> ["sparc"; "sparc64"] | "amd64" | "x86_64" -> ["amd64"; "x86_64"] | _ when host_cpu.[0] = 'i' && host_cpu.[2] = '8' && host_cpu.[3] = '6' -> ["?86"] | _ when String.length host_cpu >= 5 && String.sub host_cpu 0 5 = "armv7" -> ["armmp"] | _ -> [host_cpu] in List.map (fun model -> sprintf "vmlinu?-*-%s" model) models
let rec build_kernel debug host_cpu dtb_wildcard copy_kernel kernel dtb = (* Locate the kernel. *) let kernel_name, kernel_version = find_kernel debug host_cpu copy_kernel kernel in
(* If the user passed --dtb option, locate dtb. *) (match dtb_wildcard with | None -> () | Some wildcard -> find_dtb debug copy_kernel kernel_name wildcard dtb );
(* Get the kernel modules. *) let modpath = find_modpath debug kernel_version in
if debug >= 1 then ( printf "supermin: kernel: kernel_version %s\n" kernel_version; printf "supermin: kernel: modules %s\n%!" modpath; );
(kernel_version, modpath)
and find_kernel debug host_cpu copy_kernel kernel = let kernel_file, kernel_name, kernel_version = try let kernel_env = getenv "SUPERMIN_KERNEL" in if debug >= 1 then printf "supermin: kernel: SUPERMIN_KERNEL environment variable %s\n%!" kernel_env; let kernel_version = get_kernel_version_from_file kernel_env in if debug >= 1 then printf "supermin: kernel: SUPERMIN_KERNEL version %s\n%!" kernel_version; let kernel_name = Filename.basename kernel_env in kernel_env, kernel_name, kernel_version with Not_found -> let is_powerpc = String.length host_cpu >= 3 && host_cpu.[0] = 'a' && host_cpu.[1] = 'r' && host_cpu.[2] = 'm' in
let all_files = Sys.readdir "/boot" in let all_files = Array.to_list all_files in
(* In original: ls -1dvr /boot/vmlinuz-*.$arch* 2>/dev/null | grep -v xen *) let patterns = patt_of_cpu host_cpu in let files = kernel_filter patterns is_powerpc all_files in
let files = if files <> [] then files else (* In original: ls -1dvr /boot/vmlinuz-* 2>/dev/null | grep -v xen *) kernel_filter ["vmlinu?-*"] is_powerpc all_files in
if files = [] then no_kernels host_cpu;
let files = List.sort (fun a b -> compare_version b a) files in let kernel_name = List.hd files in let kernel_version = get_kernel_version kernel_name in
if debug >= 1 then printf "supermin: kernel: picked kernel %s\n%!" kernel_name;
("/boot" // kernel_name), kernel_name, kernel_version in
copy_or_symlink_file copy_kernel kernel_file kernel; kernel_name, kernel_version
and kernel_filter patterns is_powerpc all_files = let files = List.filter (fun filename -> List.exists (fun patt -> fnmatch patt filename [FNM_NOESCAPE]) patterns ) all_files in let files = List.filter (fun filename -> find filename "xen" = -1) files in let files = if not is_powerpc then files else ( List.filter (fun filename -> find filename "lpae" = -1 && find filename "tegra" = -1 ) files ) in List.filter (fun filename -> has_modpath filename) files
and no_kernels host_cpu = eprintf "\ supermin: failed to find a suitable kernel (host_cpu=%s).
I looked for kernels in /boot and modules in /lib/modules.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it).\n" host_cpu; exit 1
and find_dtb debug copy_kernel kernel_name wildcard dtb = let dtb_file = try let dtb_file = getenv "SUPERMIN_DTB" in if debug >= 1 then printf "supermin: kernel: SUPERMIN_DTB environment variable = %s\n%!" dtb_file; dtb_file with Not_found -> (* Replace vmlinuz- with dtb- *) if not (string_prefix "vmlinuz-" kernel_name) && not (string_prefix "vmlinuz-" kernel_name) then no_dtb_dir kernel_name; let dtb_dir = try List.find dir_exists ( List.map (fun prefix -> prefix ^ String.sub kernel_name 8 (String.length kernel_name - 8) ) ["/boot/dtb-"; "/usr/lib/linux-image-"]) with Not_found -> no_dtb_dir kernel_name; "" in
let all_files = Sys.readdir dtb_dir in let all_files = Array.to_list all_files in
let files = List.filter (fun filename -> fnmatch wildcard filename [FNM_NOESCAPE]) all_files in if files = [] then no_dtb dtb_dir wildcard;
let dtb_name = List.hd files in let dtb_file = dtb_dir // dtb_name in if debug >= 1 then printf "supermin: kernel: picked dtb %s\n%!" dtb_file; dtb_file in
copy_or_symlink_file copy_kernel dtb_file dtb
and no_dtb_dir kernel_name = eprintf "\ supermin: failed to find a dtb (device tree) directory.
I expected to take '%s' and to replace vmlinuz- with dtb- to form a directory.
You can set SUPERMIN_KERNEL, SUPERMIN_MODULES and SUPERMIN_DTB to override automatic selection. See supermin(1).\n" kernel_name; exit 1
and no_dtb dtb_dir wildcard = eprintf "\ supermin: failed to find a matching device tree.
I looked for a file matching '%s' in directory '%s'.
You can set SUPERMIN_KERNEL, SUPERMIN_MODULES and SUPERMIN_DTB to override automatic selection. See supermin(1).\n" wildcard dtb_dir; exit 1
and find_modpath debug kernel_version = try let modpath = getenv "SUPERMIN_MODULES" in if debug >= 1 then printf "supermin: kernel: SUPERMIN_MODULES environment variable = %s\n%!" modpath; modpath with Not_found -> let modpath = "/lib/modules/" ^ kernel_version in if debug >= 1 then printf "supermin: kernel: picked modules path %s\n%!" modpath; modpath
and has_modpath kernel_name = try let kv = get_kernel_version kernel_name in modules_dep_exists kv with | Not_found -> false
and get_kernel_version kernel_name = if (string_prefix "vmlinuz-" kernel_name) || (string_prefix "vmlinux-" kernel_name) then ( let kv = String.sub kernel_name 8 (String.length kernel_name - 8) in if modules_dep_exists kv then kv else get_kernel_version_from_name kernel_name ) else get_kernel_version_from_name kernel_name
and modules_dep_exists kv = try (lstat ("/lib/modules/" ^ kv ^ "/modules.dep")).st_kind = S_REG with Unix_error _ -> false
and get_kernel_version_from_name kernel_name = get_kernel_version_from_file ("/boot" // kernel_name)
(* Extract the kernel version from a Linux kernel file. * * Returns a string containing the version or [Not_found] if the * file can't be read, is not a Linux kernel, or the version can't * be found. * * See ftp://ftp.astron.com/pub/file/file-<ver>.tar.gz * (file-<ver>/magic/Magdir/linux) for the rules used to find the * version number: * 514 string HdrS Linux kernel * >518 leshort >0x1ff * >>(526.s+0x200) string >\0 version %s, * * Bugs: probably limited to x86 kernels. *) and get_kernel_version_from_file file = try let chan = open_in file in let buf = read_string chan 514 4 in if buf <> "HdrS" then ( close_in chan; raise Not_found ); let s = read_leshort chan 518 in if s < 0x1ff then ( close_in chan; raise Not_found ); let offset = read_leshort chan 526 in if offset < 0 then ( close_in chan; raise Not_found ); let buf = read_string chan (offset + 0x200) 132 in close_in chan; let rec loop i = if i < 132 then ( if buf.[i] = '\000' || buf.[i] = ' ' || buf.[i] = '\t' || buf.[i] = '\n' then String.sub buf 0 i else loop (i+1) ) else raise Not_found in loop 0 with | Sys_error _ -> raise Not_found | Invalid_argument _ -> raise Not_found
(* Read an unsigned little endian short at a specified offset in a file. *) and read_leshort chan offset = let buf = read_string chan offset 2 in (Char.code buf.[1] lsl 8) lor Char.code buf.[0]
and read_string chan offset len = seek_in chan offset; let buf = String.create len in really_input chan buf 0 len; buf
and copy_or_symlink_file copy_kernel src dest = if not copy_kernel then symlink src dest else ( let cmd = sprintf "cp -p %s %s" (quote src) (quote dest) in run_command cmd )
Please help me what I need to change in order to proceed .
Thanks for the support.
On Tue, Jun 3, 2014 at 8:07 PM, abhishek jain <ashujain9727@gmail.com> wrote:
Hi Rich
But there is no src/kernel.ml file on my ubuntu powerpc to which the above patch is reffering. I have installed supermin as supermin_5.1.8-2_powerpc.deb debian package.
Thanks
On Tue, Jun 3, 2014 at 7:16 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Tue, Jun 03, 2014 at 06:55:49PM +0530, abhishek jain wrote:
supermin: failed to find a suitable kernel (host_cpu=powerpc64).
I looked for kernels in /boot and modules in /lib/modules.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsbnHqnU
This seems to be the same error as before:
https://www.redhat.com/archives/libguestfs/2014-May/msg00138.html
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
On Wed, Jun 04, 2014 at 01:18:47PM +0530, abhishek jain wrote:
Hi RIch
Below are the necessary details of the system..
*ls -l /boot/total 10200-rw-r--r-- 1 root root 5224765 Nov 22 2013 uImage-rw-r--r-- 1 root root 5192861 Nov 22 2013 uImage.origls -l /lib/modules/total 4drwxr-xr-x 3 ubuntu ubuntu 4096 Jun 3 07:21 3.8.13-rt9-QorIQ-SDK-V1.4uname -aLinux t4240-ubuntu1310 3.8.13-rt9-QorIQ-SDK-V1.4 #10 SMP Tue May 27 10:48:24 IST 2014 ppc64 ppc64 ppc64 GNU/Linux* Thanks
I couldn't read this part of the email. Anyway, you can tell supermin to use a specific kernel and modules directory by setting the SUPERMIN_KERNEL and SUPERMIN_MODULES environment variables. See the supermin(1) man page. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
Hi RIch Below are the details of the powerpc ubuntu system ... ls -l /boot/ total 10200 -rw-r--r-- 1 root root 5224765 Nov 22 2013 uImage -rw-r--r-- 1 root root 5192861 Nov 22 2013 uImage.orig ls -l /lib/modules/ total 4 drwxr-xr-x 3 ubuntu ubuntu 4096 Jun 3 07:21 3.8.13-rt9-QorIQ-SDK-V1.4 uname -a Linux t4240-ubuntu1310 3.8.13-rt9-QorIQ-SDK-V1.4 #10 SMP Tue May 27 10:48:24 IST 2014 ppc64 ppc64 ppc64 GNU/Linux Thanks for the support. On Wed, Jun 4, 2014 at 2:19 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
Hi RIch
Below are the necessary details of the system..
*ls -l /boot/total 10200-rw-r--r-- 1 root root 5224765 Nov 22 2013 uImage-rw-r--r-- 1 root root 5192861 Nov 22 2013 uImage.origls -l /lib/modules/total 4drwxr-xr-x 3 ubuntu ubuntu 4096 Jun 3 07:21 3.8.13-rt9-QorIQ-SDK-V1.4uname -aLinux t4240-ubuntu1310 3.8.13-rt9-QorIQ-SDK-V1.4 #10 SMP Tue May 27 10:48:24 IST 2014 ppc64
On Wed, Jun 04, 2014 at 01:18:47PM +0530, abhishek jain wrote: ppc64
ppc64 GNU/Linux* Thanks
I couldn't read this part of the email.
Anyway, you can tell supermin to use a specific kernel and modules directory by setting the SUPERMIN_KERNEL and SUPERMIN_MODULES environment variables. See the supermin(1) man page.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
On Wed, Jun 04, 2014 at 02:25:58PM +0530, abhishek jain wrote:
Hi RIch
Below are the details of the powerpc ubuntu system ...
ls -l /boot/ total 10200 -rw-r--r-- 1 root root 5224765 Nov 22 2013 uImage -rw-r--r-- 1 root root 5192861 Nov 22 2013 uImage.orig
ls -l /lib/modules/ total 4 drwxr-xr-x 3 ubuntu ubuntu 4096 Jun 3 07:21 3.8.13-rt9-QorIQ-SDK-V1.4
uname -a Linux t4240-ubuntu1310 3.8.13-rt9-QorIQ-SDK-V1.4 #10 SMP Tue May 27 10:48:24 IST 2014 ppc64 ppc64 ppc64 GNU/Linux
Well, assuming the modules directory matches the kernel (uImage) you could try: export SUPERMIN_KERNEL=/boot/uImage export SUPERMIN_MODULES=/lib/modules/3.8.13-rt9-QorIQ-SDK-V1.4 Are these homebrew kernels? I'm surprised that an official Ubuntu ppc kernel would have such a non-standard name. Anyway, if homebrew you'll also need to ensure the kernel supports all the usual virtio devices (especially virtio-serial, which is required by libguestfs). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Hi Rich I tried the above two commands but resulted in below logs.. SUPERMIN_MODULES=/lib/modules/3.8.13-rt9-QorIQ-SDK-V1.4 SUPERMIN_KERNEL=/boot/uImage PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin SELinux: sh: getenforce: command not found guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfsfPWXx0 libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.8 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: build: /usr/local/lib/guestfs/supermin.d supermin: build: visiting /usr/local/lib/guestfs/supermin.d/base.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/daemon.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/excludefiles type uncompressed excludefiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/hostfiles type uncompressed hostfiles supermin: build: visiting /usr/local/lib/guestfs/supermin.d/init.tar.gz type gzip base image (tar) supermin: build: visiting /usr/local/lib/guestfs/supermin.d/packages type uncompressed packages supermin: build: visiting /usr/local/lib/guestfs/supermin.d/udev-rules.tar.gz type gzip base image (tar) supermin: build: 121 packages, including dependencies supermin: build: 7109 files supermin: build: 7109 files, after removing unreadable files supermin: build: 4939 files, after matching excludefiles supermin: build: 4941 files, after adding hostfiles supermin: build: 4944 files, after munging supermin: kernel: SUPERMIN_KERNEL environment variable /boot/uImage supermin: failed to find a suitable kernel (host_cpu=powerpc64). I looked for kernels in /boot and modules in /lib/modules. If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsfPWXx0 I think i need to enable virtio-serial in my kernel. I'll you let you know the result after enabling virtio-seriel in the kernel inn 5-10 min. Well sorry to disturb you on vocations.:-( Thanks On Wed, Jun 4, 2014 at 2:49 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Wed, Jun 04, 2014 at 02:25:58PM +0530, abhishek jain wrote:
Hi RIch
Below are the details of the powerpc ubuntu system ...
ls -l /boot/ total 10200 -rw-r--r-- 1 root root 5224765 Nov 22 2013 uImage -rw-r--r-- 1 root root 5192861 Nov 22 2013 uImage.orig
ls -l /lib/modules/ total 4 drwxr-xr-x 3 ubuntu ubuntu 4096 Jun 3 07:21 3.8.13-rt9-QorIQ-SDK-V1.4
uname -a Linux t4240-ubuntu1310 3.8.13-rt9-QorIQ-SDK-V1.4 #10 SMP Tue May 27 10:48:24 IST 2014 ppc64 ppc64 ppc64 GNU/Linux
Well, assuming the modules directory matches the kernel (uImage) you could try:
export SUPERMIN_KERNEL=/boot/uImage export SUPERMIN_MODULES=/lib/modules/3.8.13-rt9-QorIQ-SDK-V1.4
Are these homebrew kernels? I'm surprised that an official Ubuntu ppc kernel would have such a non-standard name. Anyway, if homebrew you'll also need to ensure the kernel supports all the usual virtio devices (especially virtio-serial, which is required by libguestfs).
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
On Wed, Jun 04, 2014 at 03:29:11PM +0530, abhishek jain wrote:
supermin: kernel: SUPERMIN_KERNEL environment variable /boot/uImage supermin: failed to find a suitable kernel (host_cpu=powerpc64).
I looked for kernels in /boot and modules in /lib/modules.
If you follow the code in src/kernel.ml you'll see that this means supermin was unable to get the kernel version from the supplied kernel file. The code is fairly simple to follow. I barely have internet access here and in any case I don't know what's in that uImage file, so I suggest compiling supermin yourself, running the command by hand, and adding printf's to src/kernel.ml in supermin to find the problem. Rich.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see debug messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsfPWXx0
I think i need to enable virtio-serial in my kernel. I'll you let you know the result after enabling virtio-seriel in the kernel inn 5-10 min. Well sorry to disturb you on vocations.:-(
Thanks
On Wed, Jun 4, 2014 at 2:49 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Wed, Jun 04, 2014 at 02:25:58PM +0530, abhishek jain wrote:
Hi RIch
Below are the details of the powerpc ubuntu system ...
ls -l /boot/ total 10200 -rw-r--r-- 1 root root 5224765 Nov 22 2013 uImage -rw-r--r-- 1 root root 5192861 Nov 22 2013 uImage.orig
ls -l /lib/modules/ total 4 drwxr-xr-x 3 ubuntu ubuntu 4096 Jun 3 07:21 3.8.13-rt9-QorIQ-SDK-V1.4
uname -a Linux t4240-ubuntu1310 3.8.13-rt9-QorIQ-SDK-V1.4 #10 SMP Tue May 27 10:48:24 IST 2014 ppc64 ppc64 ppc64 GNU/Linux
Well, assuming the modules directory matches the kernel (uImage) you could try:
export SUPERMIN_KERNEL=/boot/uImage export SUPERMIN_MODULES=/lib/modules/3.8.13-rt9-QorIQ-SDK-V1.4
Are these homebrew kernels? I'm surprised that an official Ubuntu ppc kernel would have such a non-standard name. Anyway, if homebrew you'll also need to ensure the kernel supports all the usual virtio devices (especially virtio-serial, which is required by libguestfs).
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Hi Rich I'm able to solve this. I copied uImage to vmlinuz-3.8.13-rt9-QorIQ-SDK-V1.4 and I'm now able to proceed. Thanks a lot for the help despite being on vocations.:-) On Wed, Jun 4, 2014 at 4:38 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Wed, Jun 04, 2014 at 03:29:11PM +0530, abhishek jain wrote:
supermin: kernel: SUPERMIN_KERNEL environment variable /boot/uImage supermin: failed to find a suitable kernel (host_cpu=powerpc64).
I looked for kernels in /boot and modules in /lib/modules.
If you follow the code in src/kernel.ml you'll see that this means supermin was unable to get the kernel version from the supplied kernel file. The code is fairly simple to follow. I barely have internet access here and in any case I don't know what's in that uImage file, so I suggest compiling supermin yourself, running the command by hand, and adding printf's to src/kernel.ml in supermin to find the problem.
Rich.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see
debug
messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsfPWXx0
I think i need to enable virtio-serial in my kernel. I'll you let you know the result after enabling virtio-seriel in the kernel inn 5-10 min. Well sorry to disturb you on vocations.:-(
Thanks
On Wed, Jun 4, 2014 at 2:49 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Wed, Jun 04, 2014 at 02:25:58PM +0530, abhishek jain wrote:
Hi RIch
Below are the details of the powerpc ubuntu system ...
ls -l /boot/ total 10200 -rw-r--r-- 1 root root 5224765 Nov 22 2013 uImage -rw-r--r-- 1 root root 5192861 Nov 22 2013 uImage.orig
ls -l /lib/modules/ total 4 drwxr-xr-x 3 ubuntu ubuntu 4096 Jun 3 07:21 3.8.13-rt9-QorIQ-SDK-V1.4
uname -a Linux t4240-ubuntu1310 3.8.13-rt9-QorIQ-SDK-V1.4 #10 SMP Tue May 27 10:48:24 IST 2014 ppc64 ppc64 ppc64 GNU/Linux
Well, assuming the modules directory matches the kernel (uImage) you could try:
export SUPERMIN_KERNEL=/boot/uImage export SUPERMIN_MODULES=/lib/modules/3.8.13-rt9-QorIQ-SDK-V1.4
Are these homebrew kernels? I'm surprised that an official Ubuntu ppc kernel would have such a non-standard name. Anyway, if homebrew you'll also need to ensure the kernel supports all the usual virtio devices (especially virtio-serial, which is required by libguestfs).
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
Hi Rich I'm noe getting the below logs after running libguestfs-test-tool.. SUPERMIN_MODULES=/lib/modules/3.8.13-rt9-QorIQ-SDK-V1.4 SUPERMIN_KERNEL=/boot/vmlinuz-3.8.13-rt9-QorIQ-SDK-V1.4 PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin SELinux: sh: getenforce: command not found guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfskd0ua4 libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.8 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: if-newer: output does not need rebuilding libguestfs: [00014ms] finished building supermin appliance libguestfs: [00014ms] begin testing qemu features libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -help libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -version libguestfs: qemu version 2.0 libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -machine accel=kvm:tcg libguestfs: command: run: \ -device ? libguestfs: [00377ms] finished testing qemu features [00378ms] /usr/bin/kvm \ -global virtio-blk-pci.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \ -display none \ -M pseries \ -machine accel=kvm:tcg \ -m 768 \ -no-reboot \ -rtc driftfix=slew \ -global kvm-pit.lost_tick_policy=discard \ -kernel /var/tmp/.guestfs-1000/appliance.d/kernel \ -initrd /var/tmp/.guestfs-1000/appliance.d/initrd \ -device virtio-scsi-pci,id=scsi \ -drive file=/tmp/libguestfskd0ua4/scratch.1,cache=unsafe,format=raw,id=hd0,if=none \ -device scsi-hd,drive=hd0 \ -drive file=/var/tmp/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none \ -device scsi-hd,drive=appliance \ -device virtio-serial-pci \ -serial stdio \ -chardev socket,path=/tmp/libguestfskd0ua4/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -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' kvm: -M pseries: Unsupported machine type Use -machine help to list supported machines! libguestfs: error: guestfs_launch failed, see earlier error messages libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfskd0ua4 The output of kvm machine help is as follows... kvm -machine help Supported machines are: taihu taihu mac99 Mac99 based PowerMAC prep PowerPC PREP platform g3beige Heathrow based PowerMAC (default) bamboo bamboo mpc8544ds mpc8544ds ppce500 generic paravirt e500 platform virtex-ml507 Xilinx Virtex ML507 reference design none empty machine ref405ep ref405ep Can you help regarding this. Thanks On Wed, Jun 4, 2014 at 5:12 PM, abhishek jain <ashujain9727@gmail.com> wrote:
Hi Rich
I'm able to solve this. I copied uImage to vmlinuz-3.8.13-rt9-QorIQ-SDK-V1.4 and I'm now able to proceed.
Thanks a lot for the help despite being on vocations.:-)
On Wed, Jun 4, 2014 at 4:38 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Wed, Jun 04, 2014 at 03:29:11PM +0530, abhishek jain wrote:
supermin: kernel: SUPERMIN_KERNEL environment variable /boot/uImage supermin: failed to find a suitable kernel (host_cpu=powerpc64).
I looked for kernels in /boot and modules in /lib/modules.
If you follow the code in src/kernel.ml you'll see that this means supermin was unable to get the kernel version from the supplied kernel file. The code is fairly simple to follow. I barely have internet access here and in any case I don't know what's in that uImage file, so I suggest compiling supermin yourself, running the command by hand, and adding printf's to src/kernel.ml in supermin to find the problem.
Rich.
If this is a Xen guest, and you only have Xen domU kernels installed, try installing a fullvirt kernel (only for supermin use, you shouldn't boot the Xen guest with it). libguestfs: error: /usr/bin/supermin exited with error status 1, see
debug
messages above libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfsfPWXx0
I think i need to enable virtio-serial in my kernel. I'll you let you know the result after enabling virtio-seriel in the kernel inn 5-10 min. Well sorry to disturb you on vocations.:-(
Thanks
On Wed, Jun 4, 2014 at 2:49 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Wed, Jun 04, 2014 at 02:25:58PM +0530, abhishek jain wrote:
Hi RIch
Below are the details of the powerpc ubuntu system ...
ls -l /boot/ total 10200 -rw-r--r-- 1 root root 5224765 Nov 22 2013 uImage -rw-r--r-- 1 root root 5192861 Nov 22 2013 uImage.orig
ls -l /lib/modules/ total 4 drwxr-xr-x 3 ubuntu ubuntu 4096 Jun 3 07:21 3.8.13-rt9-QorIQ-SDK-V1.4
uname -a Linux t4240-ubuntu1310 3.8.13-rt9-QorIQ-SDK-V1.4 #10 SMP Tue May 27 10:48:24 IST 2014 ppc64 ppc64 ppc64 GNU/Linux
Well, assuming the modules directory matches the kernel (uImage) you could try:
export SUPERMIN_KERNEL=/boot/uImage export SUPERMIN_MODULES=/lib/modules/3.8.13-rt9-QorIQ-SDK-V1.4
Are these homebrew kernels? I'm surprised that an official Ubuntu ppc kernel would have such a non-standard name. Anyway, if homebrew you'll also need to ensure the kernel supports all the usual virtio devices (especially virtio-serial, which is required by libguestfs).
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
On Wed, Jun 04, 2014 at 05:43:26PM +0530, abhishek jain wrote:
libguestfs: [00014ms] begin testing qemu features libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -help libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -version libguestfs: qemu version 2.0 libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -machine accel=kvm:tcg libguestfs: command: run: \ -device ? libguestfs: [00377ms] finished testing qemu features [00378ms] /usr/bin/kvm \
The big question is what is "kvm"? It claims to be an instance of qemu 2.0, yet doesn't advertize the -M pseries machine type. Looking at the output of -M \? which you helpfully supplied, it seems to be qemu-system-ppc (not qemu-system-ppc64). Although the name of the hypervisor is compiled into libguesstfs at configure time, it's possible to override it at run time by setting the LIBGUESTFS_HV environment variable (previously LIBGUESTFS_QEMU .. you can set either). I suggest setting it to /usr/bin/qemu-system-ppc64 This is a bug in the Ubuntu qemu package. KVM and qemu have long been unified upstream, so there is no need for a separate "kvm" binary, esp one pointing to the wrong binary. About the previous issue: renaming the binary worked because supermin falls back to looking at the filename for the version number. There is still a bug hiding there, which is that we can't read the version number out of the binary kernel image, for some reason. 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
Hi Rich.. I'm now getting following logs after following your instructions.. libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin SELinux: sh: getenforce: command not found guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfscN7Ta1 libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.8 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: if-newer: output does not need rebuilding libguestfs: [00014ms] finished building supermin appliance libguestfs: [00014ms] begin testing qemu features libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -help libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -version libguestfs: qemu version 1.4 libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -machine accel=kvm:tcg libguestfs: command: run: \ -device ? libguestfs: [00072ms] finished testing qemu features [00073ms] /usr/bin/kvm \ -global virtio-blk-pci.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \ -display none \ -M pseries \ -machine accel=kvm:tcg \ -m 768 \ -no-reboot \ -rtc driftfix=slew \ -global kvm-pit.lost_tick_policy=discard \ -kernel /var/tmp/.guestfs-1000/appliance.d/kernel \ -initrd /var/tmp/.guestfs-1000/appliance.d/initrd \ -device virtio-scsi-pci,id=scsi \ -drive file=/tmp/libguestfscN7Ta1/scratch.1,cache=unsafe,format=raw,id=hd0,if=none \ -device scsi-hd,drive=hd0 \ -drive file=/var/tmp/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none \ -device scsi-hd,drive=appliance \ -device virtio-serial-pci \ -serial stdio \ -chardev socket,path=/tmp/libguestfscN7Ta1/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -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' qemu: fatal: This KVM version does not support PAPR NIP 0000000000000000 LR 0000000000000000 CTR 0000000000000000 XER 0000000000000000 MSR 0000000000000000 HID0 0000000000000000 HF 0000000000000000 idx 0 TB 00000000 00000000 DECR 00000000 GPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000 GPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000 CR 00000000 [ - - - - - - - - ] RES 0000000000000000 FPR00 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR04 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR08 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR12 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR16 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR20 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR24 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPR28 0000000000000000 0000000000000000 0000000000000000 0000000000000000 FPSCR 0000000000000000 SRR0 0000000000000000 SRR1 0000000000000000 PVR 0000000080400010 VRSAVE 0000000000000000 SPRG0 0000000000000000 SPRG1 0000000000000000 SPRG2 0000000000000000 SPRG3 0000000000000000 SPRG4 0000000000000000 SPRG5 0000000000000000 SPRG6 0000000000000000 SPRG7 0000000000000000 CSRR0 0000000000000000 CSRR1 0000000000000000 MCSRR0 0000000000000000 MCSRR1 0000000000000000 TCR 0000000000000000 TSR 0000000000000000 ESR 0000000000000000 DEAR 0000000000000000 PIR 0000000000000000 DECAR 0000000000000000 IVPR 0000000000000000 EPCR 0000000000000000 MCSR 0000000000000000 SPRG8 0000000000000000 EPR 0000000000000000 MCAR 0000000000000000 PID1 0000000000000000 PID2 0000000000000000 SVR 0000000000000000 MAS0 0000000000000000 MAS1 0000000000000000 MAS2 0000000000000000 MAS3 0000000000000000 MAS4 0000000000000000 MAS6 0000000000000000 MAS7 0000000000000000 PID 0000000000000000 MMUCFG 0000000000000000 TLB0CFG 0000000004110200 TLB1CFG 00000000401cc040 libguestfs: error: appliance closed the connection unexpectedly, see earlier error messages libguestfs: child_cleanup: 0x10016848: child process died libguestfs: sending SIGTERM to process 30722 libguestfs: error: /usr/bin/kvm killed by signal 6 (Aborted), see debug messages above libguestfs: error: guestfs_launch failed, see earlier error messages libguestfs-test-tool: failed to launch appliance libguestfs: closing guestfs handle 0x10016848 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfscN7Ta1 Please help regarding this. Thanks On Wed, Jun 4, 2014 at 8:02 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Wed, Jun 04, 2014 at 05:43:26PM +0530, abhishek jain wrote:
libguestfs: [00014ms] begin testing qemu features libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -help libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -version libguestfs: qemu version 2.0 libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -machine accel=kvm:tcg libguestfs: command: run: \ -device ? libguestfs: [00377ms] finished testing qemu features [00378ms] /usr/bin/kvm \
The big question is what is "kvm"? It claims to be an instance of qemu 2.0, yet doesn't advertize the -M pseries machine type.
Looking at the output of -M \? which you helpfully supplied, it seems to be qemu-system-ppc (not qemu-system-ppc64).
Although the name of the hypervisor is compiled into libguesstfs at configure time, it's possible to override it at run time by setting the LIBGUESTFS_HV environment variable (previously LIBGUESTFS_QEMU .. you can set either). I suggest setting it to /usr/bin/qemu-system-ppc64
This is a bug in the Ubuntu qemu package. KVM and qemu have long been unified upstream, so there is no need for a separate "kvm" binary, esp one pointing to the wrong binary.
About the previous issue: renaming the binary worked because supermin falls back to looking at the filename for the version number. There is still a bug hiding there, which is that we can't read the version number out of the binary kernel image, for some reason.
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
On Wed, Jun 04, 2014 at 08:36:36PM +0530, abhishek jain wrote:
qemu: fatal: This KVM version does not support PAPR
I don't think I sent a reply to this email before, however the error above is obviously the problem. The solution is less obvious ... Here is the code. It seems to be checking a kernel capability which is missing on your (host) kernel: void kvmppc_set_papr(PowerPCCPU *cpu) { CPUState *cs = CPU(cpu); int ret; ret = kvm_vcpu_enable_cap(cs, KVM_CAP_PPC_PAPR, 0); if (ret) { cpu_abort(cs, "This KVM version does not support PAPR\n"); } /* Update the capability flag so we sync the right information * with kvm */ cap_papr = 1; } I suggest asking on one of the qemu mailing lists. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hi Rich I'm able to solve the problem regarding PAPR in libguestfs on my powerpc ubuntu.By default the libguestfs was configuring pseries machine and afterwards I changed it to my original machine i.e ppce500 .The changes are performed in ./src/guestfs-internal.h file. Thanks On Tue, Jun 10, 2014 at 7:58 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Wed, Jun 04, 2014 at 08:36:36PM +0530, abhishek jain wrote:
qemu: fatal: This KVM version does not support PAPR
I don't think I sent a reply to this email before, however the error above is obviously the problem. The solution is less obvious ...
Here is the code. It seems to be checking a kernel capability which is missing on your (host) kernel:
void kvmppc_set_papr(PowerPCCPU *cpu) { CPUState *cs = CPU(cpu); int ret;
ret = kvm_vcpu_enable_cap(cs, KVM_CAP_PPC_PAPR, 0); if (ret) { cpu_abort(cs, "This KVM version does not support PAPR\n"); }
/* Update the capability flag so we sync the right information * with kvm */ cap_papr = 1; }
I suggest asking on one of the qemu mailing lists.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hi RIch Below are the logs updated logs of libguestfs-test-tool on ubuntu powerpc... libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin SELinux: Disabled guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfskHPB9d libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.8 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: if-newer: output does not need rebuilding libguestfs: [00015ms] finished building supermin appliance libguestfs: [00015ms] begin testing qemu features libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -help libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -version libguestfs: qemu version 1.4 libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -machine accel=kvm:tcg libguestfs: command: run: \ -device ? libguestfs: [00072ms] finished testing qemu features ROOT IS root=/dev/sda [00074ms] /usr/bin/kvm \ -global virtio-blk-pci.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \ -display none \ -M ppce500 \ -machine accel=kvm:tcg \ -m 768 \ -no-reboot \ -rtc driftfix=slew \ -global kvm-pit.lost_tick_policy=discard \ -kernel /var/tmp/.guestfs-1000/appliance.d/kernel \ -initrd /var/tmp/.guestfs-1000/appliance.d/initrd \ -device virtio-scsi-pci,id=scsi \ -drive file=/tmp/libguestfskHPB9d/scratch.1,cache=unsafe,format=raw,id=hd0,if=none \ -device scsi-hd,drive=hd0 \ -drive file=/var/tmp/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none \ -device scsi-hd,drive=appliance \ -device virtio-serial-pci \ -serial stdio \ -chardev socket,path=/tmp/libguestfskHPB9d/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm' Using QEMU e500 machine description MMU: Supported page sizes 4 KB as direct 1024 KB as direct 2048 KB as direct 4096 KB as direct 16384 KB as direct 65536 KB as direct 262144 KB as direct 1048576 KB as direct MMU: Book3E HW tablewalk not supported Found initrd at 0xc000000003000000:0xc0000000030b0800 bootconsole [udbg0] enabled CPU maps initialized for 1 thread per core Starting Linux PPC64 #10 SMP Tue May 27 10:48:24 IST 2014 ----------------------------------------------------- ppc64_pft_size = 0x0 physicalMemorySize = 0x30000000 ppc64_caches.dcache_line_size = 0x40 ppc64_caches.icache_line_size = 0x40 ----------------------------------------------------- Linux version 3.8.13-rt9-QorIQ-SDK-V1.4 (vvdn@openflow1) (gcc version 4.7.2 (GCC) ) #10 SMP Tue May 27 10:48:24 IST 2014 CF000012 Setup Arch [boot]0012 Setup Arch qemu_e500_setup_arch() Zone ranges: DMA [mem 0x00000000-0x2fffffff] Normal empty Movable zone start for each node Early memory node ranges node 0: [mem 0x00000000-0x2fffffff] MMU: Allocated 2112 bytes of context maps for 255 contexts CF000015 Setup Done [boot]0015 Setup Done PERCPU: Embedded 14 pages/cpu @c000000001a00000 s25408 r0 d31936 u1048576 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 193920 Kernel command line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.000000] Memory: 692292k/786432k available (11800k kernel code, 94140k reserved, 1192k data, 1890k bss, 392k init) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] \tRCU debugfs-based tracing is enabled. [ 0.000000] \tCONFIG_RCU_FANOUT set to non-default value of 32 [ 0.000000] \tRCU restricting CPUs from NR_CPUS=24 to nr_cpu_ids=1. [ 0.000000] NR_IRQS:512 nr_irqs:512 16 [ 0.000000] mpic: Setting up MPIC " OpenPIC " version 1.2 at e0040000, max 1 CPUs [ 0.000000] mpic: ISU size: 256, shift: 8, mask: ff [ 0.000000] mpic: Initializing for 256 sources [ 0.000000] clocksource: timebase mult[18000006] shift[24] registered [ 0.000000] Console: colour dummy device 80x25 [ 0.003054] pid_max: default: 32768 minimum: 301 [ 0.004316] Mount-cache hash table entries: 256 [ 0.006864] e6500 family performance monitor hardware support registered [ 0.009259] Brought up 1 CPUs [ 0.010581] devtmpfs: initialized [ 0.011938] xor: measuring software checksum speed [ 0.050112] 8regs : 3397.000 MB/sec [ 0.090254] 8regs_prefetch: 2978.000 MB/sec [ 0.130394] 32regs : 3416.000 MB/sec [ 0.170533] 32regs_prefetch: 3067.000 MB/sec [ 0.171531] xor: using function: 32regs (3416.000 MB/sec) [ 0.173469] NET: Registered protocol family 16 [ 0.178003] Found FSL PCI host bridge at 0x00000000e0008000. Firmware bus number: 0->255 [ 0.180031] PCI host bridge /pci@e0008000 (primary) ranges: [ 0.181365] MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000 [ 0.183225] IO 0x00000000e1000000..0x00000000e100ffff -> 0x0000000000000000 [ 0.185264] /pci@e0008000: PCICSRBAR @ 0xfff00000 [ 0.186941] EDAC PCI0: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'e0008000.pci' (INTERRUPT) [ 0.189817] MPC85xx_edac acquired irq 24 for PCI Err [ 0.191022] MPC85xx_edac PCI err registered [ 0.193819] fsl-pamu: fsl_pamu_init: fsl-pamu: could not find a PAMU node [ 0.205939] PCI: Probing PCI hardware [ 0.207355] fsl-pci e0008000.pci: PCI host bridge to bus 0000:00 [ 0.208798] pci_bus 0000:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x0000-0xffff]) [ 0.211042] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xdfffffff] [ 0.212631] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.219804] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.222854] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 0.225264] PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap [ 0.227192] PCI: Cannot allocate resource region 0 of device 0000:00:01.0, will remap [ 0.229195] PCI: Cannot allocate resource region 0 of device 0000:00:02.0, will remap [ 0.231299] pci 0000:00:00.0: BAR 0: assigned [mem 0xc0000000-0xc00fffff] [ 0.235514] pci 0000:00:00.0: BAR 8: assigned [mem 0xc0100000-0xc01fffff] [ 0.237120] pci 0000:00:01.0: BAR 1: assigned [mem 0xc0200000-0xc0200fff] [ 0.238760] pci 0000:00:02.0: BAR 1: assigned [mem 0xc0201000-0xc0201fff] [ 0.240585] pci 0000:00:01.0: BAR 0: assigned [io 0x11000-0x1103f] [ 0.242078] pci 0000:00:02.0: BAR 0: assigned [io 0x11040-0x1105f] [ 0.243614] pci 0000:00:00.0: PCI bridge to [bus 01] [ 0.244871] pci 0000:00:00.0: bridge window [io 0x10000-0x10fff] [ 0.246514] pci 0000:00:00.0: bridge window [mem 0xc0100000-0xc01fffff] [ 0.274019] bio: create slab <bio-0> at 0 [ 0.341414] raid6: altivecx1 1458 MB/s [ 0.409673] raid6: altivecx2 1815 MB/s [ 0.477900] raid6: altivecx4 2740 MB/s [ 0.546168] raid6: altivecx8 2824 MB/s [ 0.615756] raid6: int64x1 454 MB/s [ 0.683978] raid6: int64x2 828 MB/s [ 0.752252] raid6: int64x4 1215 MB/s [ 0.820492] raid6: int64x8 1156 MB/s [ 0.821308] raid6: using algorithm altivecx8 (2824 MB/s) [ 0.822588] raid6: using intx1 recovery algorithm [ 0.825003] vgaarb: loaded [ 0.826260] SCSI subsystem initialized [ 0.828405] usbcore: registered new interface driver usbfs [ 0.829920] usbcore: registered new interface driver hub [ 0.831385] usbcore: registered new device driver usb [ 0.833694] No BMan portals available! [ 0.835552] QMan: Allocated lookup table at 8000000000000000, entry count 65537 [ 0.837293] No QMan portals available! [ 0.839553] Switching to clocksource timebase [ 0.854468] NET: Registered protocol family 2 [ 0.856161] TCP established hash table entries: 8192 (order: 5, 131072 bytes) [ 0.858151] TCP bind hash table entries: 8192 (order: 5, 131072 bytes) [ 0.860016] TCP: Hash tables configured (established 8192 bind 8192) [ 0.861788] TCP: reno registered [ 0.862622] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.864043] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.865958] NET: Registered protocol family 1 [ 0.867389] RPC: Registered named UNIX socket transport module. [ 0.868833] RPC: Registered udp transport module. [ 0.870008] RPC: Registered tcp transport module. [ 0.871223] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.873628] Trying to unpack rootfs image as initramfs... [ 0.879131] Freeing initrd memory: 708k freed [ 0.883089] audit: initializing netlink socket (disabled) [ 0.884471] type=2000 audit(0.860:1): initialized [ 0.887288] HugeTLB registered 1 MB page size, pre-allocated 0 pages [ 0.888897] HugeTLB registered 4 MB page size, pre-allocated 0 pages [ 0.890385] HugeTLB registered 16 MB page size, pre-allocated 0 pages [ 0.891886] HugeTLB registered 64 MB page size, pre-allocated 0 pages [ 0.893612] HugeTLB registered 256 MB page size, pre-allocated 0 pages [ 0.895169] HugeTLB registered 1 GB page size, pre-allocated 0 pages [ 0.899032] NFS: Registering the id_resolver key type [ 0.900644] Key type id_resolver registered [ 0.901688] Key type id_legacy registered [ 0.902737] NTFS driver 2.1.30 [Flags: R/O]. [ 0.903974] jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc. [ 0.905732] msgmni has been set to 1484 [ 0.908969] io scheduler noop registered [ 0.909829] io scheduler deadline registered [ 0.910918] io scheduler cfq registered (default) [ 0.913372] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003) [ 0.920895] virtio-pci 0000:00:02.0: enabling device (0000 -> 0003) [ 0.928987] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.956597] serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 42) is a 16550A [ 0.958382] console [ttyS0] enabled, bootconsole disabled [ 0.958382] console [ttyS0] enabled, bootconsole disabled [ 0.962318] ePAPR hypervisor byte channel driver [ 0.970553] brd: module loaded [ 0.975187] loop: module loaded [ 0.976939] nbd: registered device at major 43 [ 0.985441] st: Version 20101219, fixed bufsize 32768, s/g segs 256 [ 0.991404] libphy: Fixed MDIO Bus: probed [ 0.992749] tun: Universal TUN/TAP device driver, 1.6 [ 0.994003] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 0.996354] Freescale FM module (May 27 2014:10:45:13), FMD API version 21.1.0 [ 1.000907] Freescale FM Ports module (May 16 2014:00:31:38) [ 1.002342] dpaa_debugfs: FSL DPAA Ethernet debugfs entries () [ 1.003957] fsl_mac: mac.c:417:mac_load() fsl_mac: FSL FMan MAC API based driver () [ 1.006326] fsl_dpa: dpaa_eth.c:4321:dpa_load() fsl_dpa: FSL DPAA Ethernet driver () [ 1.008393] fsl_oh: offline_port.c:439:oh_port_load() fsl_oh: FSL FMan Offline Parsing port driver () [ 1.010864] e1000e: Intel(R) PRO/1000 Network Driver - 2.1.4-k [ 1.012256] e1000e: Copyright(c) 1999 - 2012 Intel Corporation. [ 1.014497] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.016380] ehci-pci: EHCI PCI platform driver [ 1.017846] Initializing USB Mass Storage driver... [ 1.019309] usbcore: registered new interface driver usb-storage [ 1.020833] USB Mass Storage support registered. [ 1.022518] i2c /dev entries driver [ 1.023797] md: raid6 personality registered for level 6 [ 1.025294] md: raid5 personality registered for level 5 [ 1.026604] md: raid4 personality registered for level 4 [ 1.028252] device-mapper: ioctl: 4.23.1-ioctl (2012-12-18) initialised: dm-devel@redhat.com [ 1.030482] EDAC MC: Ver: 3.0.0 [ 1.031731] Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software [ 1.034030] sdhci: Secure Digital Host Controller Interface driver [ 1.035484] sdhci: Copyright(c) Pierre Ossman [ 1.036663] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.038870] usbcore: registered new interface driver usbhid [ 1.040182] usbhid: USB HID core driver [ 1.041687] No fsl,qman node [ 1.042686] Freescale USDPAA process driver [ 1.043761] fsl-usdpaa: no region found [ 1.044844] Freescale USDPAA process IRQ driver [ 1.046690] Freescale pme2 db driver [ 1.047513] PME2: fsl_pme2_db_init: not on ctrl-plane [ 1.048880] Freescale pme2 scan driver [ 1.050045] fsl-pme2-scan: device pme_scan registered [ 1.051552] Freescale hypervisor management driver [ 1.052814] fsl-hv: no hypervisor found [ 1.053807] Netfilter messages via NETLINK v0.30. [ 1.054987] nfnl_acct: registering with nfnetlink. [ 1.056250] nf_conntrack version 0.5.0 (5937 buckets, 23748 max) [ 1.058187] ctnetlink v0.93: registering with nfnetlink. [ 1.059611] NF_TPROXY: Transparent proxy support initialized, version 4.1.0 [ 1.061434] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd. [ 1.064252] xt_time: kernel timezone is -0000 [ 1.065602] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP) [ 1.067159] IPVS: Connection hash table configured (size=4096, memory=64Kbytes) [ 1.069253] IPVS: Creating netns size=2024 id=0 [ 1.070459] IPVS: ipvs loaded. [ 1.071183] IPVS: [rr] scheduler registered. [ 1.072265] IPVS: [wrr] scheduler registered. [ 1.073429] IPVS: [lc] scheduler registered. [ 1.074528] IPVS: [wlc] scheduler registered. [ 1.075638] IPVS: [lblc] scheduler registered. [ 1.076826] IPVS: [lblcr] scheduler registered. [ 1.077994] IPVS: [dh] scheduler registered. [ 1.079107] IPVS: [sh] scheduler registered. [ 1.080190] IPVS: [sed] scheduler registered. [ 1.081355] IPVS: [nq] scheduler registered. [ 1.082520] IPv4 over IPv4 tunneling driver [ 1.084518] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.086170] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully [ 1.087750] arp_tables: (C) 2002 David S. Miller [ 1.089008] TCP: cubic registered [ 1.089889] Initializing XFRM netlink socket [ 1.091039] NET: Registered protocol family 10 [ 1.092910] mip6: Mobile IPv6 [ 1.093651] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 1.095122] sit: IPv6 over IPv4 tunneling driver [ 1.104394] ip6_gre: GRE over IPv6 tunneling driver [ 1.108909] NET: Registered protocol family 17 [ 1.110903] NET: Registered protocol family 15 [ 1.113058] Bridge firewalling registered [ 1.114705] Ebtables v2.0 registered [ 1.116777] 8021q: 802.1Q VLAN Support v1.8 [ 1.118660] Key type dns_resolver registered [ 1.126368] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 1.131085] Freeing unused kernel memory: 392k freed supermin: mounting /proc supermin: uptime: 1.11 184987.52 supermin: ext2 mini initrd starting up: 5.1.8 zlib supermin: cmdline: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm supermin: mounting /sys supermin: internal insmod crc-itu-t.ko cmdline is panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm supermin: waiting another 1024000000 ns for /sys/block/sda/dev to appear supermin: waiting another 2048000000 ns for /sys/block/sda/dev to appear supermin: waiting another 4096000000 ns for /sys/block/sda/dev to appear supermin: waiting another 8192000000 ns for /sys/block/sda/dev to appear supermin: waiting another 16384000000 ns for /sys/block/sda/dev to appear It is stucking at the above logs. The output of ls ls /sys/block/sda/dev /sys/block/sda/dev Please help regarding this. On Tue, Jun 10, 2014 at 10:32 PM, abhishek jain <ashujain9727@gmail.com> wrote:
Hi Rich
I'm able to solve the problem regarding PAPR in libguestfs on my powerpc ubuntu.By default the libguestfs was configuring pseries machine and afterwards I changed it to my original machine i.e ppce500 .The changes are performed in ./src/guestfs-internal.h file.
Thanks
On Tue, Jun 10, 2014 at 7:58 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Wed, Jun 04, 2014 at 08:36:36PM +0530, abhishek jain wrote:
qemu: fatal: This KVM version does not support PAPR
I don't think I sent a reply to this email before, however the error above is obviously the problem. The solution is less obvious ...
Here is the code. It seems to be checking a kernel capability which is missing on your (host) kernel:
void kvmppc_set_papr(PowerPCCPU *cpu) { CPUState *cs = CPU(cpu); int ret;
ret = kvm_vcpu_enable_cap(cs, KVM_CAP_PPC_PAPR, 0); if (ret) { cpu_abort(cs, "This KVM version does not support PAPR\n"); }
/* Update the capability flag so we sync the right information * with kvm */ cap_papr = 1; }
I suggest asking on one of the qemu mailing lists.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
On Wed, Jun 11, 2014 at 01:00:16PM +0530, abhishek jain wrote:
Hi RIch
Below are the logs updated logs of libguestfs-test-tool on ubuntu powerpc...
libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin SELinux: Disabled guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfskHPB9d libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.8 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: if-newer: output does not need rebuilding libguestfs: [00015ms] finished building supermin appliance libguestfs: [00015ms] begin testing qemu features libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -help libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -version libguestfs: qemu version 1.4 libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -machine accel=kvm:tcg libguestfs: command: run: \ -device ? libguestfs: [00072ms] finished testing qemu features ROOT IS root=/dev/sda [00074ms] /usr/bin/kvm \ -global virtio-blk-pci.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \ -display none \ -M ppce500 \ -machine accel=kvm:tcg \ -m 768 \ -no-reboot \ -rtc driftfix=slew \ -global kvm-pit.lost_tick_policy=discard \ -kernel /var/tmp/.guestfs-1000/appliance.d/kernel \ -initrd /var/tmp/.guestfs-1000/appliance.d/initrd \ -device virtio-scsi-pci,id=scsi \ -drive file=/tmp/libguestfskHPB9d/scratch.1,cache=unsafe,format=raw,id=hd0,if=none \ -device scsi-hd,drive=hd0 \ -drive file=/var/tmp/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none \ -device scsi-hd,drive=appliance \ -device virtio-serial-pci \ -serial stdio \ -chardev socket,path=/tmp/libguestfskHPB9d/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm' Using QEMU e500 machine description MMU: Supported page sizes 4 KB as direct 1024 KB as direct 2048 KB as direct 4096 KB as direct 16384 KB as direct 65536 KB as direct 262144 KB as direct 1048576 KB as direct MMU: Book3E HW tablewalk not supported Found initrd at 0xc000000003000000:0xc0000000030b0800 bootconsole [udbg0] enabled CPU maps initialized for 1 thread per core Starting Linux PPC64 #10 SMP Tue May 27 10:48:24 IST 2014 ----------------------------------------------------- ppc64_pft_size = 0x0 physicalMemorySize = 0x30000000 ppc64_caches.dcache_line_size = 0x40 ppc64_caches.icache_line_size = 0x40 ----------------------------------------------------- Linux version 3.8.13-rt9-QorIQ-SDK-V1.4 (vvdn@openflow1) (gcc version 4.7.2 (GCC) ) #10 SMP Tue May 27 10:48:24 IST 2014 CF000012
Setup Arch [boot]0012 Setup Arch qemu_e500_setup_arch() Zone ranges: DMA [mem 0x00000000-0x2fffffff] Normal empty Movable zone start for each node Early memory node ranges node 0: [mem 0x00000000-0x2fffffff] MMU: Allocated 2112 bytes of context maps for 255 contexts CF000015
Setup Done [boot]0015 Setup Done PERCPU: Embedded 14 pages/cpu @c000000001a00000 s25408 r0 d31936 u1048576 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 193920 Kernel command line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.000000] Memory: 692292k/786432k available (11800k kernel code, 94140k reserved, 1192k data, 1890k bss, 392k init) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] \tRCU debugfs-based tracing is enabled. [ 0.000000] \tCONFIG_RCU_FANOUT set to non-default value of 32 [ 0.000000] \tRCU restricting CPUs from NR_CPUS=24 to nr_cpu_ids=1. [ 0.000000] NR_IRQS:512 nr_irqs:512 16 [ 0.000000] mpic: Setting up MPIC " OpenPIC " version 1.2 at e0040000, max 1 CPUs [ 0.000000] mpic: ISU size: 256, shift: 8, mask: ff [ 0.000000] mpic: Initializing for 256 sources [ 0.000000] clocksource: timebase mult[18000006] shift[24] registered [ 0.000000] Console: colour dummy device 80x25 [ 0.003054] pid_max: default: 32768 minimum: 301 [ 0.004316] Mount-cache hash table entries: 256 [ 0.006864] e6500 family performance monitor hardware support registered [ 0.009259] Brought up 1 CPUs [ 0.010581] devtmpfs: initialized [ 0.011938] xor: measuring software checksum speed [ 0.050112] 8regs : 3397.000 MB/sec [ 0.090254] 8regs_prefetch: 2978.000 MB/sec [ 0.130394] 32regs : 3416.000 MB/sec [ 0.170533] 32regs_prefetch: 3067.000 MB/sec [ 0.171531] xor: using function: 32regs (3416.000 MB/sec) [ 0.173469] NET: Registered protocol family 16 [ 0.178003] Found FSL PCI host bridge at 0x00000000e0008000. Firmware bus number: 0->255 [ 0.180031] PCI host bridge /pci@e0008000 (primary) ranges: [ 0.181365] MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000 [ 0.183225] IO 0x00000000e1000000..0x00000000e100ffff -> 0x0000000000000000 [ 0.185264] /pci@e0008000: PCICSRBAR @ 0xfff00000 [ 0.186941] EDAC PCI0: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'e0008000.pci' (INTERRUPT) [ 0.189817] MPC85xx_edac acquired irq 24 for PCI Err [ 0.191022] MPC85xx_edac PCI err registered [ 0.193819] fsl-pamu: fsl_pamu_init: fsl-pamu: could not find a PAMU node [ 0.205939] PCI: Probing PCI hardware [ 0.207355] fsl-pci e0008000.pci: PCI host bridge to bus 0000:00 [ 0.208798] pci_bus 0000:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x0000-0xffff]) [ 0.211042] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xdfffffff] [ 0.212631] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.219804] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.222854] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 0.225264] PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap [ 0.227192] PCI: Cannot allocate resource region 0 of device 0000:00:01.0, will remap [ 0.229195] PCI: Cannot allocate resource region 0 of device 0000:00:02.0, will remap [ 0.231299] pci 0000:00:00.0: BAR 0: assigned [mem 0xc0000000-0xc00fffff] [ 0.235514] pci 0000:00:00.0: BAR 8: assigned [mem 0xc0100000-0xc01fffff] [ 0.237120] pci 0000:00:01.0: BAR 1: assigned [mem 0xc0200000-0xc0200fff] [ 0.238760] pci 0000:00:02.0: BAR 1: assigned [mem 0xc0201000-0xc0201fff] [ 0.240585] pci 0000:00:01.0: BAR 0: assigned [io 0x11000-0x1103f] [ 0.242078] pci 0000:00:02.0: BAR 0: assigned [io 0x11040-0x1105f] [ 0.243614] pci 0000:00:00.0: PCI bridge to [bus 01] [ 0.244871] pci 0000:00:00.0: bridge window [io 0x10000-0x10fff] [ 0.246514] pci 0000:00:00.0: bridge window [mem 0xc0100000-0xc01fffff] [ 0.274019] bio: create slab <bio-0> at 0 [ 0.341414] raid6: altivecx1 1458 MB/s [ 0.409673] raid6: altivecx2 1815 MB/s [ 0.477900] raid6: altivecx4 2740 MB/s [ 0.546168] raid6: altivecx8 2824 MB/s [ 0.615756] raid6: int64x1 454 MB/s [ 0.683978] raid6: int64x2 828 MB/s [ 0.752252] raid6: int64x4 1215 MB/s [ 0.820492] raid6: int64x8 1156 MB/s [ 0.821308] raid6: using algorithm altivecx8 (2824 MB/s) [ 0.822588] raid6: using intx1 recovery algorithm [ 0.825003] vgaarb: loaded [ 0.826260] SCSI subsystem initialized [ 0.828405] usbcore: registered new interface driver usbfs [ 0.829920] usbcore: registered new interface driver hub [ 0.831385] usbcore: registered new device driver usb [ 0.833694] No BMan portals available! [ 0.835552] QMan: Allocated lookup table at 8000000000000000, entry count 65537 [ 0.837293] No QMan portals available! [ 0.839553] Switching to clocksource timebase [ 0.854468] NET: Registered protocol family 2 [ 0.856161] TCP established hash table entries: 8192 (order: 5, 131072 bytes) [ 0.858151] TCP bind hash table entries: 8192 (order: 5, 131072 bytes) [ 0.860016] TCP: Hash tables configured (established 8192 bind 8192) [ 0.861788] TCP: reno registered [ 0.862622] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.864043] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.865958] NET: Registered protocol family 1 [ 0.867389] RPC: Registered named UNIX socket transport module. [ 0.868833] RPC: Registered udp transport module. [ 0.870008] RPC: Registered tcp transport module. [ 0.871223] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.873628] Trying to unpack rootfs image as initramfs... [ 0.879131] Freeing initrd memory: 708k freed [ 0.883089] audit: initializing netlink socket (disabled) [ 0.884471] type=2000 audit(0.860:1): initialized [ 0.887288] HugeTLB registered 1 MB page size, pre-allocated 0 pages [ 0.888897] HugeTLB registered 4 MB page size, pre-allocated 0 pages [ 0.890385] HugeTLB registered 16 MB page size, pre-allocated 0 pages [ 0.891886] HugeTLB registered 64 MB page size, pre-allocated 0 pages [ 0.893612] HugeTLB registered 256 MB page size, pre-allocated 0 pages [ 0.895169] HugeTLB registered 1 GB page size, pre-allocated 0 pages [ 0.899032] NFS: Registering the id_resolver key type [ 0.900644] Key type id_resolver registered [ 0.901688] Key type id_legacy registered [ 0.902737] NTFS driver 2.1.30 [Flags: R/O]. [ 0.903974] jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc. [ 0.905732] msgmni has been set to 1484 [ 0.908969] io scheduler noop registered [ 0.909829] io scheduler deadline registered [ 0.910918] io scheduler cfq registered (default) [ 0.913372] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003) [ 0.920895] virtio-pci 0000:00:02.0: enabling device (0000 -> 0003) [ 0.928987] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.956597] serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 42) is a 16550A [ 0.958382] console [ttyS0] enabled, bootconsole disabled [ 0.958382] console [ttyS0] enabled, bootconsole disabled [ 0.962318] ePAPR hypervisor byte channel driver [ 0.970553] brd: module loaded [ 0.975187] loop: module loaded [ 0.976939] nbd: registered device at major 43 [ 0.985441] st: Version 20101219, fixed bufsize 32768, s/g segs 256 [ 0.991404] libphy: Fixed MDIO Bus: probed [ 0.992749] tun: Universal TUN/TAP device driver, 1.6 [ 0.994003] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 0.996354] Freescale FM module (May 27 2014:10:45:13), FMD API version 21.1.0 [ 1.000907] Freescale FM Ports module (May 16 2014:00:31:38) [ 1.002342] dpaa_debugfs: FSL DPAA Ethernet debugfs entries () [ 1.003957] fsl_mac: mac.c:417:mac_load() fsl_mac: FSL FMan MAC API based driver () [ 1.006326] fsl_dpa: dpaa_eth.c:4321:dpa_load() fsl_dpa: FSL DPAA Ethernet driver () [ 1.008393] fsl_oh: offline_port.c:439:oh_port_load() fsl_oh: FSL FMan Offline Parsing port driver () [ 1.010864] e1000e: Intel(R) PRO/1000 Network Driver - 2.1.4-k [ 1.012256] e1000e: Copyright(c) 1999 - 2012 Intel Corporation. [ 1.014497] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.016380] ehci-pci: EHCI PCI platform driver [ 1.017846] Initializing USB Mass Storage driver... [ 1.019309] usbcore: registered new interface driver usb-storage [ 1.020833] USB Mass Storage support registered. [ 1.022518] i2c /dev entries driver [ 1.023797] md: raid6 personality registered for level 6 [ 1.025294] md: raid5 personality registered for level 5 [ 1.026604] md: raid4 personality registered for level 4 [ 1.028252] device-mapper: ioctl: 4.23.1-ioctl (2012-12-18) initialised: dm-devel@redhat.com [ 1.030482] EDAC MC: Ver: 3.0.0 [ 1.031731] Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software [ 1.034030] sdhci: Secure Digital Host Controller Interface driver [ 1.035484] sdhci: Copyright(c) Pierre Ossman [ 1.036663] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.038870] usbcore: registered new interface driver usbhid [ 1.040182] usbhid: USB HID core driver [ 1.041687] No fsl,qman node [ 1.042686] Freescale USDPAA process driver [ 1.043761] fsl-usdpaa: no region found [ 1.044844] Freescale USDPAA process IRQ driver [ 1.046690] Freescale pme2 db driver [ 1.047513] PME2: fsl_pme2_db_init: not on ctrl-plane [ 1.048880] Freescale pme2 scan driver [ 1.050045] fsl-pme2-scan: device pme_scan registered [ 1.051552] Freescale hypervisor management driver [ 1.052814] fsl-hv: no hypervisor found [ 1.053807] Netfilter messages via NETLINK v0.30. [ 1.054987] nfnl_acct: registering with nfnetlink. [ 1.056250] nf_conntrack version 0.5.0 (5937 buckets, 23748 max) [ 1.058187] ctnetlink v0.93: registering with nfnetlink. [ 1.059611] NF_TPROXY: Transparent proxy support initialized, version 4.1.0 [ 1.061434] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd. [ 1.064252] xt_time: kernel timezone is -0000 [ 1.065602] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP) [ 1.067159] IPVS: Connection hash table configured (size=4096, memory=64Kbytes) [ 1.069253] IPVS: Creating netns size=2024 id=0 [ 1.070459] IPVS: ipvs loaded. [ 1.071183] IPVS: [rr] scheduler registered. [ 1.072265] IPVS: [wrr] scheduler registered. [ 1.073429] IPVS: [lc] scheduler registered. [ 1.074528] IPVS: [wlc] scheduler registered. [ 1.075638] IPVS: [lblc] scheduler registered. [ 1.076826] IPVS: [lblcr] scheduler registered. [ 1.077994] IPVS: [dh] scheduler registered. [ 1.079107] IPVS: [sh] scheduler registered. [ 1.080190] IPVS: [sed] scheduler registered. [ 1.081355] IPVS: [nq] scheduler registered. [ 1.082520] IPv4 over IPv4 tunneling driver [ 1.084518] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.086170] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully [ 1.087750] arp_tables: (C) 2002 David S. Miller [ 1.089008] TCP: cubic registered [ 1.089889] Initializing XFRM netlink socket [ 1.091039] NET: Registered protocol family 10 [ 1.092910] mip6: Mobile IPv6 [ 1.093651] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 1.095122] sit: IPv6 over IPv4 tunneling driver [ 1.104394] ip6_gre: GRE over IPv6 tunneling driver [ 1.108909] NET: Registered protocol family 17 [ 1.110903] NET: Registered protocol family 15 [ 1.113058] Bridge firewalling registered [ 1.114705] Ebtables v2.0 registered [ 1.116777] 8021q: 802.1Q VLAN Support v1.8 [ 1.118660] Key type dns_resolver registered [ 1.126368] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 1.131085] Freeing unused kernel memory: 392k freed supermin: mounting /proc supermin: uptime: 1.11 184987.52 supermin: ext2 mini initrd starting up: 5.1.8 zlib supermin: cmdline: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm supermin: mounting /sys supermin: internal insmod crc-itu-t.ko cmdline is panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm
supermin: waiting another 1024000000 ns for /sys/block/sda/dev to appear supermin: waiting another 2048000000 ns for /sys/block/sda/dev to appear supermin: waiting another 4096000000 ns for /sys/block/sda/dev to appear supermin: waiting another 8192000000 ns for /sys/block/sda/dev to appear supermin: waiting another 16384000000 ns for /sys/block/sda/dev to appear
Looks like the 3.8.13-rt9-QorIQ-SDK-V1.4 kernel doesn't support virtio-scsi. You will also need to enable virtio-serial (CONFIG_VIRTIO_CONSOLE). If I were you I'd enable every virtio-* feature possible. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Hi Rich I have all the virtio modules available in the kernel but I'm getting the same result . Please help regarding this. On Wed, Jun 11, 2014 at 3:32 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
Hi RIch
Below are the logs updated logs of libguestfs-test-tool on ubuntu
On Wed, Jun 11, 2014 at 01:00:16PM +0530, abhishek jain wrote: powerpc...
libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************
PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin
SELinux: Disabled guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.26.1 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfskHPB9d libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.8 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: if-newer: output does not need rebuilding libguestfs: [00015ms] finished building supermin appliance libguestfs: [00015ms] begin testing qemu features libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -help libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -version libguestfs: qemu version 1.4 libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -machine accel=kvm:tcg libguestfs: command: run: \ -device ? libguestfs: [00072ms] finished testing qemu features ROOT IS root=/dev/sda [00074ms] /usr/bin/kvm \ -global virtio-blk-pci.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \ -display none \ -M ppce500 \ -machine accel=kvm:tcg \ -m 768 \ -no-reboot \ -rtc driftfix=slew \ -global kvm-pit.lost_tick_policy=discard \ -kernel /var/tmp/.guestfs-1000/appliance.d/kernel \ -initrd /var/tmp/.guestfs-1000/appliance.d/initrd \ -device virtio-scsi-pci,id=scsi \ -drive
file=/tmp/libguestfskHPB9d/scratch.1,cache=unsafe,format=raw,id=hd0,if=none
\ -device scsi-hd,drive=hd0 \ -drive
file=/var/tmp/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none
\ -device scsi-hd,drive=appliance \ -device virtio-serial-pci \ -serial stdio \ -chardev socket,path=/tmp/libguestfskHPB9d/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -append 'panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm' Using QEMU e500 machine description MMU: Supported page sizes 4 KB as direct 1024 KB as direct 2048 KB as direct 4096 KB as direct 16384 KB as direct 65536 KB as direct 262144 KB as direct 1048576 KB as direct MMU: Book3E HW tablewalk not supported Found initrd at 0xc000000003000000:0xc0000000030b0800 bootconsole [udbg0] enabled CPU maps initialized for 1 thread per core Starting Linux PPC64 #10 SMP Tue May 27 10:48:24 IST 2014 ----------------------------------------------------- ppc64_pft_size = 0x0 physicalMemorySize = 0x30000000 ppc64_caches.dcache_line_size = 0x40 ppc64_caches.icache_line_size = 0x40 ----------------------------------------------------- Linux version 3.8.13-rt9-QorIQ-SDK-V1.4 (vvdn@openflow1) (gcc version 4.7.2 (GCC) ) #10 SMP Tue May 27 10:48:24 IST 2014 CF000012
Setup Arch [boot]0012 Setup Arch qemu_e500_setup_arch() Zone ranges: DMA [mem 0x00000000-0x2fffffff] Normal empty Movable zone start for each node Early memory node ranges node 0: [mem 0x00000000-0x2fffffff] MMU: Allocated 2112 bytes of context maps for 255 contexts CF000015
Setup Done [boot]0015 Setup Done PERCPU: Embedded 14 pages/cpu @c000000001a00000 s25408 r0 d31936 u1048576 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 193920 Kernel command line: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.000000] Memory: 692292k/786432k available (11800k kernel code, 94140k reserved, 1192k data, 1890k bss, 392k init) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] \tRCU debugfs-based tracing is enabled. [ 0.000000] \tCONFIG_RCU_FANOUT set to non-default value of 32 [ 0.000000] \tRCU restricting CPUs from NR_CPUS=24 to nr_cpu_ids=1. [ 0.000000] NR_IRQS:512 nr_irqs:512 16 [ 0.000000] mpic: Setting up MPIC " OpenPIC " version 1.2 at e0040000, max 1 CPUs [ 0.000000] mpic: ISU size: 256, shift: 8, mask: ff [ 0.000000] mpic: Initializing for 256 sources [ 0.000000] clocksource: timebase mult[18000006] shift[24] registered [ 0.000000] Console: colour dummy device 80x25 [ 0.003054] pid_max: default: 32768 minimum: 301 [ 0.004316] Mount-cache hash table entries: 256 [ 0.006864] e6500 family performance monitor hardware support registered [ 0.009259] Brought up 1 CPUs [ 0.010581] devtmpfs: initialized [ 0.011938] xor: measuring software checksum speed [ 0.050112] 8regs : 3397.000 MB/sec [ 0.090254] 8regs_prefetch: 2978.000 MB/sec [ 0.130394] 32regs : 3416.000 MB/sec [ 0.170533] 32regs_prefetch: 3067.000 MB/sec [ 0.171531] xor: using function: 32regs (3416.000 MB/sec) [ 0.173469] NET: Registered protocol family 16 [ 0.178003] Found FSL PCI host bridge at 0x00000000e0008000. Firmware bus number: 0->255 [ 0.180031] PCI host bridge /pci@e0008000 (primary) ranges: [ 0.181365] MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000 [ 0.183225] IO 0x00000000e1000000..0x00000000e100ffff -> 0x0000000000000000 [ 0.185264] /pci@e0008000: PCICSRBAR @ 0xfff00000 [ 0.186941] EDAC PCI0: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'e0008000.pci' (INTERRUPT) [ 0.189817] MPC85xx_edac acquired irq 24 for PCI Err [ 0.191022] MPC85xx_edac PCI err registered [ 0.193819] fsl-pamu: fsl_pamu_init: fsl-pamu: could not find a PAMU node [ 0.205939] PCI: Probing PCI hardware [ 0.207355] fsl-pci e0008000.pci: PCI host bridge to bus 0000:00 [ 0.208798] pci_bus 0000:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x0000-0xffff]) [ 0.211042] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xdfffffff] [ 0.212631] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.219804] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.222854] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 0.225264] PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap [ 0.227192] PCI: Cannot allocate resource region 0 of device 0000:00:01.0, will remap [ 0.229195] PCI: Cannot allocate resource region 0 of device 0000:00:02.0, will remap [ 0.231299] pci 0000:00:00.0: BAR 0: assigned [mem 0xc0000000-0xc00fffff] [ 0.235514] pci 0000:00:00.0: BAR 8: assigned [mem 0xc0100000-0xc01fffff] [ 0.237120] pci 0000:00:01.0: BAR 1: assigned [mem 0xc0200000-0xc0200fff] [ 0.238760] pci 0000:00:02.0: BAR 1: assigned [mem 0xc0201000-0xc0201fff] [ 0.240585] pci 0000:00:01.0: BAR 0: assigned [io 0x11000-0x1103f] [ 0.242078] pci 0000:00:02.0: BAR 0: assigned [io 0x11040-0x1105f] [ 0.243614] pci 0000:00:00.0: PCI bridge to [bus 01] [ 0.244871] pci 0000:00:00.0: bridge window [io 0x10000-0x10fff] [ 0.246514] pci 0000:00:00.0: bridge window [mem 0xc0100000-0xc01fffff] [ 0.274019] bio: create slab <bio-0> at 0 [ 0.341414] raid6: altivecx1 1458 MB/s [ 0.409673] raid6: altivecx2 1815 MB/s [ 0.477900] raid6: altivecx4 2740 MB/s [ 0.546168] raid6: altivecx8 2824 MB/s [ 0.615756] raid6: int64x1 454 MB/s [ 0.683978] raid6: int64x2 828 MB/s [ 0.752252] raid6: int64x4 1215 MB/s [ 0.820492] raid6: int64x8 1156 MB/s [ 0.821308] raid6: using algorithm altivecx8 (2824 MB/s) [ 0.822588] raid6: using intx1 recovery algorithm [ 0.825003] vgaarb: loaded [ 0.826260] SCSI subsystem initialized [ 0.828405] usbcore: registered new interface driver usbfs [ 0.829920] usbcore: registered new interface driver hub [ 0.831385] usbcore: registered new device driver usb [ 0.833694] No BMan portals available! [ 0.835552] QMan: Allocated lookup table at 8000000000000000, entry count 65537 [ 0.837293] No QMan portals available! [ 0.839553] Switching to clocksource timebase [ 0.854468] NET: Registered protocol family 2 [ 0.856161] TCP established hash table entries: 8192 (order: 5, 131072 bytes) [ 0.858151] TCP bind hash table entries: 8192 (order: 5, 131072 bytes) [ 0.860016] TCP: Hash tables configured (established 8192 bind 8192) [ 0.861788] TCP: reno registered [ 0.862622] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.864043] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.865958] NET: Registered protocol family 1 [ 0.867389] RPC: Registered named UNIX socket transport module. [ 0.868833] RPC: Registered udp transport module. [ 0.870008] RPC: Registered tcp transport module. [ 0.871223] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.873628] Trying to unpack rootfs image as initramfs... [ 0.879131] Freeing initrd memory: 708k freed [ 0.883089] audit: initializing netlink socket (disabled) [ 0.884471] type=2000 audit(0.860:1): initialized [ 0.887288] HugeTLB registered 1 MB page size, pre-allocated 0 pages [ 0.888897] HugeTLB registered 4 MB page size, pre-allocated 0 pages [ 0.890385] HugeTLB registered 16 MB page size, pre-allocated 0 pages [ 0.891886] HugeTLB registered 64 MB page size, pre-allocated 0 pages [ 0.893612] HugeTLB registered 256 MB page size, pre-allocated 0 pages [ 0.895169] HugeTLB registered 1 GB page size, pre-allocated 0 pages [ 0.899032] NFS: Registering the id_resolver key type [ 0.900644] Key type id_resolver registered [ 0.901688] Key type id_legacy registered [ 0.902737] NTFS driver 2.1.30 [Flags: R/O]. [ 0.903974] jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc. [ 0.905732] msgmni has been set to 1484 [ 0.908969] io scheduler noop registered [ 0.909829] io scheduler deadline registered [ 0.910918] io scheduler cfq registered (default) [ 0.913372] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003) [ 0.920895] virtio-pci 0000:00:02.0: enabling device (0000 -> 0003) [ 0.928987] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.956597] serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 42) is a 16550A [ 0.958382] console [ttyS0] enabled, bootconsole disabled [ 0.958382] console [ttyS0] enabled, bootconsole disabled [ 0.962318] ePAPR hypervisor byte channel driver [ 0.970553] brd: module loaded [ 0.975187] loop: module loaded [ 0.976939] nbd: registered device at major 43 [ 0.985441] st: Version 20101219, fixed bufsize 32768, s/g segs 256 [ 0.991404] libphy: Fixed MDIO Bus: probed [ 0.992749] tun: Universal TUN/TAP device driver, 1.6 [ 0.994003] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 0.996354] Freescale FM module (May 27 2014:10:45:13), FMD API version 21.1.0 [ 1.000907] Freescale FM Ports module (May 16 2014:00:31:38) [ 1.002342] dpaa_debugfs: FSL DPAA Ethernet debugfs entries () [ 1.003957] fsl_mac: mac.c:417:mac_load() fsl_mac: FSL FMan MAC API based driver () [ 1.006326] fsl_dpa: dpaa_eth.c:4321:dpa_load() fsl_dpa: FSL DPAA Ethernet driver () [ 1.008393] fsl_oh: offline_port.c:439:oh_port_load() fsl_oh: FSL FMan Offline Parsing port driver () [ 1.010864] e1000e: Intel(R) PRO/1000 Network Driver - 2.1.4-k [ 1.012256] e1000e: Copyright(c) 1999 - 2012 Intel Corporation. [ 1.014497] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.016380] ehci-pci: EHCI PCI platform driver [ 1.017846] Initializing USB Mass Storage driver... [ 1.019309] usbcore: registered new interface driver usb-storage [ 1.020833] USB Mass Storage support registered. [ 1.022518] i2c /dev entries driver [ 1.023797] md: raid6 personality registered for level 6 [ 1.025294] md: raid5 personality registered for level 5 [ 1.026604] md: raid4 personality registered for level 4 [ 1.028252] device-mapper: ioctl: 4.23.1-ioctl (2012-12-18) initialised: dm-devel@redhat.com [ 1.030482] EDAC MC: Ver: 3.0.0 [ 1.031731] Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software [ 1.034030] sdhci: Secure Digital Host Controller Interface driver [ 1.035484] sdhci: Copyright(c) Pierre Ossman [ 1.036663] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.038870] usbcore: registered new interface driver usbhid [ 1.040182] usbhid: USB HID core driver [ 1.041687] No fsl,qman node [ 1.042686] Freescale USDPAA process driver [ 1.043761] fsl-usdpaa: no region found [ 1.044844] Freescale USDPAA process IRQ driver [ 1.046690] Freescale pme2 db driver [ 1.047513] PME2: fsl_pme2_db_init: not on ctrl-plane [ 1.048880] Freescale pme2 scan driver [ 1.050045] fsl-pme2-scan: device pme_scan registered [ 1.051552] Freescale hypervisor management driver [ 1.052814] fsl-hv: no hypervisor found [ 1.053807] Netfilter messages via NETLINK v0.30. [ 1.054987] nfnl_acct: registering with nfnetlink. [ 1.056250] nf_conntrack version 0.5.0 (5937 buckets, 23748 max) [ 1.058187] ctnetlink v0.93: registering with nfnetlink. [ 1.059611] NF_TPROXY: Transparent proxy support initialized, version 4.1.0 [ 1.061434] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd. [ 1.064252] xt_time: kernel timezone is -0000 [ 1.065602] IPVS: Registered protocols (TCP, UDP, SCTP, AH, ESP) [ 1.067159] IPVS: Connection hash table configured (size=4096, memory=64Kbytes) [ 1.069253] IPVS: Creating netns size=2024 id=0 [ 1.070459] IPVS: ipvs loaded. [ 1.071183] IPVS: [rr] scheduler registered. [ 1.072265] IPVS: [wrr] scheduler registered. [ 1.073429] IPVS: [lc] scheduler registered. [ 1.074528] IPVS: [wlc] scheduler registered. [ 1.075638] IPVS: [lblc] scheduler registered. [ 1.076826] IPVS: [lblcr] scheduler registered. [ 1.077994] IPVS: [dh] scheduler registered. [ 1.079107] IPVS: [sh] scheduler registered. [ 1.080190] IPVS: [sed] scheduler registered. [ 1.081355] IPVS: [nq] scheduler registered. [ 1.082520] IPv4 over IPv4 tunneling driver [ 1.084518] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.086170] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully [ 1.087750] arp_tables: (C) 2002 David S. Miller [ 1.089008] TCP: cubic registered [ 1.089889] Initializing XFRM netlink socket [ 1.091039] NET: Registered protocol family 10 [ 1.092910] mip6: Mobile IPv6 [ 1.093651] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 1.095122] sit: IPv6 over IPv4 tunneling driver [ 1.104394] ip6_gre: GRE over IPv6 tunneling driver [ 1.108909] NET: Registered protocol family 17 [ 1.110903] NET: Registered protocol family 15 [ 1.113058] Bridge firewalling registered [ 1.114705] Ebtables v2.0 registered [ 1.116777] 8021q: 802.1Q VLAN Support v1.8 [ 1.118660] Key type dns_resolver registered [ 1.126368] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 1.131085] Freeing unused kernel memory: 392k freed supermin: mounting /proc supermin: uptime: 1.11 184987.52 supermin: ext2 mini initrd starting up: 5.1.8 zlib supermin: cmdline: panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm supermin: mounting /sys supermin: internal insmod crc-itu-t.ko cmdline is panic=1 console=ttyS0 udevtimeout=600 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sda selinux=0 guestfs_verbose=1 TERM=xterm
supermin: waiting another 1024000000 ns for /sys/block/sda/dev to appear supermin: waiting another 2048000000 ns for /sys/block/sda/dev to appear supermin: waiting another 4096000000 ns for /sys/block/sda/dev to appear supermin: waiting another 8192000000 ns for /sys/block/sda/dev to appear supermin: waiting another 16384000000 ns for /sys/block/sda/dev to appear
Looks like the 3.8.13-rt9-QorIQ-SDK-V1.4 kernel doesn't support virtio-scsi.
You will also need to enable virtio-serial (CONFIG_VIRTIO_CONSOLE).
If I were you I'd enable every virtio-* feature possible.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
On Thu, Jun 12, 2014 at 05:08:37PM +0530, abhishek jain wrote:
Hi Rich
I have all the virtio modules available in the kernel but I'm getting the same result .
It doesn't appear to be using any kernel modules. I would have expected to see output such as this: supermin: internal insmod virtio.ko It seems as if you might not be setting SUPERMIN_MODULES; or maybe you don't have any modules that match the internal list in supermin: https://github.com/libguestfs/supermin/blob/master/src/ext2_initrd.ml#L33 Anyhow, virtio-scsi definitely isn't working, as you can see from the appliance kernel output. You can force the direct backend to use virtio-blk instead by editing the function src/launch-direct.c: qemu_supports_virtio_scsi. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hi Rich Thanks for the support you are providing.I have enabled virtio modules with (m) option now and below are the updated logs of libguestfs.. upermin: mounting /proc supermin: uptime: 1.10 1567.28 supermin: ext2 mini initrd starting up: 5.1.8 zlib supermin: cmdline: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm supermin: mounting /sys supermin: internal insmod crc32c.ko [ 1.136268] crc32c: disagrees about version of symbol crypto_unregister_shash [ 1.138006] crc32c: Unknown symbol crypto_unregister_shash (err -22) [ 1.139571] crc32c: disagrees about version of symbol crypto_register_shash [ 1.141446] crc32c: Unknown symbol crypto_register_shash (err -22) insmod: init_module: crc32c.ko: Invalid parameters supermin: internal insmod virtio.ko [ 1.145450] virtio: disagrees about version of symbol device_register [ 1.147131] virtio: Unknown symbol device_register (err -22) [ 1.148588] virtio: disagrees about version of symbol dev_set_name [ 1.150091] virtio: Unknown symbol dev_set_name (err -22) [ 1.151494] virtio: disagrees about version of symbol device_unregister [ 1.153274] virtio: Unknown symbol device_unregister (err -22) insmod: init_module: virtio.ko: Invalid parameters supermin: internal insmod virtio_ring.ko [ 1.157919] virtio_ring: disagrees about version of symbol dev_warn [ 1.159622] virtio_ring: Unknown symbol dev_warn (err -22) [ 1.161131] virtio_ring: disagrees about version of symbol dev_err [ 1.162845] virtio_ring: Unknown symbol dev_err (err -22) insmod: init_module: virtio_ring.ko: Invalid parameters supermin: internal insmod virtio_blk.ko [ 1.167444] virtio_blk: disagrees about version of symbol device_create_file [ 1.169352] virtio_blk: Unknown symbol device_create_file (err -22) [ 1.171105] virtio_blk: disagrees about version of symbol dev_notice [ 1.172818] virtio_blk: Unknown symbol dev_notice (err -22) insmod: init_module: virtio_blk.ko: Invalid parameters supermin: internal insmod virtio_console.ko [ 1.177496] virtio_console: Unknown symbol hvc_instantiate (err 0) [ 1.179128] virtio_console: Unknown symbol hvc_alloc (err 0) [ 1.180676] virtio_console: Unknown symbol __hvc_resize (err 0) [ 1.182345] virtio_console: disagrees about version of symbol kobject_uevent [ 1.184209] virtio_console: Unknown symbol kobject_uevent (err -22) [ 1.185952] virtio_console: disagrees about version of symbol device_destroy [ 1.187786] virtio_console: Unknown symbol device_destroy (err -22) [ 1.189594] virtio_console: Unknown symbol hvc_remove (err 0) [ 1.191122] virtio_console: Unknown symbol hvc_kick (err 0) [ 1.192647] virtio_console: disagrees about version of symbol dev_warn [ 1.194444] virtio_console: Unknown symbol dev_warn (err -22) [ 1.196488] virtio_console: disagrees about version of symbol dev_err [ 1.198096] virtio_console: Unknown symbol dev_err (err -22) [ 1.199528] virtio_console: disagrees about version of symbol device_create [ 1.201388] virtio_console: Unknown symbol device_create (err -22) [ 1.202902] virtio_console: Unknown symbol hvc_poll (err 0) insmod: init_module: virtio_console.ko: Unknown symbol in module supermin: internal insmod virtio_net.ko [ 1.207732] virtio_net: disagrees about version of symbol eth_type_trans [ 1.209575] virtio_net: Unknown symbol eth_type_trans (err -22) [ 1.211019] virtio_net: disagrees about version of symbol netif_carrier_on [ 1.212874] virtio_net: Unknown symbol netif_carrier_on (err -22) [ 1.214353] virtio_net: disagrees about version of symbol netif_set_real_num_tx_queues [ 1.216418] virtio_net: Unknown symbol netif_set_real_num_tx_queues (err -22) [ 1.218159] virtio_net: disagrees about version of symbol eth_validate_addr [ 1.220016] virtio_net: Unknown symbol eth_validate_addr (err -22) [ 1.221514] virtio_net: disagrees about version of symbol register_netdev [ 1.223387] virtio_net: Unknown symbol register_netdev (err -22) [ 1.225142] virtio_net: disagrees about version of symbol skb_to_sgvec [ 1.226813] virtio_net: Unknown symbol skb_to_sgvec (err -22) [ 1.228288] virtio_net: disagrees about version of symbol eth_mac_addr [ 1.229869] virtio_net: Unknown symbol eth_mac_addr (err -22) [ 1.231424] virtio_net: disagrees about version of symbol __netdev_alloc_skb [ 1.233164] virtio_net: Unknown symbol __netdev_alloc_skb (err -22) [ 1.234708] virtio_net: disagrees about version of symbol unregister_netdev [ 1.236558] virtio_net: Unknown symbol unregister_netdev (err -22) [ 1.238062] virtio_net: disagrees about version of symbol free_netdev [ 1.239754] virtio_net: Unknown symbol free_netdev (err -22) [ 1.241185] virtio_net: disagrees about version of symbol dev_kfree_skb_any [ 1.242849] virtio_net: Unknown symbol dev_kfree_skb_any (err -22) [ 1.244566] virtio_net: disagrees about version of symbol __napi_schedule [ 1.246196] virtio_net: Unknown symbol __napi_schedule (err -22) [ 1.247668] virtio_net: disagrees about version of symbol skb_put [ 1.249315] virtio_net: Unknown symbol skb_put (err -22) [ 1.250629] virtio_net: disagrees about version of symbol netif_napi_add [ 1.252301] virtio_net: Unknown symbol netif_napi_add (err -22) [ 1.253868] virtio_net: disagrees about version of symbol ethtool_op_get_link [ 1.255579] virtio_net: Unknown symbol ethtool_op_get_link (err -22) [ 1.257192] virtio_net: disagrees about version of symbol dev_warn [ 1.258819] virtio_net: Unknown symbol dev_warn (err -22) [ 1.260210] virtio_net: disagrees about version of symbol netif_set_real_num_rx_queues [ 1.262200] virtio_net: Unknown symbol netif_set_real_num_rx_queues (err -22) [ 1.263962] virtio_net: disagrees about version of symbol skb_trim [ 1.265564] virtio_net: Unknown symbol skb_trim (err -22) [ 1.266920] virtio_net: disagrees about version of symbol netif_carrier_off [ 1.268638] virtio_net: Unknown symbol netif_carrier_off (err -22) [ 1.270149] virtio_net: disagrees about version of symbol __netif_schedule [ 1.272013] virtio_net: Unknown symbol __netif_schedule (err -22) [ 1.273501] virtio_net: disagrees about version of symbol alloc_etherdev_mqs [ 1.275321] virtio_net: Unknown symbol alloc_etherdev_mqs (err -22) [ 1.276891] virtio_net: disagrees about version of symbol kfree_skb [ 1.278407] virtio_net: Unknown symbol kfree_skb (err -22) [ 1.279942] virtio_net: disagrees about version of symbol skb_partial_csum_set [ 1.281661] virtio_net: Unknown symbol skb_partial_csum_set (err -22) [ 1.283358] virtio_net: disagrees about version of symbol napi_complete [ 1.285016] virtio_net: Unknown symbol napi_complete (err -22) [ 1.286457] virtio_net: disagrees about version of symbol netdev_notify_peers [ 1.288347] virtio_net: Unknown symbol netdev_notify_peers (err -22) [ 1.289889] virtio_net: disagrees about version of symbol consume_skb [ 1.291580] virtio_net: Unknown symbol consume_skb (err -22) [ 1.293018] virtio_net: disagrees about version of symbol netif_receive_skb [ 1.294684] virtio_net: Unknown symbol netif_receive_skb (err -22) insmod: init_module: virtio_net.ko: Invalid parameters supermin: internal insmod virtio_scsi.ko [ 1.299384] virtio_scsi: disagrees about version of symbol dev_printk [ 1.301099] virtio_scsi: Unknown symbol dev_printk (err -22) insmod: init_module: virtio_scsi.ko: Invalid parameters supermin: internal insmod virtio_pci.ko [ 1.305167] virtio_pci: module is already loaded insmod: init_module: virtio_pci.ko: Invalid parameters supermin: internal insmod crc-itu-t.ko supermin: internal insmod libcrc32c.ko [ 1.310248] libcrc32c: disagrees about version of symbol crypto_shash_update [ 1.312136] libcrc32c: Unknown symbol crypto_shash_update (err -22) [ 1.313686] libcrc32c: disagrees about version of symbol crypto_destroy_tfm [ 1.315484] libcrc32c: Unknown symbol crypto_destroy_tfm (err -22) [ 1.317041] libcrc32c: disagrees about version of symbol crypto_alloc_shash [ 1.318822] libcrc32c: Unknown symbol crypto_alloc_shash (err -22) insmod: init_module: libcrc32c.ko: Invalid parameters func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 supermin: waiting another 1024000000 ns for /sys/block/sdb/dev to appear ^C Please help regarding this. On Thu, Jun 12, 2014 at 5:33 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Thu, Jun 12, 2014 at 05:08:37PM +0530, abhishek jain wrote:
Hi Rich
I have all the virtio modules available in the kernel but I'm getting the same result .
It doesn't appear to be using any kernel modules. I would have expected to see output such as this:
supermin: internal insmod virtio.ko
It seems as if you might not be setting SUPERMIN_MODULES; or maybe you don't have any modules that match the internal list in supermin:
https://github.com/libguestfs/supermin/blob/master/src/ext2_initrd.ml#L33
Anyhow, virtio-scsi definitely isn't working, as you can see from the appliance kernel output. You can force the direct backend to use virtio-blk instead by editing the function src/launch-direct.c: qemu_supports_virtio_scsi.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hi RIch It got solved.I updated the newer vmlinuz file with the older one after enabling the virtio modules with (m) option. Thanks for the wonderful support you provided me.I'll now ryo to boot my VM from the cloud and let you know if any further issues. I'm now getting following logs... libguestfs-test-tool ************************************************************ * IMPORTANT NOTICE * * When reporting bugs, include the COMPLETE, UNEDITED * output below in your bug report. * ************************************************************ PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin SELinux: Disabled guestfs_get_append: (null) guestfs_get_autosync: 1 guestfs_get_backend: direct guestfs_get_backend_settings: [] guestfs_get_cachedir: /var/tmp guestfs_get_direct: 0 guestfs_get_hv: /usr/bin/kvm guestfs_get_memsize: 768 guestfs_get_network: 0 guestfs_get_path: /usr/local/lib/guestfs guestfs_get_pgroup: 0 guestfs_get_program: libguestfs-test-tool guestfs_get_recovery_proc: 1 guestfs_get_selinux: 0 guestfs_get_smp: 1 guestfs_get_tmpdir: /tmp guestfs_get_trace: 0 guestfs_get_verbose: 1 host_cpu: powerpc64 Launching appliance, timeout set to 600 seconds. libguestfs: launch: program=libguestfs-test-tool libguestfs: launch: version=1.27.15 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfs7YXFMQ libguestfs: launch: umask=0002 libguestfs: launch: euid=1000 libguestfs: [00000ms] begin building supermin appliance libguestfs: [00000ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu powerpc64 libguestfs: command: run: \ /usr/local/lib/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.8 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: if-newer: output does not need rebuilding libguestfs: [00025ms] finished building supermin appliance libguestfs: [00025ms] begin testing qemu features libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -help libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -version libguestfs: qemu version 1.4 libguestfs: command: run: /usr/bin/kvm libguestfs: command: run: \ -display none libguestfs: command: run: \ -M ppce500 libguestfs: command: run: \ -machine accel=kvm:tcg libguestfs: command: run: \ -device ? libguestfs: [00076ms] finished testing qemu features [00078ms] /usr/bin/kvm \ -global virtio-blk-pci.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \ -display none \ -M ppce500 \ -machine accel=kvm:tcg \ -m 768 \ -no-reboot \ -rtc driftfix=slew \ -global kvm-pit.lost_tick_policy=discard \ -kernel /var/tmp/.guestfs-1000/appliance.d/kernel \ -initrd /var/tmp/.guestfs-1000/appliance.d/initrd \ -device virtio-scsi-pci,id=scsi \ -drive file=/tmp/libguestfs7YXFMQ/scratch.1,cache=unsafe,format=raw,id=hd0,if=none \ -device scsi-hd,drive=hd0 \ -drive file=/var/tmp/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none \ -device scsi-hd,drive=appliance \ -device virtio-serial-pci \ -serial stdio \ -chardev socket,path=/tmp/libguestfs7YXFMQ/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -append 'panic=1 console=ttyS0 udevtimeout=6000 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm' Using QEMU e500 machine description MMU: Supported page sizes 4 KB as direct 1024 KB as direct 2048 KB as direct 4096 KB as direct 16384 KB as direct 65536 KB as direct 262144 KB as direct 1048576 KB as direct MMU: Book3E HW tablewalk not supported Found initrd at 0xc000000003000000:0xc0000000030e6a00 bootconsole [udbg0] enabled CPU maps initialized for 1 thread per core Starting Linux PPC64 #3 SMP Thu Jun 12 20:30:14 IST 2014 ----------------------------------------------------- ppc64_pft_size = 0x0 physicalMemorySize = 0x30000000 ppc64_caches.dcache_line_size = 0x40 ppc64_caches.icache_line_size = 0x40 ----------------------------------------------------- Linux version 3.8.13-rt9-QorIQ-SDK-V1.4 (vvdn@vvdn) (gcc version 4.7.2 (GCC) ) #3 SMP Thu Jun 12 20:30:14 IST 2014 CF000012 Setup Arch [boot]0012 Setup Arch qemu_e500_setup_arch() Zone ranges: DMA [mem 0x00000000-0x2fffffff] Normal empty Movable zone start for each node Early memory node ranges node 0: [mem 0x00000000-0x2fffffff] MMU: Allocated 2112 bytes of context maps for 255 contexts CF000015 Setup Done [boot]0015 Setup Done PERCPU: Embedded 14 pages/cpu @c000000001800000 s24832 r0 d32512 u1048576 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 193920 Kernel command line: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.000000] Memory: 693792k/786432k available (11200k kernel code, 92640k reserved, 1116k data, 850k bss, 356k init) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] \tRCU debugfs-based tracing is enabled. [ 0.000000] \tCONFIG_RCU_FANOUT set to non-default value of 32 [ 0.000000] \tRCU restricting CPUs from NR_CPUS=24 to nr_cpu_ids=1. [ 0.000000] NR_IRQS:512 nr_irqs:512 16 [ 0.000000] mpic: Setting up MPIC " OpenPIC " version 1.2 at e0040000, max 1 CPUs [ 0.000000] mpic: ISU size: 256, shift: 8, mask: ff [ 0.000000] mpic: Initializing for 256 sources [ 0.000000] clocksource: timebase mult[18000006] shift[24] registered [ 0.000000] Console: colour dummy device 80x25 [ 0.002933] pid_max: default: 32768 minimum: 301 [ 0.004186] Mount-cache hash table entries: 256 [ 0.006706] e6500 family performance monitor hardware support registered [ 0.009100] Brought up 1 CPUs [ 0.010425] devtmpfs: initialized [ 0.011902] xor: measuring software checksum speed [ 0.049966] 8regs : 3398.000 MB/sec [ 0.090102] 8regs_prefetch: 2979.000 MB/sec [ 0.130242] 32regs : 3415.000 MB/sec [ 0.170390] 32regs_prefetch: 3068.000 MB/sec [ 0.171399] xor: using function: 32regs (3415.000 MB/sec) [ 0.172951] NET: Registered protocol family 16 [ 0.177417] Found FSL PCI host bridge at 0x00000000e0008000. Firmware bus number: 0->255 [ 0.179417] PCI host bridge /pci@e0008000 (primary) ranges: [ 0.180755] MEM 0x00000000c0000000..0x00000000dfffffff -> 0x00000000c0000000 [ 0.182586] IO 0x00000000e1000000..0x00000000e100ffff -> 0x0000000000000000 [ 0.184596] /pci@e0008000: PCICSRBAR @ 0xfff00000 [ 0.186238] EDAC PCI0: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'e0008000.pci' (INTERRUPT) [ 0.189120] MPC85xx_edac acquired irq 24 for PCI Err [ 0.190324] MPC85xx_edac PCI err registered [ 0.192918] fsl-pamu: fsl_pamu_init: fsl-pamu: could not find a PAMU node [ 0.204972] PCI: Probing PCI hardware [ 0.206312] fsl-pci e0008000.pci: PCI host bridge to bus 0000:00 [ 0.207822] pci_bus 0000:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x0000-0xffff]) [ 0.209999] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xdfffffff] [ 0.211792] pci_bus 0000:00: root bus resource [bus 00-ff] [ 0.219004] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.222084] pci 0000:00:00.0: PCI bridge to [bus 01-ff] [ 0.224470] PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap [ 0.226497] PCI: Cannot allocate resource region 0 of device 0000:00:01.0, will remap [ 0.228459] PCI: Cannot allocate resource region 0 of device 0000:00:02.0, will remap [ 0.230668] pci 0000:00:00.0: BAR 0: assigned [mem 0xc0000000-0xc00fffff] [ 0.233411] pci 0000:00:00.0: BAR 8: assigned [mem 0xc0100000-0xc01fffff] [ 0.235207] pci 0000:00:01.0: BAR 1: assigned [mem 0xc0200000-0xc0200fff] [ 0.236835] pci 0000:00:02.0: BAR 1: assigned [mem 0xc0201000-0xc0201fff] [ 0.238607] pci 0000:00:01.0: BAR 0: assigned [io 0x11000-0x1103f] [ 0.240170] pci 0000:00:02.0: BAR 0: assigned [io 0x11040-0x1105f] [ 0.241842] pci 0000:00:00.0: PCI bridge to [bus 01] [ 0.243080] pci 0000:00:00.0: bridge window [io 0x10000-0x10fff] [ 0.244640] pci 0000:00:00.0: bridge window [mem 0xc0100000-0xc01fffff] [ 0.268512] bio: create slab <bio-0> at 0 [ 0.337804] raid6: altivecx1 1459 MB/s [ 0.406041] raid6: altivecx2 1814 MB/s [ 0.474309] raid6: altivecx4 2749 MB/s [ 0.542545] raid6: altivecx8 2864 MB/s [ 0.610876] raid6: int64x1 479 MB/s [ 0.679081] raid6: int64x2 830 MB/s [ 0.747310] raid6: int64x4 1217 MB/s [ 0.815546] raid6: int64x8 1156 MB/s [ 0.816376] raid6: using algorithm altivecx8 (2864 MB/s) [ 0.817690] raid6: using intx1 recovery algorithm [ 0.819431] vgaarb: loaded [ 0.820683] SCSI subsystem initialized [ 0.822782] usbcore: registered new interface driver usbfs [ 0.824348] usbcore: registered new interface driver hub [ 0.825774] usbcore: registered new device driver usb [ 0.828039] No BMan portals available! [ 0.829862] QMan: Allocated lookup table at 8000000000000000, entry count 65537 [ 0.831626] No QMan portals available! [ 0.833758] Switching to clocksource timebase [ 0.848225] NET: Registered protocol family 2 [ 0.849874] TCP established hash table entries: 8192 (order: 5, 131072 bytes) [ 0.851899] TCP bind hash table entries: 8192 (order: 5, 131072 bytes) [ 0.853763] TCP: Hash tables configured (established 8192 bind 8192) [ 0.855550] TCP: reno registered [ 0.856370] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.857813] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.859726] NET: Registered protocol family 1 [ 0.861128] RPC: Registered named UNIX socket transport module. [ 0.862563] RPC: Registered udp transport module. [ 0.863769] RPC: Registered tcp transport module. [ 0.864910] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.867318] Trying to unpack rootfs image as initramfs... [ 0.874567] Freeing initrd memory: 924k freed [ 0.878764] audit: initializing netlink socket (disabled) [ 0.880369] type=2000 audit(0.860:1): initialized [ 0.883274] HugeTLB registered 1 MB page size, pre-allocated 0 pages [ 0.884908] HugeTLB registered 4 MB page size, pre-allocated 0 pages [ 0.886529] HugeTLB registered 16 MB page size, pre-allocated 0 pages [ 0.888337] HugeTLB registered 64 MB page size, pre-allocated 0 pages [ 0.889960] HugeTLB registered 256 MB page size, pre-allocated 0 pages [ 0.892013] HugeTLB registered 1 GB page size, pre-allocated 0 pages [ 0.895392] NFS: Registering the id_resolver key type [ 0.896696] Key type id_resolver registered [ 0.897598] Key type id_legacy registered [ 0.898675] NTFS driver 2.1.30 [Flags: R/O]. [ 0.899805] jffs2: version 2.2. (NAND) \xc2\xa9 2001-2006 Red Hat, Inc. [ 0.901523] fuse init (API version 7.20) [ 0.903075] msgmni has been set to 1485 [ 0.905867] io scheduler noop registered [ 0.906751] io scheduler deadline registered [ 0.907902] io scheduler cfq registered (default) [ 0.910011] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.937464] serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 42) is a 16550A [ 0.939348] console [ttyS0] enabled, bootconsole disabled [ 0.939348] console [ttyS0] enabled, bootconsole disabled [ 0.943180] ePAPR hypervisor byte channel driver [ 0.951435] brd: module loaded [ 0.956103] loop: module loaded [ 0.957769] nbd: registered device at major 43 [ 0.966074] st: Version 20101219, fixed bufsize 32768, s/g segs 256 [ 0.972093] libphy: Fixed MDIO Bus: probed [ 0.973326] tun: Universal TUN/TAP device driver, 1.6 [ 0.974611] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> [ 0.976923] Freescale FM module (Jun 12 2014:20:28:49), FMD API version 21.1.0 [ 0.981232] Freescale FM Ports module (Jun 12 2014:20:28:50) [ 0.982681] dpaa_debugfs: FSL DPAA Ethernet debugfs entries () [ 0.984235] fsl_mac: mac.c:417:mac_load() fsl_mac: FSL FMan MAC API based driver () [ 0.986485] fsl_dpa: dpaa_eth.c:4321:dpa_load() fsl_dpa: FSL DPAA Ethernet driver () [ 0.988667] fsl_oh: offline_port.c:439:oh_port_load() fsl_oh: FSL FMan Offline Parsing port driver () [ 0.991227] e1000e: Intel(R) PRO/1000 Network Driver - 2.1.4-k [ 0.992627] e1000e: Copyright(c) 1999 - 2012 Intel Corporation. [ 0.994566] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.996752] ehci-pci: EHCI PCI platform driver [ 0.998251] Initializing USB Mass Storage driver... [ 0.999775] usbcore: registered new interface driver usb-storage [ 1.001248] USB Mass Storage support registered. [ 1.003028] i2c /dev entries driver [ 1.004321] md: raid6 personality registered for level 6 [ 1.005729] md: raid5 personality registered for level 5 [ 1.007138] md: raid4 personality registered for level 4 [ 1.008791] device-mapper: ioctl: 4.23.1-ioctl (2012-12-18) initialised: dm-devel@redhat.com [ 1.011007] EDAC MC: Ver: 3.0.0 [ 1.012417] Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software [ 1.014656] sdhci: Secure Digital Host Controller Interface driver [ 1.016328] sdhci: Copyright(c) Pierre Ossman [ 1.017318] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.019537] usbcore: registered new interface driver usbhid [ 1.020855] usbhid: USB HID core driver [ 1.022263] No fsl,qman node [ 1.023344] Freescale USDPAA process driver [ 1.024381] fsl-usdpaa: no region found [ 1.025367] Freescale USDPAA process IRQ driver [ 1.027262] Freescale pme2 db driver [ 1.028095] PME2: fsl_pme2_db_init: not on ctrl-plane [ 1.029364] Freescale pme2 scan driver [ 1.030563] fsl-pme2-scan: device pme_scan registered [ 1.032204] Freescale hypervisor management driver [ 1.033301] fsl-hv: no hypervisor found [ 1.034639] IPv4 over IPv4 tunneling driver [ 1.036564] ip_tables: (C) 2000-2006 Netfilter Core Team [ 1.038019] arp_tables: (C) 2002 David S. Miller [ 1.039339] TCP: cubic registered [ 1.040218] Initializing XFRM netlink socket [ 1.041344] NET: Registered protocol family 10 [ 1.043058] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 1.044488] sit: IPv6 over IPv4 tunneling driver [ 1.046298] NET: Registered protocol family 17 [ 1.047553] NET: Registered protocol family 15 [ 1.048725] Bridge firewalling registered [ 1.049768] Ebtables v2.0 registered [ 1.050977] 8021q: 802.1Q VLAN Support v1.8 [ 1.052090] Key type dns_resolver registered [ 1.055657] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 1.058540] Freeing unused kernel memory: 356k freed supermin: mounting /proc supermin: uptime: 1.04 4031.60 supermin: ext2 mini initrd starting up: 5.1.8 zlib supermin: cmdline: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm supermin: mounting /sys supermin: internal insmod crc32c.ko supermin: internal insmod virtio.ko supermin: internal insmod virtio_ring.ko supermin: internal insmod virtio_blk.ko supermin: internal insmod virtio_console.ko supermin: internal insmod virtio_net.ko supermin: internal insmod virtio_scsi.ko supermin: internal insmod virtio_pci.ko [ 1.086561] virtio-pci 0000:00:01.0: enabling device (0000 -> 0003) [ 1.097347] scsi0 : Virtio SCSI HBA [ 1.104650] scsi 0:0:0:0: Direct-Access QEMU QEMU HARDDISK 1.4. PQ: 0 ANSI: 5 [ 1.108395] sd 0:0:0:0: [sda] 204800 512-byte logical blocks: (104 MB/100 MiB) [ 1.110971] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 1.112759] sd 0:0:0:0: [sda] Write Protect is off [ 1.114381] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 1.116936] scsi 0:0:1:0: Direct-Access QEMU QEMU HARDDISK 1.4. PQ: 0 ANSI: 5 [ 1.121321] sd 0:0:1:0: [sdb] 8388608 512-byte logical blocks: (4.29 GB/4.00 GiB) [ 1.124271] sd 0:0:1:0: Attached scsi generic sg1 type 0 [ 1.126590] sda: unknown partition table [ 1.128356] sd 0:0:1:0: [sdb] Write Protect is off [ 1.130575] sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 1.136016] sd 0:0:0:0: [sda] Attached SCSI disk [ 1.140082] sdb: unknown partition table [ 1.144144] sd 0:0:1:0: [sdb] Attached SCSI disk [ 1.199828] virtio-pci 0000:00:02.0: enabling device (0000 -> 0003) supermin: internal insmod crc-itu-t.ko supermin: internal insmod libcrc32c.ko func: main line 171 supermin: picked /sys/block/sdb/dev as root device supermin: creating /dev/root as block special 8:16 supermin: mounting new root on /root supermin: chroot Starting /init script ... [ 1.638427] systemd-udevd[591]: starting version 204 invalid command 'static-nodes' kmod - Manage kernel modules: list, load, unload, etc Usage: \tkmod [options] command [command_options] Options: \t-V, --version show version \t-h, --help show this help Commands: help Show help message list list currently loaded modules kmod also handles gracefully if called from following symlinks: lsmod compat lsmod command rmmod compat rmmod command insmod compat insmod command modinfo compat modinfo command modprobe compat modprobe command depmod compat depmod command /init: line 63: systemd-tmpfiles: command not found /init: line 69: /sys/block/hd*/queue/scheduler: No such file or directory /init: line 69: /sys/block/ubd*/queue/scheduler: No such file or directory /init: line 69: /sys/block/vd*/queue/scheduler: No such file or directory hwclock: Cannot access the Hardware Clock via any known method. hwclock: Use the --debug option to see the details of our search for an access method. Cannot find device "eth0" Cannot find device "eth0" RTNETLINK answers: Network is unreachable /init: line 86: mdadm: command not found /init: line 90: lvmetad: command not found No volume groups found /init: line 95: ldmtool: command not found Linux (none) 3.8.13-rt9-QorIQ-SDK-V1.4 #3 SMP Thu Jun 12 20:30:14 IST 2014 ppc64 ppc64 ppc64 GNU/Linux /dev: total 0 drwxr-xr-x 2 0 0 880 Jan 1 00:00 block drwxr-xr-x 2 0 0 2000 Jan 1 00:00 char crw------- 1 0 0 5, 1 Jan 1 00:00 console lrwxrwxrwx 1 0 0 11 Jan 1 00:00 core -> /proc/kcore crw------- 1 0 0 10, 60 Jan 1 00:00 cpu_dma_latency drwxr-xr-x 5 0 0 100 Jan 1 00:00 disk lrwxrwxrwx 1 0 0 13 Jan 1 00:00 fd -> /proc/self/fd crw------- 1 0 0 10, 62 Jan 1 00:00 fsl-usdpaa-irq crw-rw-rw- 1 0 0 1, 7 Jan 1 00:00 full crw-rw-rw- 1 0 0 10, 229 Jan 1 00:00 fuse crw------- 1 0 0 1, 2 Jan 1 00:00 kmem crw-r--r-- 1 0 0 1, 11 Jan 1 00:00 kmsg crw------- 1 0 0 10, 232 Jan 1 00:00 kvm crw------- 1 0 0 10, 237 Jan 1 00:00 loop-control brw------- 1 0 0 7, 0 Jan 1 00:00 loop0 brw------- 1 0 0 7, 1 Jan 1 00:00 loop1 brw------- 1 0 0 7, 2 Jan 1 00:00 loop2 brw------- 1 0 0 7, 3 Jan 1 00:00 loop3 brw------- 1 0 0 7, 4 Jan 1 00:00 loop4 brw------- 1 0 0 7, 5 Jan 1 00:00 loop5 brw------- 1 0 0 7, 6 Jan 1 00:00 loop6 brw------- 1 0 0 7, 7 Jan 1 00:00 loop7 drwxr-xr-x 2 0 0 60 Jan 1 00:00 mapper crw------- 1 0 0 1, 1 Jan 1 00:00 mem brw------- 1 0 0 43, 0 Jan 1 00:00 nbd0 brw------- 1 0 0 43, 1 Jan 1 00:00 nbd1 brw------- 1 0 0 43, 10 Jan 1 00:00 nbd10 brw------- 1 0 0 43, 11 Jan 1 00:00 nbd11 brw------- 1 0 0 43, 12 Jan 1 00:00 nbd12 brw------- 1 0 0 43, 13 Jan 1 00:00 nbd13 brw------- 1 0 0 43, 14 Jan 1 00:00 nbd14 brw------- 1 0 0 43, 15 Jan 1 00:00 nbd15 brw------- 1 0 0 43, 2 Jan 1 00:00 nbd2 brw------- 1 0 0 43, 3 Jan 1 00:00 nbd3 brw------- 1 0 0 43, 4 Jan 1 00:00 nbd4 brw------- 1 0 0 43, 5 Jan 1 00:00 nbd5 brw------- 1 0 0 43, 6 Jan 1 00:00 nbd6 brw------- 1 0 0 43, 7 Jan 1 00:00 nbd7 brw------- 1 0 0 43, 8 Jan 1 00:00 nbd8 brw------- 1 0 0 43, 9 Jan 1 00:00 nbd9 drwxr-xr-x 2 0 0 60 Jan 1 00:00 net crw------- 1 0 0 10, 59 Jan 1 00:00 network_latency crw------- 1 0 0 10, 58 Jan 1 00:00 network_throughput crw-rw-rw- 1 0 0 1, 3 Jan 1 00:00 null crw------- 1 0 0 10, 61 Jan 1 00:00 pme_scan crw-rw-rw- 1 0 0 5, 2 Jan 1 00:00 ptmx brw------- 1 0 0 1, 0 Jan 1 00:00 ram0 brw------- 1 0 0 1, 1 Jan 1 00:00 ram1 brw------- 1 0 0 1, 10 Jan 1 00:00 ram10 brw------- 1 0 0 1, 11 Jan 1 00:00 ram11 brw------- 1 0 0 1, 12 Jan 1 00:00 ram12 brw------- 1 0 0 1, 13 Jan 1 00:00 ram13 brw------- 1 0 0 1, 14 Jan 1 00:00 ram14 brw------- 1 0 0 1, 15 Jan 1 00:00 ram15 brw------- 1 0 0 1, 2 Jan 1 00:00 ram2 brw------- 1 0 0 1, 3 Jan 1 00:00 ram3 brw------- 1 0 0 1, 4 Jan 1 00:00 ram4 brw------- 1 0 0 1, 5 Jan 1 00:00 ram5 brw------- 1 0 0 1, 6 Jan 1 00:00 ram6 brw------- 1 0 0 1, 7 Jan 1 00:00 ram7 brw------- 1 0 0 1, 8 Jan 1 00:00 ram8 brw------- 1 0 0 1, 9 Jan 1 00:00 ram9 crw-rw-rw- 1 0 0 1, 8 Jan 1 00:00 random brw------- 1 0 0 8, 0 Jan 1 00:00 sda brw------- 1 0 0 8, 16 Jan 1 00:00 sdb crw------- 1 0 0 21, 0 Jan 1 00:00 sg0 crw------- 1 0 0 21, 1 Jan 1 00:00 sg1 lrwxrwxrwx 1 0 0 15 Jan 1 00:00 stderr -> /proc/self/fd/2 lrwxrwxrwx 1 0 0 15 Jan 1 00:00 stdin -> /proc/self/fd/0 lrwxrwxrwx 1 0 0 15 Jan 1 00:00 stdout -> /proc/self/fd/1 crw-rw-rw- 1 0 0 5, 0 Jan 1 00:00 tty crw------- 1 0 0 4, 0 Jan 1 00:00 tty0 crw------- 1 0 0 4, 1 Jan 1 00:00 tty1 crw------- 1 0 0 4, 10 Jan 1 00:00 tty10 crw------- 1 0 0 4, 11 Jan 1 00:00 tty11 crw------- 1 0 0 4, 12 Jan 1 00:00 tty12 crw------- 1 0 0 4, 13 Jan 1 00:00 tty13 crw------- 1 0 0 4, 14 Jan 1 00:00 tty14 crw------- 1 0 0 4, 15 Jan 1 00:00 tty15 crw------- 1 0 0 4, 16 Jan 1 00:00 tty16 crw------- 1 0 0 4, 17 Jan 1 00:00 tty17 crw------- 1 0 0 4, 18 Jan 1 00:00 tty18 crw------- 1 0 0 4, 19 Jan 1 00:00 tty19 crw------- 1 0 0 4, 2 Jan 1 00:00 tty2 crw------- 1 0 0 4, 20 Jan 1 00:00 tty20 crw------- 1 0 0 4, 21 Jan 1 00:00 tty21 crw------- 1 0 0 4, 22 Jan 1 00:00 tty22 crw------- 1 0 0 4, 23 Jan 1 00:00 tty23 crw------- 1 0 0 4, 24 Jan 1 00:00 tty24 crw------- 1 0 0 4, 25 Jan 1 00:00 tty25 crw------- 1 0 0 4, 26 Jan 1 00:00 tty26 crw------- 1 0 0 4, 27 Jan 1 00:00 tty27 crw------- 1 0 0 4, 28 Jan 1 00:00 tty28 crw------- 1 0 0 4, 29 Jan 1 00:00 tty29 crw------- 1 0 0 4, 3 Jan 1 00:00 tty3 crw------- 1 0 0 4, 30 Jan 1 00:00 tty30 crw------- 1 0 0 4, 31 Jan 1 00:00 tty31 crw------- 1 0 0 4, 32 Jan 1 00:00 tty32 crw------- 1 0 0 4, 33 Jan 1 00:00 tty33 crw------- 1 0 0 4, 34 Jan 1 00:00 tty34 crw------- 1 0 0 4, 35 Jan 1 00:00 tty35 crw------- 1 0 0 4, 36 Jan 1 00:00 tty36 crw------- 1 0 0 4, 37 Jan 1 00:00 tty37 crw------- 1 0 0 4, 38 Jan 1 00:00 tty38 crw------- 1 0 0 4, 39 Jan 1 00:00 tty39 crw------- 1 0 0 4, 4 Jan 1 00:00 tty4 crw------- 1 0 0 4, 40 Jan 1 00:00 tty40 crw------- 1 0 0 4, 41 Jan 1 00:00 tty41 crw------- 1 0 0 4, 42 Jan 1 00:00 tty42 crw------- 1 0 0 4, 43 Jan 1 00:00 tty43 crw------- 1 0 0 4, 44 Jan 1 00:00 tty44 crw------- 1 0 0 4, 45 Jan 1 00:00 tty45 crw------- 1 0 0 4, 46 Jan 1 00:00 tty46 crw------- 1 0 0 4, 47 Jan 1 00:00 tty47 crw------- 1 0 0 4, 48 Jan 1 00:00 tty48 crw------- 1 0 0 4, 49 Jan 1 00:00 tty49 crw------- 1 0 0 4, 5 Jan 1 00:00 tty5 crw------- 1 0 0 4, 50 Jan 1 00:00 tty50 crw------- 1 0 0 4, 51 Jan 1 00:00 tty51 crw------- 1 0 0 4, 52 Jan 1 00:00 tty52 crw------- 1 0 0 4, 53 Jan 1 00:00 tty53 crw------- 1 0 0 4, 54 Jan 1 00:00 tty54 crw------- 1 0 0 4, 55 Jan 1 00:00 tty55 crw------- 1 0 0 4, 56 Jan 1 00:00 tty56 crw------- 1 0 0 4, 57 Jan 1 00:00 tty57 crw------- 1 0 0 4, 58 Jan 1 00:00 tty58 crw------- 1 0 0 4, 59 Jan 1 00:00 tty59 crw------- 1 0 0 4, 6 Jan 1 00:00 tty6 crw------- 1 0 0 4, 60 Jan 1 00:00 tty60 crw------- 1 0 0 4, 61 Jan 1 00:00 tty61 crw------- 1 0 0 4, 62 Jan 1 00:00 tty62 crw------- 1 0 0 4, 63 Jan 1 00:00 tty63 crw------- 1 0 0 4, 7 Jan 1 00:00 tty7 crw------- 1 0 0 4, 8 Jan 1 00:00 tty8 crw------- 1 0 0 4, 9 Jan 1 00:00 tty9 crw------- 1 0 0 4, 64 Jan 1 00:00 ttyS0 crw------- 1 0 0 4, 65 Jan 1 00:00 ttyS1 crw------- 1 0 0 4, 66 Jan 1 00:00 ttyS2 crw------- 1 0 0 4, 67 Jan 1 00:00 ttyS3 crw------- 1 0 0 10, 57 Jan 1 00:00 ubi_ctrl crw-rw-rw- 1 0 0 1, 9 Jan 1 00:00 urandom crw------- 1 0 0 7, 0 Jan 1 00:00 vcs crw------- 1 0 0 7, 1 Jan 1 00:00 vcs1 crw------- 1 0 0 7, 128 Jan 1 00:00 vcsa crw------- 1 0 0 7, 129 Jan 1 00:00 vcsa1 crw------- 1 0 0 10, 63 Jan 1 00:00 vga_arbiter drwxr-xr-x 2 0 0 60 Jan 1 00:00 virtio-ports crw------- 1 0 0 252, 1 Jan 1 00:00 vport0p1 crw-rw-rw- 1 0 0 1, 5 Jan 1 00:00 zero /dev/block: total 0 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:0 -> ../ram0 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:1 -> ../ram1 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 1:10 -> ../ram10 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 1:11 -> ../ram11 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 1:12 -> ../ram12 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 1:13 -> ../ram13 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 1:14 -> ../ram14 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 1:15 -> ../ram15 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:2 -> ../ram2 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:3 -> ../ram3 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:4 -> ../ram4 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:5 -> ../ram5 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:6 -> ../ram6 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:7 -> ../ram7 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:8 -> ../ram8 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:9 -> ../ram9 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 43:0 -> ../nbd0 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 43:1 -> ../nbd1 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 43:10 -> ../nbd10 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 43:11 -> ../nbd11 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 43:12 -> ../nbd12 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 43:13 -> ../nbd13 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 43:14 -> ../nbd14 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 43:15 -> ../nbd15 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 43:2 -> ../nbd2 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 43:3 -> ../nbd3 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 43:4 -> ../nbd4 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 43:5 -> ../nbd5 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 43:6 -> ../nbd6 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 43:7 -> ../nbd7 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 43:8 -> ../nbd8 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 43:9 -> ../nbd9 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 7:0 -> ../loop0 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 7:1 -> ../loop1 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 7:2 -> ../loop2 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 7:3 -> ../loop3 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 7:4 -> ../loop4 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 7:5 -> ../loop5 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 7:6 -> ../loop6 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 7:7 -> ../loop7 lrwxrwxrwx 1 0 0 6 Jan 1 00:00 8:0 -> ../sda lrwxrwxrwx 1 0 0 6 Jan 1 00:00 8:16 -> ../sdb /dev/char: total 0 lrwxrwxrwx 1 0 0 10 Jan 1 00:00 10:200 -> ../net/tun lrwxrwxrwx 1 0 0 7 Jan 1 00:00 10:229 -> ../fuse lrwxrwxrwx 1 0 0 6 Jan 1 00:00 10:232 -> ../kvm lrwxrwxrwx 1 0 0 17 Jan 1 00:00 10:236 -> ../mapper/control lrwxrwxrwx 1 0 0 15 Jan 1 00:00 10:237 -> ../loop-control lrwxrwxrwx 1 0 0 11 Jan 1 00:00 10:57 -> ../ubi_ctrl lrwxrwxrwx 1 0 0 21 Jan 1 00:00 10:58 -> ../network_throughput lrwxrwxrwx 1 0 0 18 Jan 1 00:00 10:59 -> ../network_latency lrwxrwxrwx 1 0 0 18 Jan 1 00:00 10:60 -> ../cpu_dma_latency lrwxrwxrwx 1 0 0 11 Jan 1 00:00 10:61 -> ../pme_scan lrwxrwxrwx 1 0 0 17 Jan 1 00:00 10:62 -> ../fsl-usdpaa-irq lrwxrwxrwx 1 0 0 14 Jan 1 00:00 10:63 -> ../vga_arbiter lrwxrwxrwx 1 0 0 6 Jan 1 00:00 1:1 -> ../mem lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:11 -> ../kmsg lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:2 -> ../kmem lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:3 -> ../null lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:5 -> ../zero lrwxrwxrwx 1 0 0 7 Jan 1 00:00 1:7 -> ../full lrwxrwxrwx 1 0 0 9 Jan 1 00:00 1:8 -> ../random lrwxrwxrwx 1 0 0 10 Jan 1 00:00 1:9 -> ../urandom lrwxrwxrwx 1 0 0 6 Jan 1 00:00 21:0 -> ../sg0 lrwxrwxrwx 1 0 0 6 Jan 1 00:00 21:1 -> ../sg1 lrwxrwxrwx 1 0 0 11 Jan 1 00:00 252:1 -> ../vport0p1 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 4:0 -> ../tty0 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 4:1 -> ../tty1 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:10 -> ../tty10 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:11 -> ../tty11 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:12 -> ../tty12 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:13 -> ../tty13 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:14 -> ../tty14 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:15 -> ../tty15 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:16 -> ../tty16 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:17 -> ../tty17 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:18 -> ../tty18 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:19 -> ../tty19 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 4:2 -> ../tty2 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:20 -> ../tty20 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:21 -> ../tty21 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:22 -> ../tty22 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:23 -> ../tty23 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:24 -> ../tty24 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:25 -> ../tty25 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:26 -> ../tty26 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:27 -> ../tty27 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:28 -> ../tty28 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:29 -> ../tty29 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 4:3 -> ../tty3 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:30 -> ../tty30 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:31 -> ../tty31 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:32 -> ../tty32 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:33 -> ../tty33 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:34 -> ../tty34 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:35 -> ../tty35 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:36 -> ../tty36 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:37 -> ../tty37 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:38 -> ../tty38 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:39 -> ../tty39 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 4:4 -> ../tty4 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:40 -> ../tty40 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:41 -> ../tty41 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:42 -> ../tty42 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:43 -> ../tty43 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:44 -> ../tty44 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:45 -> ../tty45 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:46 -> ../tty46 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:47 -> ../tty47 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:48 -> ../tty48 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:49 -> ../tty49 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 4:5 -> ../tty5 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:50 -> ../tty50 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:51 -> ../tty51 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:52 -> ../tty52 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:53 -> ../tty53 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:54 -> ../tty54 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:55 -> ../tty55 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:56 -> ../tty56 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:57 -> ../tty57 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:58 -> ../tty58 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:59 -> ../tty59 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 4:6 -> ../tty6 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:60 -> ../tty60 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:61 -> ../tty61 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:62 -> ../tty62 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:63 -> ../tty63 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:64 -> ../ttyS0 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:65 -> ../ttyS1 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:66 -> ../ttyS2 lrwxrwxrwx 1 0 0 8 Jan 1 00:00 4:67 -> ../ttyS3 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 4:7 -> ../tty7 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 4:8 -> ../tty8 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 4:9 -> ../tty9 lrwxrwxrwx 1 0 0 6 Jan 1 00:00 5:0 -> ../tty lrwxrwxrwx 1 0 0 10 Jan 1 00:00 5:1 -> ../console lrwxrwxrwx 1 0 0 7 Jan 1 00:00 5:2 -> ../ptmx lrwxrwxrwx 1 0 0 6 Jan 1 00:00 7:0 -> ../vcs lrwxrwxrwx 1 0 0 7 Jan 1 00:00 7:1 -> ../vcs1 lrwxrwxrwx 1 0 0 7 Jan 1 00:00 7:128 -> ../vcsa lrwxrwxrwx 1 0 0 8 Jan 1 00:00 7:129 -> ../vcsa1 /dev/disk: total 0 drwxr-xr-x 2 0 0 80 Jan 1 00:00 by-id drwxr-xr-x 2 0 0 80 Jan 1 00:00 by-path drwxr-xr-x 2 0 0 60 Jan 1 00:00 by-uuid /dev/disk/by-id: total 0 lrwxrwxrwx 1 0 0 9 Jan 1 00:00 scsi-0QEMU_QEMU_HARDDISK_appliance -> ../../sdb lrwxrwxrwx 1 0 0 9 Jan 1 00:00 scsi-0QEMU_QEMU_HARDDISK_hd0 -> ../../sda /dev/disk/by-path: total 0 lrwxrwxrwx 1 0 0 9 Jan 1 00:00 platform-e0008000.pci-pci-0000:00:01.0-virtio-pci-virtio0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 0 0 9 Jan 1 00:00 platform-e0008000.pci-pci-0000:00:01.0-virtio-pci-virtio0-scsi-0:0:1:0 -> ../../sdb /dev/disk/by-uuid: total 0 lrwxrwxrwx 1 0 0 9 Jan 1 00:00 2b15e154-a156-47b2-bddb-763bda47aecd -> ../../sdb /dev/mapper: total 0 crw------- 1 0 0 10, 236 Jan 1 00:00 control /dev/net: total 0 crw-rw-rw- 1 0 0 10, 200 Jan 1 00:00 tun /dev/virtio-ports: total 0 lrwxrwxrwx 1 0 0 11 Jan 1 00:00 org.libguestfs.channel.0 -> ../vport0p1 rootfs / rootfs rw 0 0 proc /proc proc rw,relatime 0 0 /dev/root / ext2 rw,noatime,errors=continue 0 0 /proc /proc proc rw,relatime 0 0 /sys /sys sysfs rw,relatime 0 0 tmpfs /run tmpfs rw,nosuid,relatime,size=152208k,mode=755 0 0 /dev /dev devtmpfs rw,relatime,size=346896k,nr_inodes=86724,mode=755 0 0 No volume groups found No volume groups found 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 brd 127.255.255.255 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: tunl0: <NOARP> mtu 1480 qdisc noop state DOWN link/ipip 0.0.0.0 brd 0.0.0.0 3: sit0: <NOARP> mtu 1480 qdisc noop state DOWN link/sit 0.0.0.0 brd 0.0.0.0 Module Size Used by libcrc32c 1835 0 crc_itu_t 1782 0 virtio_pci 11351 0 virtio_scsi 13738 1 virtio_net 25737 0 virtio_console 29304 0 virtio_blk 17990 0 virtio_ring 9534 5 virtio_blk,virtio_net,virtio_pci,virtio_console,virtio_scsi virtio 7797 5 virtio_blk,virtio_net,virtio_pci,virtio_console,virtio_scsi crc32c 2796 1 Thu Jan 1 00:00:04 UTC 1970 clocksource: timebase uptime: 4.28 4031.62 verbose daemon enabled linux commmand line: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm trying to open virtio-serial channel '/dev/virtio-ports/org.libguestfs.channel.0' udevadm settle libguestfs: recv_from_daemon: received GUESTFS_LAUNCH_FLAG libguestfs: [05013ms] appliance is up Guest launched OK. guestfsd: main_loop: new request, len 0x3c udevadm settle parted -s -- /dev/sda mklabel msdos mkpart primary 128s -128s Warning: The resulting partition is not properly aligned for best performance. udevadm settle guestfsd: main_loop: proc 210 (part_disk) took 0.39 seconds guestfsd: main_loop: new request, len 0x50 wipefs --help wipefs -a /dev/sda1 mke2fs -t ext2 -F /dev/sda1 mke2fs 1.42.8 (20-Jun-2013) guestfsd: main_loop: proc 278 (mkfs) took 0.18 seconds guestfsd: main_loop: new request, len 0x40 mount -o /dev/sda1 /sysroot/ guestfsd: main_loop: proc 1 (mount) took 0.06 seconds guestfsd: main_loop: new request, len 0x34 guestfsd: main_loop: proc 3 (touch) took 0.00 seconds guestfsd: main_loop: new request, len 0x28 umount /sysroot fsync /dev/sda libguestfs: sending SIGTERM to process 12770 libguestfs: closing guestfs handle 0x100310b8 (state 0) libguestfs: command: run: rm libguestfs: command: run: \ -rf /tmp/libguestfs7YXFMQ ===== TEST FINISHED OK ===== Thanks On Fri, Jun 13, 2014 at 10:24 AM, abhishek jain <ashujain9727@gmail.com> wrote:
Hi Rich
Thanks for the support you are providing.I have enabled virtio modules with (m) option now and below are the updated logs of libguestfs..
upermin: mounting /proc supermin: uptime: 1.10 1567.28
supermin: ext2 mini initrd starting up: 5.1.8 zlib supermin: cmdline: panic=1 console=ttyS0 udevtimeout=6000 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 TERM=xterm supermin: mounting /sys supermin: internal insmod crc32c.ko [ 1.136268] crc32c: disagrees about version of symbol crypto_unregister_shash [ 1.138006] crc32c: Unknown symbol crypto_unregister_shash (err -22) [ 1.139571] crc32c: disagrees about version of symbol crypto_register_shash [ 1.141446] crc32c: Unknown symbol crypto_register_shash (err -22) insmod: init_module: crc32c.ko: Invalid parameters supermin: internal insmod virtio.ko [ 1.145450] virtio: disagrees about version of symbol device_register [ 1.147131] virtio: Unknown symbol device_register (err -22) [ 1.148588] virtio: disagrees about version of symbol dev_set_name [ 1.150091] virtio: Unknown symbol dev_set_name (err -22) [ 1.151494] virtio: disagrees about version of symbol device_unregister [ 1.153274] virtio: Unknown symbol device_unregister (err -22) insmod: init_module: virtio.ko: Invalid parameters supermin: internal insmod virtio_ring.ko [ 1.157919] virtio_ring: disagrees about version of symbol dev_warn [ 1.159622] virtio_ring: Unknown symbol dev_warn (err -22) [ 1.161131] virtio_ring: disagrees about version of symbol dev_err [ 1.162845] virtio_ring: Unknown symbol dev_err (err -22) insmod: init_module: virtio_ring.ko: Invalid parameters supermin: internal insmod virtio_blk.ko [ 1.167444] virtio_blk: disagrees about version of symbol device_create_file [ 1.169352] virtio_blk: Unknown symbol device_create_file (err -22) [ 1.171105] virtio_blk: disagrees about version of symbol dev_notice [ 1.172818] virtio_blk: Unknown symbol dev_notice (err -22) insmod: init_module: virtio_blk.ko: Invalid parameters supermin: internal insmod virtio_console.ko [ 1.177496] virtio_console: Unknown symbol hvc_instantiate (err 0) [ 1.179128] virtio_console: Unknown symbol hvc_alloc (err 0) [ 1.180676] virtio_console: Unknown symbol __hvc_resize (err 0) [ 1.182345] virtio_console: disagrees about version of symbol kobject_uevent [ 1.184209] virtio_console: Unknown symbol kobject_uevent (err -22) [ 1.185952] virtio_console: disagrees about version of symbol device_destroy [ 1.187786] virtio_console: Unknown symbol device_destroy (err -22) [ 1.189594] virtio_console: Unknown symbol hvc_remove (err 0) [ 1.191122] virtio_console: Unknown symbol hvc_kick (err 0) [ 1.192647] virtio_console: disagrees about version of symbol dev_warn [ 1.194444] virtio_console: Unknown symbol dev_warn (err -22) [ 1.196488] virtio_console: disagrees about version of symbol dev_err [ 1.198096] virtio_console: Unknown symbol dev_err (err -22) [ 1.199528] virtio_console: disagrees about version of symbol device_create [ 1.201388] virtio_console: Unknown symbol device_create (err -22) [ 1.202902] virtio_console: Unknown symbol hvc_poll (err 0) insmod: init_module: virtio_console.ko: Unknown symbol in module supermin: internal insmod virtio_net.ko [ 1.207732] virtio_net: disagrees about version of symbol eth_type_trans [ 1.209575] virtio_net: Unknown symbol eth_type_trans (err -22) [ 1.211019] virtio_net: disagrees about version of symbol netif_carrier_on [ 1.212874] virtio_net: Unknown symbol netif_carrier_on (err -22) [ 1.214353] virtio_net: disagrees about version of symbol netif_set_real_num_tx_queues [ 1.216418] virtio_net: Unknown symbol netif_set_real_num_tx_queues (err -22) [ 1.218159] virtio_net: disagrees about version of symbol eth_validate_addr [ 1.220016] virtio_net: Unknown symbol eth_validate_addr (err -22) [ 1.221514] virtio_net: disagrees about version of symbol register_netdev [ 1.223387] virtio_net: Unknown symbol register_netdev (err -22) [ 1.225142] virtio_net: disagrees about version of symbol skb_to_sgvec [ 1.226813] virtio_net: Unknown symbol skb_to_sgvec (err -22) [ 1.228288] virtio_net: disagrees about version of symbol eth_mac_addr [ 1.229869] virtio_net: Unknown symbol eth_mac_addr (err -22) [ 1.231424] virtio_net: disagrees about version of symbol __netdev_alloc_skb [ 1.233164] virtio_net: Unknown symbol __netdev_alloc_skb (err -22) [ 1.234708] virtio_net: disagrees about version of symbol unregister_netdev [ 1.236558] virtio_net: Unknown symbol unregister_netdev (err -22) [ 1.238062] virtio_net: disagrees about version of symbol free_netdev [ 1.239754] virtio_net: Unknown symbol free_netdev (err -22) [ 1.241185] virtio_net: disagrees about version of symbol dev_kfree_skb_any [ 1.242849] virtio_net: Unknown symbol dev_kfree_skb_any (err -22) [ 1.244566] virtio_net: disagrees about version of symbol __napi_schedule [ 1.246196] virtio_net: Unknown symbol __napi_schedule (err -22) [ 1.247668] virtio_net: disagrees about version of symbol skb_put [ 1.249315] virtio_net: Unknown symbol skb_put (err -22) [ 1.250629] virtio_net: disagrees about version of symbol netif_napi_add [ 1.252301] virtio_net: Unknown symbol netif_napi_add (err -22) [ 1.253868] virtio_net: disagrees about version of symbol ethtool_op_get_link [ 1.255579] virtio_net: Unknown symbol ethtool_op_get_link (err -22) [ 1.257192] virtio_net: disagrees about version of symbol dev_warn [ 1.258819] virtio_net: Unknown symbol dev_warn (err -22) [ 1.260210] virtio_net: disagrees about version of symbol netif_set_real_num_rx_queues [ 1.262200] virtio_net: Unknown symbol netif_set_real_num_rx_queues (err -22) [ 1.263962] virtio_net: disagrees about version of symbol skb_trim [ 1.265564] virtio_net: Unknown symbol skb_trim (err -22) [ 1.266920] virtio_net: disagrees about version of symbol netif_carrier_off [ 1.268638] virtio_net: Unknown symbol netif_carrier_off (err -22) [ 1.270149] virtio_net: disagrees about version of symbol __netif_schedule [ 1.272013] virtio_net: Unknown symbol __netif_schedule (err -22) [ 1.273501] virtio_net: disagrees about version of symbol alloc_etherdev_mqs [ 1.275321] virtio_net: Unknown symbol alloc_etherdev_mqs (err -22) [ 1.276891] virtio_net: disagrees about version of symbol kfree_skb [ 1.278407] virtio_net: Unknown symbol kfree_skb (err -22) [ 1.279942] virtio_net: disagrees about version of symbol skb_partial_csum_set [ 1.281661] virtio_net: Unknown symbol skb_partial_csum_set (err -22) [ 1.283358] virtio_net: disagrees about version of symbol napi_complete [ 1.285016] virtio_net: Unknown symbol napi_complete (err -22) [ 1.286457] virtio_net: disagrees about version of symbol netdev_notify_peers [ 1.288347] virtio_net: Unknown symbol netdev_notify_peers (err -22) [ 1.289889] virtio_net: disagrees about version of symbol consume_skb [ 1.291580] virtio_net: Unknown symbol consume_skb (err -22) [ 1.293018] virtio_net: disagrees about version of symbol netif_receive_skb [ 1.294684] virtio_net: Unknown symbol netif_receive_skb (err -22) insmod: init_module: virtio_net.ko: Invalid parameters supermin: internal insmod virtio_scsi.ko [ 1.299384] virtio_scsi: disagrees about version of symbol dev_printk [ 1.301099] virtio_scsi: Unknown symbol dev_printk (err -22) insmod: init_module: virtio_scsi.ko: Invalid parameters supermin: internal insmod virtio_pci.ko [ 1.305167] virtio_pci: module is already loaded insmod: init_module: virtio_pci.ko: Invalid parameters supermin: internal insmod crc-itu-t.ko supermin: internal insmod libcrc32c.ko [ 1.310248] libcrc32c: disagrees about version of symbol crypto_shash_update [ 1.312136] libcrc32c: Unknown symbol crypto_shash_update (err -22) [ 1.313686] libcrc32c: disagrees about version of symbol crypto_destroy_tfm [ 1.315484] libcrc32c: Unknown symbol crypto_destroy_tfm (err -22) [ 1.317041] libcrc32c: disagrees about version of symbol crypto_alloc_shash [ 1.318822] libcrc32c: Unknown symbol crypto_alloc_shash (err -22) insmod: init_module: libcrc32c.ko: Invalid parameters func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 func: main line 171 supermin: waiting another 1024000000 ns for /sys/block/sdb/dev to appear ^C
Please help regarding this.
On Thu, Jun 12, 2014 at 5:33 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
Hi Rich
I have all the virtio modules available in the kernel but I'm getting
On Thu, Jun 12, 2014 at 05:08:37PM +0530, abhishek jain wrote: the
same result .
It doesn't appear to be using any kernel modules. I would have expected to see output such as this:
supermin: internal insmod virtio.ko
It seems as if you might not be setting SUPERMIN_MODULES; or maybe you don't have any modules that match the internal list in supermin:
https://github.com/libguestfs/supermin/blob/master/src/ext2_initrd.ml#L33
Anyhow, virtio-scsi definitely isn't working, as you can see from the appliance kernel output. You can force the direct backend to use virtio-blk instead by editing the function src/launch-direct.c: qemu_supports_virtio_scsi.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
On Fri, Jun 13, 2014 at 11:02:57AM +0530, abhishek jain wrote:
===== TEST FINISHED OK =====
Looks good to me :-) Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Thanks a lot for the help :-) On Fri, Jun 13, 2014 at 12:16 PM, Richard W.M. Jones <rjones@redhat.com> wrote:
On Fri, Jun 13, 2014 at 11:02:57AM +0530, abhishek jain wrote:
===== TEST FINISHED OK =====
Looks good to me :-)
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
participants (2)
-
abhishek jain -
Richard W.M. Jones