Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 117585 Details for
Bug 157987
KVM user space (new ebuild)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
kvm-21.ebuild
kvm-21.ebuild (text/plain), 3.63 KB, created by
Matthew Schultz
on 2007-04-28 20:49:01 UTC
(
hide
)
Description:
kvm-21.ebuild
Filename:
MIME Type:
Creator:
Matthew Schultz
Created:
2007-04-28 20:49:01 UTC
Size:
3.63 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit linux-mod eutils > >SRC_URI="http://easynews.dl.sourceforge.net/sourceforge/${PN}/${P}.tar.gz" > >DESCRIPTION="KVM (for Kernel-based Virtual Machine) is a full virtualization solution for Linux on x86 hardware containing virtualization extensions (Intel VT or AMD-V)" >HOMEPAGE="http://kvm.qumranet.com/kvmwiki" > >LICENSE="GPL-2" >SLOT="0" >KEYWORDS="~x86 ~amd64" >IUSE="" >DEPEND=">=media-libs/libsdl-1.2.11 > >=media-libs/alsa-lib-1.0.13 > app-text/texi2html > !app-emulation/qemu > dev-lang/python > >=sys-fs/e2fsprogs-1.39" >RDEPEND="${DEPEND} > sys-apps/usermode-utilities" > >RESTRICT="nostrip" > >BUILD_TARGETS="all" >MODULE_NAMES="kvm(extra:"${S}"/kernel:"${S}"/kernel) > kvm-intel(extra:"${S}"/kernel:"${S}"/kernel) > kvm-amd(extra:"${S}"/kernel:"${S}"/kernel)" > >QA_TEXTRELS="usr/bin/qemu > usr/bin/qemu-system-sparc > usr/bin/qemu-system-arm > usr/bin/qemu-system-ppc > usr/bin/qemu-system-mips > usr/bin/qemu-system-x86_64" >QA_EXECSTACK="usr/share/kvm/openbios-sparc32" >QA_WX_LOAD="usr/share/kvm/openbios-sparc32" > >pkg_setup() { > #Don't continue if the KVM modules that come with the kernel are compiled > if linux_chkconfig_present KVM ; then > eerror "kvm-${PV} doesn't work with the kernel modules" > die "kvm module is included in the kernel" > fi >} > >src_unpack() { > unpack ${A} > cd "${S}" > epatch ${FILESDIR}/kvm-configure-21.patch > epatch ${FILESDIR}/kvm-kvm-21.patch > epatch ${FILESDIR}/qemu-configure-21.patch > epatch ${FILESDIR}/qemu-makefile.target-21.patch > epatch ${FILESDIR}/qemu-vl.c-21.patch > epatch ${FILESDIR}/qemu-helper.c-21.patch > epatch ${FILESDIR}/qemu-qemu-kvm.c-21.patch > epatch ${FILESDIR}/scripts-qemu-ifup-21.patch >} > >src_compile() { > #fix make install to not install modules > sed -i '/$(kcmd)/d' ${WORKDIR}/${P}/Makefile > > linux-mod_pkg_setup > conf_opts="--prefix=/usr" > > #Check if kvm is NOT part of the kernel and compile the module > linux_chkconfig_present KVM > ./configure \ > ${conf_opts} \ > || die "Configure failed" > linux-mod_src_compile > emake user qemu || die "make failed" >} > >src_install() { > #fix make install to not install modules > sed -i '/$(kcmd)/d' ${WORKDIR}/${P}/Makefile > make install DESTDIR="${D}" || die > if ! linux_chkconfig_present KVM; then > linux-mod_src_install > fi > exeinto /usr/bin/ > doexe ${S}/kvm ${S}/kvm_stat > mv ${D}/usr/share/doc/qemu ${D}/usr/share/doc/kvm > mv ${D}/usr/share/man/man1/qemu.1 ${D}/usr/share/man/man1/kvm.1 > insinto /etc/udev/rules.d/ > doins ${WORKDIR}/${P}/scripts/65-kvm.rules > insinto /etc/kvm/ > insopts -m0755 > doins ${WORKDIR}/${P}/scripts/qemu-ifup > >} > >pkg_postinst() { > linux-mod_pkg_postinst > enewgroup kvm > > elog "Make sure you have the kernel module loaded before running kvm." > elog "The easiest way to ensure that the kernel module is loaded is to" > elog "load it on boot:" > elog "For AMD CPUs:" > elog "echo kvm-amd >> /etc/modules.autoload.d/kernel-2.6" > elog "For Intel CPUs:" > elog "echo kvm-intel >> /etc/modules.autoload.d/kernel-2.6" > echo > elog "Make sure your user is in the 'kvm' group" > elog "Just run 'gpasswd -a <USER> kvm', then have <USER> re-login." > echo > elog "If qemu complains about not having a 1024hz timer, then run this:" > elog "echo dev.rtc.max-user-freq=1024 >> /etc/sysctl.conf" > echo > elog "If you want network support in the guest OS, you'll need to make" > elog "sure you compile in support for 802.1d Ethernet Bridging in the " > elog "kernel, set up a bridge network interface and make sure you" > elog "compile Universal TUN/TAP device driver support as a kernel module" > elog "and make it load on boot:" > elog "echo tun >> /etc/modules.autoload.d/kernel-2.6" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 157987
:
108867
|
109180
|
109596
|
109612
|
109613
|
109614
|
109615
|
109929
|
110542
|
110544
|
111591
|
111593
|
111594
|
111721
|
111722
|
111725
|
111726
|
111727
|
111730
|
111731
|
111732
|
117585
|
117587
|
117589
|
117590
|
117592
|
117594
|
117595
|
117596
|
117597
|
119450
|
119452
|
119454
|
120155
|
120283
|
120488
|
121167
|
121170
|
121172
|
121174
|
121176
|
121177
|
121179
|
121181
|
121183
|
124934
|
124936
|
124937
|
124939
|
125905
|
125989
|
125991
|
125993
|
125994
|
125996
|
126072
|
130577
|
131298
|
132381
|
132382
|
132422
|
132486
|
132866
|
132899
|
133157
|
133510
|
133515
|
133859
|
137185
|
137723
|
137946
|
139324
|
139488
|
140913