X7ROOT File Manager
Current Path:
/usr/sbin
usr
/
sbin
/
π
..
π
accessdb
(11.55 KB)
π
addgnupghome
(3.05 KB)
π
addpart
(19.69 KB)
π
adduser
(134.39 KB)
π
agetty
(48.48 KB)
π
alternatives
(27.61 KB)
π
anacron
(35.52 KB)
π
apachectl
(4.31 KB)
π
applygnupgdefaults
(2.21 KB)
π
arp
(63.98 KB)
π
arpd
(52.98 KB)
π
arping
(23.19 KB)
π
atd
(27.17 KB)
π
atrun
(67 B)
π
audispd
(39.75 KB)
π
auditctl
(39.56 KB)
π
auditd
(125.65 KB)
π
augenrules
(3.7 KB)
π
aureport
(105.39 KB)
π
ausearch
(109.8 KB)
π
authconfig
(43.49 KB)
π
authconfig-tui
(43.49 KB)
π
autrace
(15.49 KB)
π
avcstat
(11.25 KB)
π
badblocks
(27.69 KB)
π
biosdecode
(24.15 KB)
π
blkdeactivate
(15.97 KB)
π
blkdiscard
(23.84 KB)
π
blkid
(77.92 KB)
π
blkmapd
(43.81 KB)
π
blockdev
(32.2 KB)
π
bridge
(77.61 KB)
π
btrfs
(690.59 KB)
π
btrfs-convert
(378.62 KB)
π
btrfs-debug-tree
(354.23 KB)
π
btrfs-find-root
(346.22 KB)
π
btrfs-image
(374.63 KB)
π
btrfs-map-logical
(350.27 KB)
π
btrfs-select-super
(346.2 KB)
π
btrfs-zero-log
(346.2 KB)
π
btrfsck
(690.59 KB)
π
btrfstune
(350.24 KB)
π
build-locale-archive
(860.52 KB)
π
cacertdir_rehash
(644 B)
π
capsh
(19.43 KB)
π
cbq
(32.73 KB)
π
cfdisk
(71.37 KB)
π
chcpu
(23.7 KB)
π
chgpasswd
(64.1 KB)
π
chkconfig
(40.22 KB)
π
chpasswd
(55.88 KB)
π
chronyd
(263.08 KB)
π
chroot
(32.48 KB)
π
clock
(48.44 KB)
π
clockdiff
(19.04 KB)
π
consoletype
(6.95 KB)
π
convertquota
(70.88 KB)
π
cracklib-check
(7.04 KB)
π
cracklib-format
(246 B)
π
cracklib-packer
(11.06 KB)
π
cracklib-unpacker
(7.02 KB)
π
create-cracklib-dict
(990 B)
π
crond
(68.48 KB)
π
ctrlaltdel
(11.2 KB)
π
ctstat
(20.09 KB)
π
ddns-confgen
(19.44 KB)
π
debugfs
(120.64 KB)
π
delpart
(19.69 KB)
π
depmod
(143.24 KB)
π
devlink
(64.72 KB)
π
dhclient
(414.34 KB)
π
dhclient-script
(30.38 KB)
π
dmfilemapd
(19.16 KB)
π
dmidecode
(120.2 KB)
π
dmsetup
(149.2 KB)
π
dmstats
(149.2 KB)
π
dnssec-checkds
(922 B)
π
dnssec-coverage
(924 B)
π
dnssec-dsfromkey
(56.6 KB)
π
dnssec-importkey
(52.59 KB)
π
dnssec-keyfromlabel
(60.52 KB)
π
dnssec-keygen
(64.55 KB)
π
dnssec-keymgr
(920 B)
π
dnssec-revoke
(48.46 KB)
π
dnssec-settime
(56.52 KB)
π
dnssec-signzone
(105.71 KB)
π
dnssec-verify
(48.46 KB)
π
dovecot
(370.66 KB)
π
dovecot_cpshutdown
(3.27 KB)
π
dracut
(55.83 KB)
π
dumpe2fs
(23.62 KB)
π
e2freefrag
(11.15 KB)
π
e2fsck
(250.55 KB)
π
e2image
(27.85 KB)
π
e2label
(69.41 KB)
π
e2undo
(11.32 KB)
π
e4defrag
(23.55 KB)
π
eapol_test
(1.77 MB)
π
edquota
(83.09 KB)
π
ether-wake
(73.26 KB)
π
ethtool
(293.87 KB)
π
exicyclog
(11.01 KB)
π
exigrep
(10.44 KB)
π
exim
(1.33 MB)
π
exim_checkaccess
(4.73 KB)
π
exim_dbmbuild
(82.09 KB)
π
exim_dumpdb
(134.47 KB)
π
exim_fixdb
(168.22 KB)
π
exim_lock
(64.66 KB)
π
exim_tidydb
(142.8 KB)
π
eximstats
(148.01 KB)
π
exinext
(8.02 KB)
π
exiqgrep
(5.46 KB)
π
exiqsumm
(5.07 KB)
π
exiwhat
(4.32 KB)
π
exportfs
(76.91 KB)
π
faillock
(15.02 KB)
π
fcgistarter
(23.85 KB)
π
fdformat
(11.27 KB)
π
fdisk
(195.8 KB)
π
filefrag
(15.23 KB)
π
findfs
(11.2 KB)
π
fixfiles
(11.03 KB)
π
fsck
(32.12 KB)
π
fsck.btrfs
(1.16 KB)
π
fsck.cramfs
(19.57 KB)
π
fsck.ext2
(250.55 KB)
π
fsck.ext3
(250.55 KB)
π
fsck.ext4
(250.55 KB)
π
fsck.minix
(73.32 KB)
π
fsck.xfs
(433 B)
π
fsfreeze
(11.23 KB)
π
fstrim
(40.59 KB)
π
fuser
(32.34 KB)
π
genhomedircon
(23.77 KB)
π
genhostid
(6.94 KB)
π
genl
(52.81 KB)
π
genl-ctrl-list
(11.27 KB)
π
genrandom
(11.16 KB)
π
getcap
(11.13 KB)
π
getenforce
(7.01 KB)
π
getpcaps
(7.07 KB)
π
getsebool
(11.13 KB)
π
glibc_post_upgrade.x86_64
(772.05 KB)
π
groupadd
(85.65 KB)
π
groupdel
(77.38 KB)
π
groupmems
(55.97 KB)
π
groupmod
(85.66 KB)
π
grpck
(59.93 KB)
π
grpconv
(51.73 KB)
π
grpunconv
(51.73 KB)
π
grub2-bios-setup
(1.04 MB)
π
grub2-get-kernel-settings
(2.08 KB)
π
grub2-install
(1.29 MB)
π
grub2-macbless
(1.02 MB)
π
grub2-mkconfig
(7.63 KB)
π
grub2-ofpathname
(225.5 KB)
π
grub2-probe
(1.04 MB)
π
grub2-reboot
(4 KB)
π
grub2-rpm-sort
(262.53 KB)
π
grub2-set-default
(3.46 KB)
π
grub2-setpassword
(2.96 KB)
π
grub2-sparc64-setup
(1.04 MB)
π
grubby
(71.27 KB)
π
gss-server
(23.13 KB)
π
gssproxy
(130.64 KB)
π
halt
(704.8 KB)
π
hardlink
(15.29 KB)
π
htcacheclean
(78.45 KB)
π
httpd
(2.31 MB)
π
hwclock
(48.44 KB)
π
iconvconfig
(22.15 KB)
π
iconvconfig.x86_64
(22.15 KB)
π
ifcfg
(2.99 KB)
π
ifconfig
(80.05 KB)
π
ifdown
(1.61 KB)
π
ifenslave
(19.74 KB)
π
ifstat
(40.6 KB)
π
ifup
(4.89 KB)
π
init
(1.56 MB)
π
insmod
(143.24 KB)
π
install-info
(110.42 KB)
π
installkernel
(2.69 KB)
π
intel-microcode2ucode
(11.1 KB)
π
ip
(459.59 KB)
π
ip6tables
(91.52 KB)
π
ip6tables-restore
(91.52 KB)
π
ip6tables-save
(91.52 KB)
π
ipmaddr
(19.33 KB)
π
iptables
(91.52 KB)
π
iptables-restore
(91.52 KB)
π
iptables-save
(91.52 KB)
π
iptunnel
(23.33 KB)
π
irqbalance
(48.5 KB)
π
isc-hmac-fixup
(11.2 KB)
π
kexec
(166.06 KB)
π
key.dns_resolver
(19.45 KB)
π
killall5
(23.17 KB)
π
kpartx
(39.47 KB)
π
lchage
(15.41 KB)
π
ldattach
(27.93 KB)
π
ldconfig
(952.08 KB)
π
lgroupadd
(11.28 KB)
π
lgroupdel
(11.26 KB)
π
lgroupmod
(15.44 KB)
π
lid
(15.4 KB)
π
lnewusers
(15.46 KB)
π
lnstat
(20.09 KB)
π
load_policy
(10.97 KB)
π
logrotate
(68.61 KB)
π
logsave
(11.27 KB)
π
losetup
(82.45 KB)
π
lpasswd
(15.5 KB)
π
lshw
(895.18 KB)
π
lsmod
(143.24 KB)
π
lsof
(150.57 KB)
π
luseradd
(15.38 KB)
π
luserdel
(11.3 KB)
π
lusermod
(19.43 KB)
π
lwresd
(768.04 KB)
π
makedumpfile
(376.52 KB)
π
matchpathcon
(11.19 KB)
π
mii-diag
(20.08 KB)
π
mii-tool
(19.51 KB)
π
mkdict
(246 B)
π
mkdumprd
(13.99 KB)
π
mke2fs
(94.08 KB)
π
mkfs
(11.25 KB)
π
mkfs.btrfs
(366.45 KB)
π
mkfs.cramfs
(36.16 KB)
π
mkfs.ext2
(94.08 KB)
π
mkfs.ext3
(94.08 KB)
π
mkfs.ext4
(94.08 KB)
π
mkfs.minix
(36.27 KB)
π
mkfs.xfs
(359.8 KB)
π
mkhomedir_helper
(19.05 KB)
π
mklost+found
(11.11 KB)
π
mkswap
(69.64 KB)
π
modinfo
(143.24 KB)
π
modprobe
(143.24 KB)
π
modsec-sdbm-util
(22.17 KB)
π
mount.nfs
(114.68 KB)
π
mount.nfs4
(114.68 KB)
π
mountstats
(40.59 KB)
π
mysqld
(244.14 MB)
π
mysqld-debug
(165.52 MB)
π
named
(768.04 KB)
π
named-checkconf
(32.25 KB)
π
named-checkzone
(32.06 KB)
π
named-compilezone
(32.06 KB)
π
named-journalprint
(11.13 KB)
π
nameif
(15.32 KB)
π
netreport
(10.96 KB)
π
new-kernel-pkg
(24.96 KB)
π
newusers
(93.45 KB)
π
nfsdcltrack
(40.11 KB)
π
nfsidmap
(19.32 KB)
π
nfsiostat
(23.64 KB)
π
nfsstat
(29.84 KB)
π
nl-class-add
(11.7 KB)
π
nl-class-delete
(11.55 KB)
π
nl-class-list
(11.48 KB)
π
nl-classid-lookup
(11.29 KB)
π
nl-cls-add
(11.76 KB)
π
nl-cls-delete
(11.68 KB)
π
nl-cls-list
(11.58 KB)
π
nl-link-list
(11.52 KB)
π
nl-pktloc-lookup
(11.36 KB)
π
nl-qdisc-add
(11.6 KB)
π
nl-qdisc-delete
(11.54 KB)
π
nl-qdisc-list
(11.63 KB)
π
nologin
(7.01 KB)
π
nscd
(180.02 KB)
π
nsec3hash
(11.13 KB)
π
nstat
(23.88 KB)
π
osd_login
(2.55 KB)
π
ownership
(15.04 KB)
π
packer
(11.06 KB)
π
pam_console_apply
(39.69 KB)
π
pam_tally2
(15.05 KB)
π
pam_timestamp_check
(10.97 KB)
π
paperconfig
(4.07 KB)
π
parted
(77.22 KB)
π
partprobe
(11.23 KB)
π
partx
(86.55 KB)
π
pdns_server
(98.68 MB)
π
pidof
(23.17 KB)
π
ping6
(64.63 KB)
π
pivot_root
(11.19 KB)
π
plipconfig
(11.06 KB)
π
poweroff
(704.8 KB)
π
ppp-watch
(23.2 KB)
π
pwck
(51.71 KB)
π
pwconv
(47.57 KB)
π
pwhistory_helper
(15.44 KB)
π
pwunconv
(47.59 KB)
π
quot
(70.66 KB)
π
quotacheck
(107.29 KB)
π
quotaoff
(75.03 KB)
π
quotaon
(75.03 KB)
π
quotastats
(14.03 KB)
π
rdisc
(23.17 KB)
π
rdma
(73.42 KB)
π
readprofile
(15.46 KB)
π
reboot
(704.8 KB)
π
repquota
(75.16 KB)
π
request-key
(19.41 KB)
π
resize2fs
(48.41 KB)
π
resizepart
(32.36 KB)
π
restorecon
(27.16 KB)
π
rmmod
(143.24 KB)
π
rndc
(35.88 KB)
π
rndc-confgen
(19.44 KB)
π
rotatelogs
(53 KB)
π
route
(66.6 KB)
π
routef
(173 B)
π
routel
(1.59 KB)
π
rpc.gssd
(88.73 KB)
π
rpc.idmapd
(48.13 KB)
π
rpc.mountd
(128.91 KB)
π
rpc.nfsd
(40.2 KB)
π
rpc.rquotad
(78.95 KB)
π
rpc.statd
(97.59 KB)
π
rpcbind
(60.07 KB)
π
rpcdebug
(18.05 KB)
π
rpcinfo
(27.3 KB)
π
rsyslogd
(648.45 KB)
π
rtacct
(41.93 KB)
π
rtcwake
(31.96 KB)
π
rtmon
(48.67 KB)
π
rtpr
(37 B)
π
rtstat
(20.09 KB)
π
runlevel
(704.8 KB)
π
runq
(1.33 MB)
π
runuser
(32.21 KB)
π
safe_finger
(11.08 KB)
π
sasldblistusers2
(19.26 KB)
π
saslpasswd2
(15.09 KB)
π
sefcontext_compile
(60.53 KB)
π
selabel_digest
(11.17 KB)
π
selabel_lookup
(11.14 KB)
π
selabel_lookup_best_match
(11.16 KB)
π
selabel_partial_match
(11.09 KB)
π
selinux_restorecon
(15.21 KB)
π
selinuxconlist
(11.1 KB)
π
selinuxdefcon
(11.12 KB)
π
selinuxenabled
(6.98 KB)
π
selinuxexeccon
(7.09 KB)
π
semanage
(42.76 KB)
π
semodule
(23.77 KB)
π
sendmail
(13.48 KB)
π
service
(3.17 KB)
π
sestatus
(15.02 KB)
π
setcap
(11.13 KB)
π
setenforce
(7.05 KB)
π
setfiles
(27.16 KB)
π
setquota
(83.16 KB)
π
setsebool
(14.99 KB)
π
sfdisk
(83.25 KB)
π
showmount
(19.56 KB)
π
shutdown
(704.8 KB)
π
sim_server
(10.97 KB)
π
slattach
(42.4 KB)
π
sln
(743.78 KB)
π
sm-notify
(68.43 KB)
π
smartctl
(864.48 KB)
π
smartd
(670.63 KB)
π
ss
(128.44 KB)
π
sshd
(836.88 KB)
π
sshd-keygen
(3.53 KB)
π
start-statd
(842 B)
π
suexec
(43.3 KB)
π
sulogin
(40.53 KB)
π
sushell
(67 B)
π
swaplabel
(15.31 KB)
π
swapoff
(15.53 KB)
π
swapon
(53.29 KB)
π
switch_root
(15.35 KB)
π
sys-unconfig
(184 B)
π
sysctl
(23.57 KB)
π
tc
(384.66 KB)
π
tcpd
(36.62 KB)
π
tcpdmatch
(40.83 KB)
π
telinit
(704.8 KB)
π
tracepath
(15.05 KB)
π
tracepath6
(15.05 KB)
π
try-from
(23.47 KB)
π
tsig-keygen
(19.44 KB)
π
tune2fs
(69.41 KB)
π
tuned
(3.29 KB)
π
tuned-adm
(5.22 KB)
π
udevadm
(414.27 KB)
π
umount.nfs
(114.68 KB)
π
umount.nfs4
(114.68 KB)
π
unix_chkpwd
(35.42 KB)
π
unix_update
(35.42 KB)
π
update-alternatives
(27.61 KB)
π
update-smart-drivedb
(14.34 KB)
π
useradd
(134.39 KB)
π
userdel
(93.5 KB)
π
usermod
(130.33 KB)
π
usernetctl
(11.03 KB)
π
uuserver
(14.97 KB)
π
vigr
(62.54 KB)
π
vipw
(62.54 KB)
π
virt-what
(11.57 KB)
π
visudo
(200.91 KB)
π
vmcore-dmesg
(19.28 KB)
π
vpddecode
(15.33 KB)
π
weak-modules
(31.9 KB)
π
whmapi0
(3.02 MB)
π
whmapi1
(3.02 MB)
π
whmlogin
(2.33 KB)
π
wipefs
(28.05 KB)
π
wpa_cli
(128.06 KB)
π
wpa_passphrase
(56.79 KB)
π
wpa_supplicant
(1.93 MB)
π
xfs_admin
(1.35 KB)
π
xfs_bmap
(638 B)
π
xfs_copy
(339.33 KB)
π
xfs_db
(576.38 KB)
π
xfs_estimate
(11.16 KB)
π
xfs_freeze
(767 B)
π
xfs_fsr
(31.83 KB)
π
xfs_growfs
(327.2 KB)
π
xfs_info
(472 B)
π
xfs_io
(122.68 KB)
π
xfs_logprint
(355.81 KB)
π
xfs_mdrestore
(314.81 KB)
π
xfs_metadump
(747 B)
π
xfs_mkfile
(1007 B)
π
xfs_ncheck
(650 B)
π
xfs_quota
(84.88 KB)
π
xfs_repair
(563.2 KB)
π
xfs_rtcp
(15.25 KB)
π
xqmstats
(14.03 KB)
π
xtables-multi
(91.52 KB)
π
yum-complete-transaction
(9.22 KB)
π
yumdb
(8.67 KB)
π
zdump
(14.02 KB)
π
zic
(50.02 KB)
π
zramctl
(82.23 KB)
Editing: virt-what
#!/bin/sh - # virt-what. Generated from virt-what.in by configure. # Copyright (C) 2008-2019 Red Hat Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # 'virt-what' tries to detect the type of virtualization being # used (or none at all if we're running on bare-metal). It prints # out one or more lines each being a 'fact' about the virtualization. # # Please see also the manual page virt-what(1). # This script should be run as root. # # The following resources were useful in writing this script: # . http://dmo.ca/blog/detecting-virtualization-on-linux/ # Do not allow unset variables, and set defaults. set -u root='' skip_qemu_kvm=false skip_lkvm=false VERSION="1.18" have_cpuinfo () { test -e "${root}/proc/cpuinfo" } fail () { echo "virt-what: $1" >&2 exit 1 } usage () { echo "virt-what [options]" echo "Options:" echo " --help Display this help" echo " --version Display version and exit" exit 0 } # Handle the command line arguments, if any. while test $# -gt 0; do case "$1" in --help) usage ;; --test-root=*) # Deliberately undocumented: used for 'make check'. root=$(echo "$1" | sed 's/.*=//') shift 1 test -z "$root" && fail "--test-root option requires a value" ;; -v|--version) echo "$VERSION"; exit 0 ;; --) shift; break ;; *) fail "unrecognized option '$1'";; esac done test $# -gt 0 && fail "extra operand '$1'" # Add /sbin and /usr/sbin to the path so we can find system # binaries like dmidecode. # Add /usr/libexec to the path so we can find the helper binary. prefix=/usr exec_prefix=/usr PATH="${root}/usr/libexec:${root}/sbin:${root}/usr/sbin:${PATH}" export PATH # Check we're running as root. EFFUID=$(id -u) || fail "failed to get current user id" if [ "x$root" = "x" ] && [ "$EFFUID" -ne 0 ]; then fail "this script must be run as root" fi # Try to locate the CPU-ID helper program CPUID_HELPER=$(which virt-what-cpuid-helper 2>/dev/null) if [ -z "$CPUID_HELPER" ] ; then fail "virt-what-cpuid-helper program not found in \$PATH" fi # Many fullvirt hypervisors give an indication through CPUID. Use the # helper program to get this information. cpuid=$(virt-what-cpuid-helper) # Check for various products in the BIOS information. # Note that dmidecode doesn't exist on all architectures. On the ones # it does not, then this will return an error, which is ignored (error # message redirected into the $dmi variable). dmi=$(LANG=C dmidecode 2>&1) # Architecture. # Note for the purpose of testing, we only call uname with -p option. arch=$(uname -p | sed -e 's/i.86/i386/' | sed -e 's/arm.*/arm/') # Check for VMware. # cpuid check added by Chetan Loke. if [ "$cpuid" = "VMwareVMware" ]; then echo vmware elif echo "$dmi" | grep -q 'Manufacturer: VMware'; then echo vmware fi # Check for Hyper-V. # http://blogs.msdn.com/b/sqlosteam/archive/2010/10/30/is-this-real-the-metaphysics-of-hardware-virtualization.aspx if [ "$cpuid" = "Microsoft Hv" ]; then echo hyperv fi # Check for VirtualPC. # The negative check for cpuid is to distinguish this from Hyper-V # which also has the same manufacturer string in the SM-BIOS data. if [ "$cpuid" != "Microsoft Hv" ] && echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation'; then echo virtualpc fi # Check for VirtualBox. # Added by Laurent LΓ©onard. if echo "$dmi" | grep -q 'Manufacturer: innotek GmbH'; then echo virtualbox fi # Check for bhyve. if [ "$cpuid" = "bhyve bhyve " ]; then echo bhyve elif echo "$dmi" | grep -q "Vendor: BHYVE"; then echo bhyve fi # Check for OpenVZ / Virtuozzo. # Added by Evgeniy Sokolov. # /proc/vz - always exists if OpenVZ kernel is running (inside and outside # container) # /proc/bc - exists on node, but not inside container. if [ -d "${root}/proc/vz" -a ! -d "${root}/proc/bc" ]; then echo openvz fi # Check for LXC containers # http://www.freedesktop.org/wiki/Software/systemd/ContainerInterface # Added by Marc Fournier if [ -e "${root}/proc/1/environ" ] && cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container='; then echo lxc fi # Check for Linux-VServer if test -e "${root}/proc/self/status" \ && cat "${root}/proc/self/status" | grep -q "VxID: [0-9]*"; then echo linux_vserver if grep -q "VxID: 0$" "${root}/proc/self/status"; then echo linux_vserver-host else echo linux_vserver-guest fi fi # Check for UML. # Added by Laurent LΓ©onard. if have_cpuinfo && grep -q 'UML' "${root}/proc/cpuinfo"; then echo uml fi # Check for IBM PowerVM Lx86 Linux/x86 emulator. if have_cpuinfo && grep -q '^vendor_id.*PowerVM Lx86' "${root}/proc/cpuinfo" then echo powervm_lx86 fi # Check for Hitachi Virtualization Manager (HVM) Virtage logical partitioning. if echo "$dmi" | grep -q 'Manufacturer.*HITACHI' && echo "$dmi" | grep -q 'Product.* LPAR'; then echo virtage fi # Check for IBM SystemZ. if have_cpuinfo && grep -q '^vendor_id.*IBM/S390' "${root}/proc/cpuinfo"; then echo ibm_systemz if [ -f "${root}/proc/sysinfo" ]; then if grep -q 'VM.*Control Program.*KVM/Linux' "${root}/proc/sysinfo"; then echo ibm_systemz-kvm elif grep -q 'VM.*Control Program.*z/VM' "${root}/proc/sysinfo"; then echo ibm_systemz-zvm elif grep -q '^LPAR' "${root}/proc/sysinfo"; then echo ibm_systemz-lpar else # This is unlikely to be correct. echo ibm_systemz-direct fi fi fi # Check for Parallels. if echo "$dmi" | grep -q 'Vendor: Parallels'; then echo parallels skip_qemu_kvm=true fi # Check for Nutanix AHV. # This is sufficiently different from KVM and has Viridian extensions, # so skip the KVM test. if echo "$dmi" | grep -q 'Manufacturer: Nutanix'; then echo nutanix_ahv skip_qemu_kvm=true fi # Check for oVirt/RHEV. if echo "$dmi" | grep -q 'Manufacturer: oVirt'; then echo ovirt fi if echo "$dmi" | grep -q 'Product Name: RHEV Hypervisor'; then echo rhev fi # Check for Xen. if [ "$cpuid" = "XenVMMXenVMM" ] && ! echo "$dmi" | grep -q 'No SMBIOS nor DMI entry point found, sorry'; then echo xen; echo xen-hvm # Check for AWS if echo "$dmi" | grep -q 'Version: [0-9]\.[0-9]\.amazon'; then echo aws fi skip_qemu_kvm=true elif [ -d "${root}/proc/xen" ]; then echo xen if grep -q "control_d" "${root}/proc/xen/capabilities" 2>/dev/null; then echo xen-dom0 else echo xen-domU fi skip_qemu_kvm=true skip_lkvm=true elif [ -f "${root}/sys/hypervisor/type" ] && grep -q "xen" "${root}/sys/hypervisor/type"; then # Ordinary kernel with pv_ops. There does not seem to be # enough information at present to tell whether this is dom0 # or domU. XXX echo xen elif [ "$arch" = "arm" ] || [ "$arch" = "aarch64" ]; then if [ -d "${root}/proc/device-tree/hypervisor" ] && grep -q "xen" "${root}/proc/device-tree/hypervisor/compatible"; then echo xen skip_qemu_kvm=true skip_lkvm=true fi elif [ "$arch" = "ia64" ]; then if [ -d "${root}/sys/bus/xen" -a ! -d "${root}/sys/bus/xen-backend" ]; then # PV-on-HVM drivers installed in a Xen guest. echo xen echo xen-hvm else # There is no virt leaf on IA64 HVM. This is a last-ditch # attempt to detect something is virtualized by using a # timing attack. virt-what-ia64-xen-rdtsc-test > /dev/null 2>&1 case "$?" in 0) ;; # not virtual 1) # Could be some sort of virt, or could just be a bit slow. echo virt esac fi fi # Check for QEMU/KVM. # # Parallels exports KVMKVMKVM leaf, so skip this test if we've already # seen that it's Parallels. Xen uses QEMU as the device model, so # skip this test if we know it is Xen. if ! "$skip_qemu_kvm"; then if [ "$cpuid" = "KVMKVMKVM" ]; then echo kvm elif [ "$cpuid" = "TCGTCGTCGTCG" ]; then echo qemu skip_lkvm=true elif echo "$dmi" | grep -q 'Product Name: KVM'; then echo kvm skip_lkvm=true elif echo "$dmi" | grep -q 'Manufacturer: QEMU'; then # The test for KVM above failed, so now we know we're # not using KVM acceleration. echo qemu skip_lkvm=true elif [ "$arch" = "arm" ] || [ "$arch" = "aarch64" ]; then if [ -d "${root}/proc/device-tree" ] && ls "${root}/proc/device-tree" | grep -q "fw-cfg"; then # We don't have enough information to determine if we're # using KVM acceleration or not. echo qemu skip_lkvm=true fi elif [ -d ${root}/proc/device-tree/hypervisor ] && grep -q "linux,kvm" /proc/device-tree/hypervisor/compatible; then # We are running as a spapr KVM guest on ppc64 echo kvm skip_lkvm=true else # This is known to fail for qemu with the explicit -cpu # option, since /proc/cpuinfo will not contain the QEMU # string. QEMU 2.10 added a new CPUID leaf, so this # problem only triggered for older QEMU if have_cpuinfo && grep -q 'QEMU' "${root}/proc/cpuinfo"; then echo qemu fi fi fi if ! "$skip_lkvm"; then if [ "$cpuid" = "LKVMLKVMLKVM" ]; then echo lkvm elif [ "$arch" = "arm" ] || [ "$arch" = "aarch64" ]; then if [ -d "${root}/proc/device-tree" ] && grep -q "dummy-virt" "${root}/proc/device-tree/compatible"; then echo lkvm fi fi fi # Check for Docker. if [ -f "${root}/.dockerinit" ]; then echo docker fi # Check ppc64 lpar, kvm or powerkvm # example /proc/cpuinfo line indicating 'not baremetal' # platform : pSeries # # example /proc/ppc64/lparcfg systemtype line # system_type=IBM pSeries (emulated by qemu) if [ "$arch" = "ppc64" ] || [ "$arch" = "ppc64le" ] ; then if have_cpuinfo && grep -q 'platform.**pSeries' "${root}/proc/cpuinfo"; then if grep -q 'model.*emulated by qemu' "${root}/proc/cpuinfo"; then echo ibm_power-kvm else # Assume LPAR, now detect shared or dedicated if grep -q 'shared_processor_mode=1' "${root}/proc/ppc64/lparcfg"; then echo ibm_power-lpar_shared else echo ibm_power-lpar_dedicated fi # detect powerkvm? fi fi fi # Check for OpenBSD/VMM if [ "$cpuid" = "OpenBSDVMM58" ]; then echo vmm fi # Check for LDoms if [ "${arch#sparc}" != "$arch" ] && [ -e "${root}/dev/mdesc" ]; then echo ldoms if [ -d "${root}/sys/class/vlds/ctrl" ] && \ [ -d "${root}/sys/class/vlds/sp" ]; then echo ldoms-control else echo ldoms-guest fi MDPROP="${root}/usr/lib/ldoms/mdprop.py" if [ -x "${MDPROP}" ]; then if [ -n "$($MDPROP -v iodevice device-type=pciex)" ]; then echo ldoms-root echo ldoms-io elif [ -n "$($MDPROP -v iov-device vf-id=0)" ]; then echo ldoms-io fi fi fi
Upload File
Create Folder