[SOLVED] kvm slackbuild error on Slackware 13.1 (64)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
from /tmp/SBo/kvm-88/kvm/kernel/x86/external-module-compat.h:16,
from <command-line>:0:
include/linux/mm.h: In function 'virt_to_head_page':
include/linux/mm.h:318: error: implicit declaration of function '__pfn_to_page'
include/linux/mm.h:318: warning: initialization makes pointer from integer without a cast
In file included from /tmp/SBo/kvm-88/kvm/kernel/x86/../external-module-compat-comm.h:312,
from /tmp/SBo/kvm-88/kvm/kernel/x86/external-module-compat.h:16,
from <command-line>:0:
include/linux/mm.h: In function 'lowmem_page_address':
include/linux/mm.h:592: error: implicit declaration of function '__page_to_pfn'
In file included from /tmp/SBo/kvm-88/kvm/kernel/x86/../external-module-compat-comm.h:312,
from /tmp/SBo/kvm-88/kvm/kernel/x86/external-module-compat.h:16,
from <command-line>:0:
include/linux/mm.h:943:5: warning: "CONFIG_SPLIT_PTLOCK_CPUS" is not defined
In file included from include/linux/hardirq.h:10,
from include/linux/interrupt.h:12,
from /tmp/SBo/kvm-88/kvm/kernel/x86/../external-module-compat-comm.h:675,
from /tmp/SBo/kvm-88/kvm/kernel/x86/external-module-compat.h:16,
from <command-line>:0:
arch/x86/include/asm/hardirq.h: At top level:
arch/x86/include/asm/hardirq.h:29: error: requested alignment is not a constant
In file included from /tmp/SBo/kvm-88/kvm/kernel/include/linux/kvm_host.h:67,
from /tmp/SBo/kvm-88/kvm/kernel/x86/svm.c:56:
/tmp/SBo/kvm-88/kvm/kernel/include/asm/kvm_host.h: In function 'page_header':
/tmp/SBo/kvm-88/kvm/kernel/include/asm/kvm_host.h:705: warning: initialization makes pointer from integer without a cast
/tmp/SBo/kvm-88/kvm/kernel/x86/svm.c: In function 'svm_hardware_unsetup':
In file included from /tmp/SBo/kvm-88/kvm/kernel/x86/svm.c:56:
/tmp/SBo/kvm-88/kvm/kernel/include/linux/kvm_host.h: At top level:
/tmp/SBo/kvm-88/kvm/kernel/include/linux/kvm_host.h:209: error: field 'mmu_notifier' has incomplete type
/tmp/SBo/kvm-88/kvm/kernel/x86/svm.c:529: warning: passing argument 1 of '__free_pages' makes pointer from integer without a cast
include/linux/gfp.h:326: note: expected 'struct page *' but argument is of type 'int'
/tmp/SBo/kvm-88/kvm/kernel/x86/svm.c: In function 'svm_free_vcpu':
/tmp/SBo/kvm-88/kvm/kernel/x86/svm.c:758: warning: passing argument 1 of '__free_pages' makes pointer from integer without a cast
include/linux/gfp.h:326: note: expected 'struct page *' but argument is of type 'int'
/tmp/SBo/kvm-88/kvm/kernel/x86/svm.c:759: warning: passing argument 1 of '__free_pages' makes pointer from integer without a cast
include/linux/gfp.h:326: note: expected 'struct page *' but argument is of type 'int'
/tmp/SBo/kvm-88/kvm/kernel/x86/svm.c:760: warning: passing argument 1 of '__free_pages' makes pointer from integer without a cast
include/linux/gfp.h:326: note: expected 'struct page *' but argument is of type 'int'
/tmp/SBo/kvm-88/kvm/kernel/x86/svm.c:761: warning: passing argument 1 of '__free_pages' makes pointer from integer without a cast
include/linux/gfp.h:326: note: expected 'struct page *' but argument is of type 'int'
make[4]: *** [/tmp/SBo/kvm-88/kvm/kernel/x86/svm.o] Error 1
make[3]: *** [/tmp/SBo/kvm-88/kvm/kernel/x86] Error 2
make[2]: *** [_module_/tmp/SBo/kvm-88/kvm/kernel] Error 2
make[1]: *** [all] Error 2
make: *** [kvm-kmod] Error 2
bash-4.1#
..and I don't have the knowledge to understand what is wrong so any help is much appreciated.
Where do you put this commands so it's done on "boot" (rc.modules?? rc.local??)?
I saw that in FedoraCore there's a "skript" in /etc/init.d called "libvirtd" for libvirt but I cant see any hint of that in Slackware, and do you get the same "error" as I do (above) when "/usr/sbin/libvirtd %"?
Where can I change "policy" so I dont have to be "root" when starting, I have done the "groupadd" (above)?
My /home is the biggest partition so I would like to have the images there...how do I change that from the "default" /var/lib/libvirt ?
Where do you put this commands so it's done on "boot" (rc.modules?? rc.local??)?
I saw that in FedoraCore there's a "skript" in /etc/init.d called "libvirtd" for libvirt but I cant see any hint of that in Slackware, and do you get the same "error" as I do (above) when "/usr/sbin/libvirtd %"?
Where can I change "policy" so I dont have to be "root" when starting, I have done the "groupadd" (above)?
My /home is the biggest partition so I would like to have the images there...how do I change that from the "default" /var/lib/libvirt ?
All good questions. You put the modprobes and the libvirtd commands in rc.local. It would be possible to make a similar script and put it in /etc/rc.d/rc.libvirtd but if just starting the libvirt daemon by rc.local works then this shouldn't be required.
Changing policy could be done by udev, but I'm not sure how.
Changing the default for your images will probably be as easy as changing a line in a .conf file. Try searching for libvirt.conf, I would add that this is just a guess.
## for virt-manager
modprobe kvm
modprobe kvm-intel
# With kvm module you don't need kqemu. Kqemu is only
# used on computer without virtualization on processor.
# modprobe kqemu
modprobe tun
/usr/sbin/libvirtd &
..it works!
I found that the "image-directory" can be changed in /etc/libvirt/storage/default.xml
I choose a bad "title" on this thread, should have been something with "virt-manager" instead..but as I am "up and running" now I consider this "Solved".
Again, many thanks to both of you for helping me.
/Håkan
Last edited by hakan56; 06-20-2010 at 02:12 AM.
Reason: Info from "Thom1b"
What specifically got it working, I just tried to build kvm and got the same error so I found this thread saying I needed qemu-kvm and built it but get this
Ahh, yea, more searching myself shows I don't have that flag. Found another post stating I need qemu-legacy and kqemu also to emulate it, I installed those, now I just need to figure out what to do with them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.