doomedraven / Tools

Combination of different utilities, have fun!
MIT License
202 stars 96 forks source link

seabios ram and information issue #132

Closed AndreyRz closed 1 year ago

AndreyRz commented 1 year ago

Hi, I used your script to configure seabios, but after that the ability to change the amount of RAM through libvirt disappeared, the system always uses only 2GB of RAM and the entered bios data about the manufacturer and other things from libvirt are also not used.

github-actions[bot] commented 1 year ago

@AndreyRz: hello! :wave:

This issue is being automatically closed because it does not follow the issue template. If you don't care to provide proper details. I won't waste my time here

doomedraven commented 1 year ago

2gb of ram is due that it uses bios from apt package which mess with manyvdifferent package

AndreyRz commented 1 year ago

Is it possible to fix it somehow? I was installing it on a clean system 22.04.1 lts

doomedraven commented 1 year ago

Well there are few things

  1. If your setup is for malware analysis you broke it somehow installing libs from apt somehow. I dont have details as you didnt provide any details, you can use dpkt to inspect your system
  2. It could be that seobios failed and wasnt replaced, you would see that in console output, but once again no details from you, you can rerun script with seabios command
AndreyRz commented 1 year ago

sudo ./kvm-qemu.sh Replace_seabios /usr/share/qemu Executed without errors But ./kvm-qemu.sh SeaBios give me so warnings due to the process:

screen.log

doomedraven commented 1 year ago

warnings are fine.

'out/bios.bin' -> '/usr/share/qemu/bios.bin'
'out/bios.bin' -> '/usr/share/qemu/bios-256k.bin'

what are hashes of those 2 files? did you edit xml of your vm to force using those bios files?

doomedraven commented 1 year ago

https://www.doomedraven.com/2016/#modifying-kvm-qemu-kvm-settings-for-malware-analysis

AndreyRz commented 1 year ago

aaead639905cc532e0df8c62a011faec8beed26f for both files, I edit xml with

qemu:commandline> and add tables
doomedraven commented 1 year ago

now run vm and if you can't more ram assigned, search qemu in ps to see whole command line. check my old post maybe they broke seobios again https://www.reddit.com/r/qemu_kvm/comments/phsrw8/cant_use_more_than_3gb_ram_on_x64_win10/

AndreyRz commented 1 year ago

I've already watched your post, unfortunately I have a windows 10 guest system

doomedraven commented 1 year ago

well then it just uses uefi instead of bios and it has default limitations. the person for who i did that investigation is using win10 too, you can try to switch from uefi to bios to try if that is the case

AndreyRz commented 1 year ago

When I turn on the virtual machine, the seabios window is displayed. When creating, the bios parameter was also selected.

doomedraven commented 1 year ago

what is the build of your seabios that you see on splash?

AndreyRz commented 1 year ago

version rel-1.16.1.-2-gea1b7a0-dirty-20230218_201052

doomedraven commented 1 year ago

im on 1.14, i would need to check latest version, if you don't want to investigate what is wrong there try to just build with Working - re1-14.0-26-g54002e8-dirty-2021-0829072634

AndreyRz commented 1 year ago

Ok, i try to use https://github.com/coreboot/seabios/releases/tag/rel-1.14.0 and nothing changed, but I noticed something, comand sed -i 's/CONFIG_XEN=y/CONFIG_XEN=n/g' .config don't work in script, there is error said that no file to apply and if use

Windows 10(latest rev.) is uninstallable without ACPI_DSDT

sed -i 's/CONFIG_ACPI_DSDT=y/CONFIG_ACPI_DSDT=n/g' .config

windows 2h22 blue screen after startup with acpi error

doomedraven commented 1 year ago

i will try to build latest seabios and test it with my win10 vm

AndreyRz commented 1 year ago

I forgot to write that if you put a clean seabios without corrections to hide it correctly sees the RAM

doomedraven commented 1 year ago

Interesting. Thanks

El lun, 20 feb 2023 15:20, AndreyRz @.***> escribió:

I forgot to write that if you put a clean seabios without corrections to hide it correctly sees the RAM

— Reply to this email directly, view it on GitHub https://github.com/doomedraven/Tools/issues/132#issuecomment-1437097583, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOFH35GW2Q3I2I2LGNLVALWYN4RBANCNFSM6AAAAAAVAOBWXY . You are receiving this because you commented.Message ID: @.***>

doomedraven commented 1 year ago

ok so i just did the tests on my side, with LATEST version, it works as expected, i guess you have problem with some string replacement for antivm

AndreyRz commented 1 year ago

Which of the strings can affect the information related to RAM?

ClaudioWayne commented 1 year ago

Hi,

if you mean the problem regarding to allocate more then 2GB; can you try to build seabios without modifing src/fw/paravirt.c and let me know if it has any effect? ->Line 765 #src/fw/paravirt.c If I remember correctly, I had the same problem and when I skipped this line, I was able to allocate more than 2 Gb. I might be wrong, but it's worth a try

AndreyRz commented 1 year ago

This made it possible to get 8GB of memory, but again information about timings, the processor multiplier and some other information in cpu-z disappeared, but at the same time information about smbios registered in the libvirt config began to be displayed normally.

doomedraven commented 1 year ago

Any that fails, it should be in log

El vie, 24 feb 2023 14:05, AndreyRz @.***> escribió:

Which of the strings can affect the information related to RAM?

— Reply to this email directly, view it on GitHub https://github.com/doomedraven/Tools/issues/132#issuecomment-1443657494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOFH36LQVI4EQKMHHBT2KTWZCWY7ANCNFSM6AAAAAAVAOBWXY . You are receiving this because you commented.Message ID: @.***>

AndreyRz commented 1 year ago

Where can I found these logs?

doomedraven commented 1 year ago

Terminal output or log if you run as -h says

El vie, 24 feb 2023 19:45, AndreyRz @.***> escribió:

Where can I found these logs?

— Reply to this email directly, view it on GitHub https://github.com/doomedraven/Tools/issues/132#issuecomment-1444243105, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOFH37LWOTXNO5BZMOZKNTWZD6T3ANCNFSM6AAAAAAVAOBWXY . You are receiving this because you commented.Message ID: @.***>

AndreyRz commented 1 year ago

screen.log With ->Line 765 #src/fw/paravirt.c the logs are actually similar, as well as several warnings and a notification that everything is done without errors