最近弄了一天雲主機(VPS)就是想知道它是用什麼虛擬技術實現的?我所瞭解的是KVM比較多。
我一開始使用命令: dmesg,查看系統的啓動信息,我看到了有如下信息:
[ 0.000000] DMI: Xen HVM domU, BIOS 4.2.amazon 12/07/2015 [ 0.000000] Hypervisor detected: Xen HVM [ 0.000000] Xen version 4.2. [ 0.000000] Xen Platform PCI: I/O protocol version 1 [ 0.000000] Netfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated NICs. [ 0.000000] Blkfront and the Xen platform PCI driver have been compiled for this kernel: unplug emulated disks. You might have to change the root device from /dev/hd[a-d] to /dev/xvd[a-d]
從這裏我知道了這臺雲主機是使用的是xen虛擬技術實現的。另外在這個 /proc/ 目錄下也有 xen 目錄,因此我更確定了。
另外,我也在網上找到了一篇關於如何知道主機的VPS是使用什麼技術實現的文章,介紹的方法也比較多,鏈接如下: