LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices



Reply
 
Search this Thread
Old 11-27-2013, 08:18 AM   #1
slappisMekaniker
Member
 
Registered: Nov 2013
Location: The Blue planet
Distribution: Slackware 14.0
Posts: 54

Rep: Reputation: 0
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...
Thanks for your help in advance..
 
Old 11-27-2013, 10:35 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,773

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
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.
 
Old 11-27-2013, 10:46 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
Dont we need the kernel header as well?
 
Old 11-27-2013, 01:10 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 1,773

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Actually, should be building qemu instead of qemu-kvm. qemu-kvm is deprecated. The kvm module is already present in most kernels.
 
Old 11-27-2013, 01:23 PM   #5
slappisMekaniker
Member
 
Registered: Nov 2013
Location: The Blue planet
Distribution: Slackware 14.0
Posts: 54

Original Poster
Rep: Reputation: 0
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:~#

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
 
Old 11-28-2013, 02:43 AM   #6
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
Look for the openssl or gnutls library package.
 
Old 11-28-2013, 06:40 AM   #7
slappisMekaniker
Member
 
Registered: Nov 2013
Location: The Blue planet
Distribution: Slackware 14.0
Posts: 54

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
Look for the openssl or gnutls library package.
Both are already installed with full installation at the start..
 
Old 11-28-2013, 11:00 PM   #8
slappisMekaniker
Member
 
Registered: Nov 2013
Location: The Blue planet
Distribution: Slackware 14.0
Posts: 54

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zhjim View Post
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.

Last edited by slappisMekaniker; 11-28-2013 at 11:00 PM. Reason: missing link
 
Old 11-29-2013, 12:38 AM   #9
slappisMekaniker
Member
 
Registered: Nov 2013
Location: The Blue planet
Distribution: Slackware 14.0
Posts: 54

Original Poster
Rep: Reputation: 0
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???

Last edited by slappisMekaniker; 11-29-2013 at 01:18 AM.
 
Old 11-30-2013, 10:47 AM   #10
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,520

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
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.

Last edited by allend; 11-30-2013 at 10:56 AM.
 
Old 11-30-2013, 01:26 PM   #11
slappisMekaniker
Member
 
Registered: Nov 2013
Location: The Blue planet
Distribution: Slackware 14.0
Posts: 54

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by allend View Post
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 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 View Post
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
 
Old 11-30-2013, 07:36 PM   #12
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,520

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
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*
 
Old 11-30-2013, 10:58 PM   #13
huynhquocdat
LQ Newbie
 
Registered: Nov 2013
Posts: 1

Rep: Reputation: 0
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
 
Old 12-01-2013, 01:40 AM   #14
slappisMekaniker
Member
 
Registered: Nov 2013
Location: The Blue planet
Distribution: Slackware 14.0
Posts: 54

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by huynhquocdat View Post
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
 
Old 12-01-2013, 01:42 AM   #15
slappisMekaniker
Member
 
Registered: Nov 2013
Location: The Blue planet
Distribution: Slackware 14.0
Posts: 54

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by allend View Post
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!
 
  


Reply

Tags
kvm, qemu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 11:46 AM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 08:41 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 03:05 PM
LXer: Attempt of qemu-kvm-0.14 patching via Gerds Hoffmann spice/qxl: locking fix for qemu-kvm on LXer Syndicated Linux News 0 03-14-2011 02:20 PM
Error while installing qemu (qemu-kvm-0.13.0) in rhel 5.3 birla.sunil Linux - Virtualization and Cloud 2 10-19-2010 04:56 AM


All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration