如何确保虚拟机在 XEN 上处于准虚拟化模式?

如何确保虚拟机在 XEN 上处于准虚拟化模式?

我有一台运行 XEN 的服务器,其中 ubuntu 12.04 作为域 0。

Intel VT 默认开启,我不想以虚拟机的方式运行任何 Windows 操作系统。所以

1. how can i makesure that all the created VM will be in
paravirtualized mode even with VT enabled?

我听说在完全虚拟化中,虚拟机管理程序需要努力模拟所有底层硬件,与 para 模式相比,这可能会降低过多 i/o 特定应用程序的性能。

2.Since i am running only Linux VMs do i really need to enable VT
support?

3.Can i be able to run Linux VM in para mode with VT enabled?

4.Will simply turning on VT support changes virtualization from para to full virtualization??

5.Will there be any performance improvement for VM running Linux OS if VT is enabled?

答案1

  1. 使用 virt-install 或任何虚拟化产品/工具创建虚拟机时,您需要指定所需的虚拟化类型。例如:使用 virt-install -v 可确保使用 hvm 机器,而 -p 可为您提供半虚拟化机器。

  2. 如果存在 VT 支持,则对于 Linux 来说,还需要启用 VT 支持。

  3. 是的

  4. 是的。启用 VT 并选择 VM 类型后,虚拟化类型会发生变化(显然是在存在虚拟机管理程序的情况下)。

  5. 是的。这应该会有所不同。

答案2

1. how can i makesure that all the created VM will be inparavirtualized mode even with VT enabled?

创建虚拟机时请指定其处于 para 还是 full virtmode。要使虚拟机在 para 模式下运行,它需要从网上下载的特殊内核。因此从 CD 安装可能不起作用。

2.Since i am running only Linux VMs do i really need to enable VT support?

如果在 para 模式下运行 vm,则不需要 VT。

3.Can i be able to run Linux VM in para mode with VT enabled?

是的,即使启用了 VT,Linux Vms 也可以在 para 模式下运行。

 4.Will simply turning on VT support changes virtualization from para to full virtualization??

不,这意味着我们可以同时运行 para 和 full vms。我们可以选择在完整模式还是 para 模式下使用 vm。

5.Will there be any performance improvement for VM running Linux OS if VT is enabled?

如果 VM 处于 para 模式,启用 VT 对 VM 没有影响,但只有在 VT 支持的情况下才能安装 HVM。

答案3

如果你想知道半虚拟化的基本实用步骤,那么请阅读这篇文章,这将帮助你了解你想要什么http://www.howtoforge.com/paravirtualization-with-xen-on-centos-5.4-x86_64

相关内容