hjvn2211445 大佬有话说 :
lxc有没办法从小鸡看到母机开了多少小鸡
lxc虚拟化比较鸡肋,好多东西都是母机共享的,很多命令可以直接看到母机的情况
有没办法看到开了多少小鸡啊
dmidecode
lshw
inxi -Fx
root@lxc124:~# inxi -Fx
System: Host: lxc124 Kernel: 5.8.13-1.el7.elrepo.x86_64 x86_64 bits: 64 compiler: gcc v: 2.32-16.el7) Console: tty 0
Distro: Debian GNU/Linux 10 (buster)
Machine: Type: Server System: Dell product: PowerEdge R440 v: N/A serial: HVXBR53
Mobo: Dell model: 04JN2K v: A04 serial: .HVXBR53.CNFCP0008B00B1. BIOS: Dell v: 2.8.2 date: 08/31/2020
CPU: Topology: Single Core model: Intel Xeon Silver 4216 bits: 64 type: UP arch: Cascade Lake rev: 7 L2 cache: 22.0 MiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 4200
Speed: 1497 MHz min/max: 800/3200 MHz Core speeds (MHz): 1: 2176 2: 2700 3: 1147 4: 1716 5: 867 6: 1393 7: 2700
8: 1669 9: 1599 10: 2300 11: 1899 12: 2526 13: 1897 14: 2700 15: 2085 16: 937 17: 1114 18: 2076 19: 1031 20: 1959
21: 1697 22: 1394 23: 2306 24: 2700 25: 1372 26: 2036 27: 2538 28: 2700 29: 1568 30: 2700 31: 1703 32: 2418
33: 2700 34: 850 35: 1713 36: 1235 37: 2695 38: 1191 39: 1193 40: 1614 41: 1460 42: 2700 43: 979 44: 1544 45: 2200
46: 1146 47: 1647 48: 1674 49: 2700 50: 977 51: 882 52: 1589 53: 2529 54: 1151 55: 1776 56: 1530 57: 2700 58: 1489
59: 2403 60: 1173 61: 2324 62: 1367 63: 1215 64: 2700
Graphics:Device-1: Matrox Systems Integrated Matrox G200eW3 Graphics vendor: Dell driver: mgag200 v: kernel bus ID: 03:00.0
Display: tty server: N/A driver: mgag200 tty: 156×28
Message: Advanced graphics data unavailable in console for root.
Audio: Message: No Device data found.
Network: Device-1: Broadcom Limited NetXtreme BCM5720 Gigabit Ethernet PCIe vendor: Dell driver: tg3 v: kernel port: 2000
bus ID: 04:00.0
Device-2: Broadcom Limited NetXtreme BCM5720 Gigabit Ethernet PCIe vendor: Dell driver: tg3 v: kernel port: 2000
bus ID: 04:00.1
IF-ID-1: eth0 state: up speed: 10000 Mbps duplex: full mac: 00:16:3e:91:5b:50
IF-ID-2: sit0 state: down mac: 00:00:00:00
Drives: Local Storage: total: 2.26 TiB used: 1.43 GiB (0.1%)
ID-1: /dev/nvme0n1 vendor: Corsair model: Force MP600 size: 1.82 TiB
ID-2: /dev/sda model: PERC H330 Adp size: 446.62 GiB
RAID: Hardware-1: LSI Logic / Symbios Logic MegaRAID SAS-3 3008 driver: megaraid_sas v: 07.714.04.00-rc1
bus ID: 18:00.0
Partition: ID-1: / size: 24.48 GiB used: 1.43 GiB (5.9%) fs: ext4 dev: /dev/thin/vsv1548-dj4aj9xyeoq8lq52-8dqskp9jsyaprhso
Sensors: System Temperatures: cpu: 48.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 26 Uptime: 19h 13m Memory: 1024.0 MiB used: 120.3 MiB (11.7%) Init: systemd runlevel: 5 Compilers:
gcc: N/A Shell: bash v: 5.0.3 inxi: 3.0.32
root@lxc124:~# dmidecode|grep -P -A5 "Memory Device" |grep Size
Size: 32 GB
Size: 32 GB
Size: No Module Installed
Size: 32 GB
Size: 32 GB
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: No Module Installed
Size: 32 GB
Size: 32 GB
Size: No Module Installed
Size: 32 GB
Size: 32 GB
Size: No Module Installed
https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif
h20 大佬有话说 :
dmesg里经常能看到别人小鸡在kernel上的信息,严格上来说lxc不算小鸡