Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors on Qemu #73

Open
paulcobbaut opened this issue May 22, 2022 · 4 comments
Open

Errors on Qemu #73

paulcobbaut opened this issue May 22, 2022 · 4 comments

Comments

@paulcobbaut
Copy link

This is the output on Qemu...

./sys/linux.sh: line 145: /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory
./sys/linux.sh: line 150: /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory
./sys/linux.sh: line 173: /sys/devices/virtual/dmi/id/board_vendor: No such file or directory
./sys/linux.sh: line 174: /sys/devices/virtual/dmi/id/board_name: No such file or directory
./sys/linux.sh: line 209: /1024: syntax error: operand expected (error token is "/1024")
paul@X
uptime ~ 405 days, 4 hrs, 23 mins
kernel ~ 4.19.0-16-amd64 arch ~ x86_64
distro ~ VERSION_CODENAME=buster
term ~ paul shell ~ bash
pkgs ~ 459
cpu ~ Intel Xeon (Skylake, IBRS)
gpu ~ 1111 (rev 02)
mobo ~
disk ~ 18G/19G 100% QEMU_HARDDISK
ram ~ 873/1947M swap ~ /M

@wick3dr0se
Copy link
Owner

I really appreciate you sharing the snippet here! As you know, it looks like several of the directories won't appear through virtualization. I will get setup Qemu tonight and work on finding alternative methods to read swap or other possibilities. I think motherboard and real disk name may be impossible. The current distro method is proving to be unreliable for several systems

@wick3dr0se
Copy link
Owner

@paulcobbaut This should be solved by hiding output completely if swap doesn't exist or other data since recent rewrite. Will have to do some more testing to ensure graceful error handling and such. I'll keep this open till we know for sure

@paulcobbaut
Copy link
Author

That system is still running by the way :)

./sysfetch: line 49: /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory
./sysfetch: line 54: /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory
./sysfetch: line 77: /sys/devices/virtual/dmi/id/board_vendor: No such file or directory
./sysfetch: line 78: /sys/devices/virtual/dmi/id/board_name: No such file or directory
./sysfetch: line 91: /sys/class/block//device/model: No such file or directory
./sysfetch: line 156: hash: wmctrl: not found
paul@X
Uptime: 1017 days, 5 hours, 39 minutes
Kernel: Linux 4.19.0-16-amd64 x86_64
OS: linux-gnu
CPU: Intel Xeon Processor (Skylake, IBRS) .@.
GPU: Device 1234:1111 (rev 02)
Disk: 4/18 GiB
RAM: 859/1947 44%
Load: 00%
Kernel: Linux 4.19.0-16-amd64
Distro: Debian GNU/Linux 10 (buster)
Packages: 0

@wick3dr0se
Copy link
Owner

Hey, I'd say that's an improvement! Just need to put it some error handling now and it should be all good, looks like

1017 days!!! 🤯 Has it really been 512 days??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants