Issue #20759 has been updated by Gabor Garami.
Roger Kennedy wrote: > I've had a number of problems with facter virt detection on Xen. When I last > checked, I believe there was a push to abstract the virt detection to > `virt-what` #10625, #20017. > > Do you have `virt-what` installed? Yeah, and it says 'xen, xen-dom0' for my domU :-) <code> [root@hirlevel2 ~] # virt-what xen xen-dom0 [root@hirlevel2 ~] # facter virtual xen0 [root@hirlevel2 ~] # cat /sys/hypervisor/uuid 712d8274-d1e6-e466-9f62-d7912ab51ac7 </code> However: <code> hron@xen8 ~ $ sudo -i [root@xen8 ~] # virt-what xen xen-dom0 [root@xen8 ~] # facter virtual xen0 [root@xen8 ~] # cat /sys/hypervisor/uuid 00000000-0000-0000-0000-000000000000 </code> First machine is a domU, second one is a dom0. ---------------------------------------- Bug #20759: Xen virtualization incorrectly detected when DomU has Dom0-capable kernel https://projects.puppetlabs.com/issues/20759#change-94613 * Author: Gabor Garami * Status: Needs More Information * Priority: Normal * Assignee: Gabor Garami * Category: * Target version: * Keywords: * Branch: * Affected Facter version: 1.7.1 ---------------------------------------- The problem: The Xen virtualization detection says dom0 if domU runs a Dom0-capable kernel. The main problem is checking existence of /dev/xen/evtchn is not enough, the correct detection must include checking the content of /sys/hypervisor/uuid, and if it isn't contains all-zero UUID, then the system is really xenU not xen0. -- 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://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/groups/opt_out.
