-
Notifications
You must be signed in to change notification settings - Fork 45
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
New instruction for pve-qemu 8.1.5-3 #21
Comments
sounds good, did you test it? |
Yes, I'm testing it right now. Everything seems to be working. |
Well, I have added your instructions on my project: |
I've been fighting with this for days as well. I have automated the build for 8.1.5 here https://github.com/Chocrates/qemu-build/releases/tag/v0.1 There is a Dockerfile as well as an action that builds and patches it. As of this morning the one EAC game that refused to boot because I was in a VM, boots with this patch. I have some code that took @zhaodice's patch and converts it to a JSON object that I am hoping I can use to make it relatively version independent, but I haven't checked that in or tested it yet, and very likely it is going to be as fragile as a patch file. |
Made minor edits to the manual, slightly corrected points 4 and 6. |
Do you know why we need to add sources from UTSC? Unless you have latency issues that may not be necessary. |
I did it on the basis of the instruction from here: #11 , so I used everything that is described in it. |
I come from China so I chose UTSC, you can change the source server to help your download speed. |
Of course, that makes sense. My apologies I am over here in North America and forget that latency exists sometimes. Anyhow thank you for the patch. I will ping you if I come up with a more automated solution to get the patch applied across versions. I was able to play a game that uses EAC last night! |
Does this work on Proxmox VE 8.2.4? Willing to give it a go, but not sure if it will net any results. EDIT: Sadly, it doesn't. Trying to patch QEMU 9.0.2-2 for Proxmox VE 8.2.4, you get the following:
|
Update on the matter. Downgraded from 9.0.2-2 to 8.2.2 PVE-QEMU. Successfully patched it using QEMU patches by the author. Running pafish in Windows VM, still gets traced by rdtsc vm exit. |
@botagas this patch cannot bypass RDTSC, it needs patch kvm kernel. |
New instructions with which I was able to build a patch for pve-qemu 8.1.5-3
Written on the basis of the instructions from here: #11 (many thanks to all for the instructions and hints and to the author for the original instructions and patch).
Immediately wanted to apologize if there are any errors in the instructions, I am a beginner.
!!! Create Proxmox VE Virtual Machine as compile enviromnet. !!!
!!! If you have an error while installing mk-build-deps
mk-build-deps: Unable to install pve-qemu-kvm-build-deps at /usr/bin/mk-build-deps line 459.
mk-build-deps: Unable to install all build-dep packages
add a link to your /etc/apt/sources.list or uncomment the following
deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm main
!!!
!!! If you have a build error
fatal: clone of 'git://git.proxmox.com/git/mirror_qemu' into submodule path '/root/pve-qemu/qemu' failed
Failed to clone 'qemu' a second time, aborting
make: *** [Makefile:21: submodule] Error 1
run in the pve-qemu folder
rm qemu -r
git submodule update
and continue from step 7
!!!
1.Login System
2.Remove the old one:
mv /etc/apt/sources.list /etc/apt/sources.list.deleted
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.deleted
3.1.nano /etc/apt/sources.list
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free non-free-firmware
deb https://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
#pve源
deb https://mirrors.ustc.edu.cn/proxmox/debian bookworm pve-no-subscription
#ceph源
deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm main
#开发源,必须
deb https://mirrors.ustc.edu.cn/proxmox/debian/devel bookworm main
3.2 nano /etc/apt/sources.list.d/pve-enterprise.list
#deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
3.3 nano /etc/apt/sources.list.d/ceph.list
#deb https://enterprise.proxmox.com/debian/ceph-quincy bookworm enterprise
#deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription
3.4 nano /etc/apt/sources.list.d/pve-no-subscription.list
deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription
3.5 update & upgrade your systtem
apt update -y && apt dist-upgrade -y
(let's take 8.1.5-3 as an example).
Open the releases and copy the commit tree (for 8.1.5-3 - d70533ff83b5298fe86733dd6f9341e6e20c01c0)
(This patch is made at commit d70533ff83b5298fe86733dd6f9341e6e20c01c0)
apt install git
git clone git://git.proxmox.com/git/pve-qemu.git
cd pve-qemu
git reset --hard d70533ff83b5298fe86733dd6f9341e6e20c01c0
apt install devscripts
mk-build-deps --install
git submodule update --init
5.nano debian/rules
FIND LINE:
# guest-agent is only required for guest systems
Inject a line :
6.nano debian/rules
FIND LINE:
Delete the --disable-download \ line.
7.Open your webbrowser, visit https://github.com/zhaodice/qemu-anti-detection/ and find the patch version you need.
(for 8.1.5-3 - https://github.com/zhaodice/qemu-anti-detection/blob/main/qemu-8.1.0.patch ), download raw file, rename the file to 001-anti-detection.patch, connect to your server via SFTP, go to root/pve-qemu/qemu and copy the file.
8.Current folder is git's root path and make it
make clean
make
9.install deb
apt install librbd-dev
dpkg -i --force-all pve-qemu-kvm_X.X.X.X_amd64.deb
(for 8.1.5-3 - dpkg -i --force-all pve-qemu-kvm_8.1.5-3_amd64.deb)
(if you need to move the file to another server, connect to your server via SFTP, go to root/pve-qemu and download your pve-qemu-kvm_X.X.X.X_amd64.deb and on the other server put the file into root/pve-qemu and run the above command)
The text was updated successfully, but these errors were encountered: