Issue #2067 has been updated by Tais Hansen.
Gary Law wrote: > Not sure how to detect HyperV or Xen. At least with kernel 2.6.30 and kvm-88 the "hypervisor" flag is set in cpuinfo cpu flags inside kvm guests. I'm also seeing patches here and there to add a "hypervisor" field to cpuinfo to show which hypervisor (ie. kvm, vmware, etc) but it doesn't seem to be accepted in the kernel yet. <pre> processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 3 model name : Pentium II (Klamath) stepping : 3 cpu MHz : 2493.908 cache size : 2048 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu de pse tsc msr pae mce cx8 apic sep pge cmov mmx fxsr sse sse2 pni hypervisor bogomips : 4987.81 clflush size : 32 power management: </pre> ---------------------------------------- Bug #2067: Virtual fact does not work for Xen, HyperV, kvm http://projects.reductivelabs.com/issues/2067 Author: Gary Law Status: Accepted Priority: Normal Assigned to: Category: library Target version: 1.6.0 Complexity: Unknown Keywords: Virtual VMWare Zones Xen HyperV kvm Hi The 'virtual' fact seems to report only for vmware. See the following from the mailing list (re Xen): 2009/3/9 Trevor Hemsley <[email protected]> manufacturer => Xen virtual => physical It appears that $virtual doesn't work on Xen :( It appears it doesn' work under Debian/Windows HyperV either:- g...@dv01:~ $ sudo facter virtual physical g...@dv01:~ $ sudo facter -v 1.5.1 g...@dv01:~ $ sudo facter operatingsystem Debian g...@dv01:~ $ It also doesn't seem to recognise a Solaris zone as a virtual, although it's arguable if it is or not:- g...@sv01:~ $ facter -v 1.5.2 g...@sv01:~ $ facter operatingsystem Solaris g...@sv01:~ $ sudo facter virtual g...@sv01:~ $ To detect a non-Global zone on Solaris, run the zonecfg command as root -- it will return exit code 1:- g...@sv01:~ $ zonecfg zonecfg can only be run from the global zone. g...@sv01:~ $ echo $? 1 Not sure how to detect HyperV or Xen. Gary -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://reductivelabs.com/redmine/my/account --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
