LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   trying to install qemu-kvm but ended up with following error (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/trying-to-install-qemu-kvm-but-ended-up-with-following-error-4175486037/)

slappisMekaniker 11-27-2013 07:18 AM

trying to install qemu-kvm but ended up with following error
 
Hello everyone,
I am a new user to slackware. And decided to learn by installing the guest slackware in the slackware host. So I googled and found qemu-kvm the suitable one for the same guest and host os. So downloaded qemu-kvm at this site.

System specification:
  • slackware 14.0
  • 4GB ram
  • 500GB HD

Then un-tarred the tarball and started to compile to get the package. But ended with error.

Code:

....
qemu-kvm-1.0.1/xen-mapcache.h
qemu-kvm-1.0.1/xen-stub.c
qemu-kvm-1.0.1/xtensa-semi.c
qemu-kvm-1.0.1/EXTERNAL_DEPENDENCIES
qemu-kvm-1.0.1/KVM_VERSION
patching file kvm/scripts/65-kvm.rules
patching file hw/i8254.c
patching file hw/i8259.c
patching file qemu-options.hx
Hunk #1 succeeded at 2611 (offset -22 lines).
patching file vl.c
Hunk #2 succeeded at 2958 (offset 4 lines).
Disabling PIE due to missing toolchain support
big/little test failed

Error: zlib check failed
Make sure to have the zlib libs and headers installed.

root@slappisMekaniker:~#

So again googled to solve this but ended empty hand...:scratch:
Thanks for your help in advance..

smallpond 11-27-2013 09:35 AM

PIE error is ok. You don't need to use PIE.

The zlib error means you are missing the zlib library or header file. Install zlib and zlib-devel.

zhjim 11-27-2013 09:46 AM

Dont we need the kernel header as well?

smallpond 11-27-2013 12:10 PM

Actually, should be building qemu instead of qemu-kvm. qemu-kvm is deprecated. The kvm module is already present in most kernels.

slappisMekaniker 11-27-2013 12:23 PM

Thanks zhjim & smallpond, just found out the zlib packages and its dependencies in slackbuild repo., meanwhile they download I figured txz package of qemu-kvm in slackbuild repsoitory and installed.

Quote:

root@slappisMekaniker:~# installpkg ./qemu-kvm-1.2.0-i486-1alien1.txz
Verifying package qemu-kvm-1.2.0-i486-1alien1.txz.
Installing package qemu-kvm-1.2.0-i486-1alien1.txz:
PACKAGE DESCRIPTION:
# qemu-kvm (userspace component for kvm)
#
# kvm, or kernel-based virtual machine, is a device driver and userspace
# component for Linux that utilizes hardware virtualization extensions
# such as Intel's VT to create virtual machines running on a Linux host.
#
# qemu-kvm is the userspace component, in fact this is a modified
# version of QEMU. The device driver is already part of Slackware.
#
# qemu-kvm home: http://www.linux-kvm.org/page/Main_Page
#
Executing install script for qemu-kvm-1.2.0-i486-1alien1.txz.
Reloading udev rules
Package qemu-kvm-1.2.0-i486-1alien1.txz installed.

root@slappisMekaniker:~#
When I tried to run got again hooked up,
Quote:

root@slappisMekaniker:~# qemu
qemu: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory
root@slappisMekaniker:~#
:o
Seriously I need your help folks!!
Also that should i have to compulsorily install those zlib packages??
and couldn't able to figure header files:(

zhjim 11-28-2013 01:43 AM

Look for the openssl or gnutls library package.

slappisMekaniker 11-28-2013 05:40 AM

Quote:

Originally Posted by zhjim (Post 5071847)
Look for the openssl or gnutls library package.

Both are already installed with full installation at the start..

slappisMekaniker 11-28-2013 10:00 PM

Quote:

Originally Posted by zhjim (Post 5071847)
Look for the openssl or gnutls library package.

obviously i found out the location of the libgnutls.so file in the directory /usr/lib/libgnutls.so.28 and not as libgnutls.so.26
So, the thing to infere here is i have libgnutls.so.28, no libgnutls.so.26 so i just googled again and this time came across the target Henry's notes Blog and gotcha! The idea stated is simple and just followed it, I think I would solve this for now.:cool:

slappisMekaniker 11-28-2013 11:38 PM

After creating Simlinks in a series..
Quote:

root@slappisMekaniker:/usr/lib# ln -s ./libgnutls.so.28.10.2 libgnutls.so.26
root@slappisMekaniker:/usr/lib# qemu
qemu: error while loading shared libraries: libbluetooth.so.2: cannot open shared object file: No such file or directory
root@slappisMekaniker:/usr/lib# ln -s ./libbluetooth.so.3.12.0 libbluetooth.so.2
root@slappisMekaniker:/usr/lib# qemu
QEMU PC emulator version 0.10.0, Copyright (c) 2003-2008 Fabrice Bellard
usage: qemu [options] [disk_image]

'disk_image' is a raw hard image image for IDE hard disk 0
...
So just ran
Quote:

root@slappisMekaniker:~# qemu -cdrom /ntfs-d/SlackDVD.iso
Hurray qemu started running in a new window although there was a error
Quote:

root@slappisMekaniker:~# qemu -cdrom /ntfs-d/SlackDVD.iso
Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
Anyhow qemu ran but still i couldn't able to figure zlib and zlib-devel is what for used..
so to solve this error of kqemu just downloaded the slackbuilds and compiled the package,
but it failed with this error
Quote:

...
kqemu-1.4.0pre1/tests/head.S
kqemu-1.4.0pre1/tests/README
patching file kqemu-linux.c
patching file kqemu-linux.c
Hunk #1 succeeded at 54 (offset 1 line).
big/little test failed
Source path /tmp/SBo/kqemu-1.4.0pre1
C compiler gcc
Host C compiler gcc
make make
host CPU i386

kernel sources /lib/modules/3.2.29-smp/build
kbuild type 2.6
make -C common all
make[1]: Entering directory `/tmp/SBo/kqemu-1.4.0pre1/common'
gcc -Wall -O2 -Werror -g -D__KERNEL__ -I.. -o genoffsets genoffsets.c
genoffsets.c:19:20: fatal error: stdlib.h: No such file or directory
compilation terminated.
make[1]: *** [genoffsets] Error 1
make[1]: Leaving directory `/tmp/SBo/kqemu-1.4.0pre1/common'
make: *** [kqemu.ko] Error 2
root@slappisMekaniker:/home/slacker/Downloads/kqemu#
Could anyone help me out???

allend 11-30-2013 09:47 AM

Your sig shows you running Slackware 14.0. You need to match your Slackware version to the program version
What you want to install is qemu 1.6.0 http://slackbuilds.org/repository/14.0/system/qemu/
If you have a full Slackware 14.0 install, qemu is guaranteed to build and run without any problem or additional package installation.
Do take note of the instructions at the SlackBuilds page.
Quote:

Don't forget to load the 'kvm-intel' or 'kvm-amd' module (depending on
your processor) prior to launching qemu-system-ARCH with kvm enabled.
i.e. As root 'modprobe kvm-intel' to load the kvm-intel kernel module.
Also check that /usr/bin/qemu-kvm is a symlink to the appropriate binary for your host architecture.

slappisMekaniker 11-30-2013 12:26 PM

Quote:

Originally Posted by allend (Post 5072980)
Your sig shows you running Slackware 14.0. You need to match your Slackware version to the program version
What you want to install is qemu 1.6.0 http://slackbuilds.org/repository/14.0/system/qemu/
If you have a full Slackware 14.0 install, qemu is guaranteed to build and run without any problem or additional package installation.
Do take note of the instructions at the SlackBuilds page.

By following the above link i do downloaded the packges. When i compiled, I just got this error:doh: I absolutely have no idea what this means!!
Code:

qemu-1.6.0/dma-helpers.c
qemu-1.6.0/VERSION
qemu-1.6.0/COPYING.LIB
Disabling PIE due to missing toolchain support
big/little test failed

ERROR: User requested feature nptl
      configure was not able to find it

root@slappisMekaniker:/home/slacker/Downloads/pkgs/qemu#

Quote:

Originally Posted by allend (Post 5072980)
Also check that /usr/bin/qemu-kvm is a symlink to the appropriate binary for your host architecture.

Could you please give me a tip on how to this

allend 11-30-2013 06:36 PM

I have just built this package on Slackware 14.1 and I do not see the error you reported. The nptl is the Native Posix Thread Library, which has been supported in Slackware since version 10.2
I suspect there is a problem with the build chain in your Slackware installation. Perhaps a reinstallation is required.

To check the symlink, do 'ls -l /usr/sbin/qemu*'
You should see something like
Code:

-rwxr-xr-x 1 root root 1539832 Dec  1 11:24 /usr/bin/qemu-arm*
-rwxr-xr-x 1 root root 1543928 Dec  1 11:24 /usr/bin/qemu-armeb*
-rwxr-xr-x 1 root root  307896 Dec  1 11:24 /usr/bin/qemu-ga*
-rwxr-xr-x 1 root root 1565912 Dec  1 11:24 /usr/bin/qemu-i386*
-rwxr-xr-x 1 root root  702640 Dec  1 11:24 /usr/bin/qemu-img*
-rwxr-xr-x 1 root root  678416 Dec  1 11:24 /usr/bin/qemu-io*
lrwxrwxrwx 1 root root      18 Dec  1 11:25 /usr/bin/qemu-kvm -> qemu-system-x86_64*
-rwxr-xr-x 1 root root  682736 Dec  1 11:24 /usr/bin/qemu-nbd*
-rwxr-xr-x 1 root root 6121320 Dec  1 11:24 /usr/bin/qemu-system-arm*
-rwxr-xr-x 1 root root 5624584 Dec  1 11:24 /usr/bin/qemu-system-i386*
-rwxr-xr-x 1 root root 5703176 Dec  1 11:24 /usr/bin/qemu-system-x86_64*
-rwxr-xr-x 1 root root 1606904 Dec  1 11:24 /usr/bin/qemu-x86_64*


huynhquocdat 11-30-2013 09:58 PM

Hãy tham gia ngay v?i 166Bet l* nh* cái h*ng d?u Châu Á. Hình th?c cá d? don gi?n, d? choi, d? trúng thu?ng: Th? thao, CASINO, X? S?. Nhi?u chuong trình khuy?n mãi h?p d?n h*ng tháng cho th*nh viên. D?i ngu cham sóc khách h*ng t?n t?y, nhi?t tình, luôn dem l?i cho khách h*ng s? yên tâm m?i khi tham gia cùng 166Bet.
NHÀ CÁI 166BET.US

slappisMekaniker 12-01-2013 12:40 AM

Quote:

Originally Posted by huynhquocdat (Post 5073218)
Hãy tham gia ngay v?i 166Bet l* nh* cái h*ng d?u Châu Á. Hình th?c cá d? don gi?n, d? choi, d? trúng thu?ng: Th? thao, CASINO, X? S?. Nhi?u chuong trình khuy?n mãi h?p d?n h*ng tháng cho th*nh viên. D?i ngu cham sóc khách h*ng t?n t?y, nhi?t tình, luôn dem l?i cho khách h*ng s? yên tâm m?i khi tham gia cùng 166Bet.
NHÀ CÁI 166BET.US

what language is this?? I could see this like an encryption page.. sorry

slappisMekaniker 12-01-2013 12:42 AM

Quote:

Originally Posted by allend (Post 5073158)
I have just built this package on Slackware 14.1 and I do not see the error you reported. The nptl is the Native Posix Thread Library, which has been supported in Slackware since version 10.2
I suspect there is a problem with the build chain in your Slackware installation. Perhaps a reinstallation is required.

A reinstallation?? No way!! there must be something that i can try again! Help me pls!


All times are GMT -5. The time now is 02:21 AM.