perfsonar / perl-shared

Shared libraries used by perl packages and referenced as a submodule in many git repos
Apache License 2.0
7 stars 3 forks source link

Adding Xen virtualised host detection. #18

Closed laeti-tia closed 8 years ago

laeti-tia commented 8 years ago

Andy, here is my patch to detect Xen guests. Let me know if you think there's something missing or should be done differently.

Thanks,

laeti-tia commented 8 years ago

Interesting information about other virtualisation technologies: http://www.dmo.ca/blog/detecting-virtualization-on-linux/

arlake228 commented 8 years ago

Interesting blog. I also added detection for Microsoft Virtual PC since I saw a few of those in the LS as well.

vvidic commented 8 years ago

On Mon, May 16, 2016 at 04:36:30AM -0700, Antoine Delvaux wrote:

Interesting information about other virtualisation technologies: http://www.dmo.ca/blog/detecting-virtualization-on-linux/

There is already a few programs for detecting virtualization, if we want to use them.

Debian:

imvirt - detects several virtualizations imvirt-helper - helper programs to detect several virtualizations libimvirt-perl - Perl module for detecting several virtualizations virt-what - detect if we are running in a virtual machine

CentOS:

perl-Sys-Detect-Virtualization.x86_64 : Library to detect if a UNIX system is running as a virtual : machine virt-what.x86_64 : Detect if we are running in a virtual machine virtdetect.noarch : Detect if a UNIX system is running as a virtual machine

Valentin Vidic Computer Systems Engineer - Expert Department of Computer Infrastructure and Services Croatian Academic and Research Network - CARNet Josipa Marohnica 5, HR-10000 Zagreb, Croatia tel: +385 1 6661 714, fax. +385 1 6661 635 gsm: +385 91 2480 919 www.CARNet.hr