简体   繁体   English

从源代码构建KVM

[英]Build KVM from source

I got kvm source using git clone git://git.kernel.org/pub/scm/virt/kvm/kvm.git . 我使用git clone git://git.kernel.org/pub/scm/virt/kvm/kvm.git获得了kvm源代码。

I want to play around with the kvm core in order to add and/or remove features and each build to check certain VMs under kvm. 我想尝试使用kvm核心,以便添加和/或删除功能,以及每个版本以检查kvm下的某些VM。

I haven't found any info on how to do it appropriately - the installation and the un-installation of kvm. 我还没有找到有关如何正确执行操作的任何信息-安装和卸载kvm。 (All installation related answers are using "apt-get install" and all uninstallation are using "apt-get purge", which doesn't help with building from source). (所有与安装相关的答案均使用“ apt-get install”,所有卸载均使用“ apt-get purge”,这不利于从源代码构建)。

Anyone knows how to do this appropriately? 有人知道如何适当地做到这一点吗? or can reference me to a helpful source? 或可以向我推荐有用的资源?

Thank you 谢谢

As explained here , KVM is a part of the Linux kernel, transforming the OS into a hypervisor. 正如解释这里 ,KVM是Linux内核的一部分,转化的该操作系统的管理程序。 It cannot be run without using Linux. 不使用Linux不能运行它。 Indeed, the tree you are referring to is a Linux kernel. 确实,您所指的树是Linux内核。 You'd need to configure the kernel (enabling KVM), build and install it. 您需要配置内核(启用KVM),构建并安装它。

If you look for a stand-alone codebase, you can refer to the Xen or the Jailhouse hypervisors. 如果您需要独立的代码库,则可以参考XenJailhouse虚拟机管理程序。 Note that Linux is mandatory for Jailhouse. 请注意,对于Jailhouse,Linux是必需的。 For Xen, instead, there are more options for the Dom0 OS. 相反,对于Xen,Dom0 OS有更多选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM