Easy Anti Cheat : launch error. cannot run under Virtual Machine


Go to solution Solved by shakinbacon,

Recommended Posts

18 minutes ago, TalkingWaterfall said:

This was sufficient for me to bypass EAC for Predecessor. Also confirmed I can launch into R6, but I honestly do not know if that was an issue before.

Honestly makes you wonder why this is even a thing, if it's that simple to bypass...

With "<smbios mode='host'/>"

What game is working now ?

Link to comment
  • 1 month later...

With this option my pc LAG...
 

<smbios mode='host'/>

 

<kvm>
  <hidden state='on'/> 
</kvm>

 

<feature policy='disable' name='hypervisor'/>

 

My config :

 

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' id='82'>
  <name>Windows10_MEDIUM_NEW</name>
  <uuid>cae6e323-ee36-4806-8f64-e01d59036c1a</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>33554432</memory>
  <currentMemory unit='KiB'>33554432</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>16</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='8'/>
    <vcpupin vcpu='1' cpuset='24'/>
    <vcpupin vcpu='2' cpuset='9'/>
    <vcpupin vcpu='3' cpuset='25'/>
    <vcpupin vcpu='4' cpuset='10'/>
    <vcpupin vcpu='5' cpuset='26'/>
    <vcpupin vcpu='6' cpuset='11'/>
    <vcpupin vcpu='7' cpuset='27'/>
    <vcpupin vcpu='8' cpuset='12'/>
    <vcpupin vcpu='9' cpuset='28'/>
    <vcpupin vcpu='10' cpuset='13'/>
    <vcpupin vcpu='11' cpuset='29'/>
    <vcpupin vcpu='12' cpuset='14'/>
    <vcpupin vcpu='13' cpuset='30'/>
    <vcpupin vcpu='14' cpuset='15'/>
    <vcpupin vcpu='15' cpuset='31'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-i440fx-7.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/cae6e323-ee36-4806-8f64-e01d59036c1a_VARS-pure-efi.fd</nvram>
    <smbios mode='host'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <kvm>
      <hidden state='on'/>
    </kvm>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='1' dies='1' cores='8' threads='2'/>
    <cache mode='passthrough'/>
    <feature policy='disable' name='hypervisor'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='hypervclock' present='yes'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/cache/domains/W10/Test/vdisk1.img' index='3'/>
      <backingStore/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <alias name='virtio-disk2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source dev='/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_Plus_500GB_S4EVNF0M883034V' index='2'/>
      <backingStore/>
      <target dev='hdd' bus='virtio'/>
      <alias name='virtio-disk3'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/cache/domains/W11/W11-disk-c/vdisk2.img' index='1'/>
      <backingStore/>
      <target dev='hde' bus='virtio'/>
      <alias name='virtio-disk4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </disk>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:7d:e4:59'/>
      <source bridge='br0'/>
      <target dev='vnet81'/>
      <model type='virtio-net'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-82-Windows10_MEDIUM_NEW/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='mouse' bus='ps2'>
      <alias name='input0'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input1'/>
    </input>
    <audio id='1' type='none'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x0a' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <rom file='/mnt/cache/CacheDevices/Config/GPU/3070/Gainward.RTX3070.8192.201127.rom'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x0a' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x07' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
</domain>

 

 

Link to comment
10 minutes ago, ghost82 said:

Try to force kvm ioapic driver and see if it's better, replace with this:

  <features>
    <acpi/>
    <apic/>
    <kvm>
      <hidden state='on'/>
    </kvm>
    <ioapic driver='kvm'/>
  </features>

 

 

Same probleme :(

 

Config 1 LAG :

<smbios mode='host'/>
 
+
  <features>
    <acpi/>
    <apic/>
    <hyperv mode='custom'>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vendor_id state='on' value='none'/>
    </hyperv>
    <kvm>
      <hidden state='on'/> 
    </kvm>
  </features>

+
<feature policy='disable' name='hypervisor'/>

 

Config 2 LAG :

 

<smbios mode='host'/>
 
+
  <features>
    <acpi/>
    <apic/>
    <kvm>
      <hidden state='on'/> 
    </kvm>
  </features>

+
<feature policy='disable' name='hypervisor'/>

 

Config 3 LAG :

 

<smbios mode='host'/>
 
+
  <features>
    <acpi/>
    <apic/>
    <kvm>
      <hidden state='on'/>
    </kvm>
    <ioapic driver='kvm'/>
  </features>

+
<feature policy='disable' name='hypervisor'/>

 

Link to comment
3 hours ago, JamesAdams said:

Config 3 LAG

What about if you add invtsc?

<smbios mode='host'/>
 
+
  <features>
    <acpi/>
    <apic/>
    <kvm>
      <hidden state='on'/>
    </kvm>
    <ioapic driver='kvm'/>
  </features>

+
    <feature policy='disable' name='hypervisor'/>
    <feature policy='require' name='invtsc'/>
  </cpu>

 

Link to comment
  • 4 weeks later...
  • 2 weeks later...

I wanted to post an update to this thread. Today My son wanted to play Elden Ring. I am using my VM right now.  So instead of getting off my pc I changed the xml in his windows 10 VM. Under "os" I added this line "<smbios mode='host'/>". In the xml it isn't underlined and italics and bold. I just did that here to make it better to see in the code below. The rest of the xml is what was already there.

 

` <os>
    <type arch='x86_64' machine='pc-q35-5.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/bc74a91f-ee54-6060-a516-c719a80d271e_VARS-pure-efi.fd</nvram>
    <smbios mode='host'/>
  </os>`

 

This change has made easy anti cheat let Elden ring run. We now have to work on a lag issue. But it is playable and he can summon.

Edited by ffgdad
Link to comment
  • 2 weeks later...
On 8/28/2022 at 11:07 AM, shakinbacon said:

after a ton of research i have figured it out.

under <os> put

<smbios mode='host'/>

directly below that put this under <features>

<kvm> 
  <hidden state='on'/> 
</kvm>

under <cpu mode ='host-passthrough'....... put

<feature policy='disable' name='hypervisor'/>

and i also deleted any lines pertaining to hyper-v

 

hope this helps anyone in the future

Thank you kind sir @shakinbacon. You are an angel. This is a still a viable solution.

Windows 10 VM

Steam

Elden Ring

I did not delete references to hyperV, however. I'm lazy and will procced down that path if performance sucks. 

 

Thanks again for your information!

 

Edited by darthkielbasa
Link to comment
On 7/4/2023 at 10:05 PM, darthkielbasa said:

Thank you kind sir @shakinbacon. You are an angel. This is a still a viable solution.

Windows 10 VM

Steam

Elden Ring

I did not delete references to hyperV, however. I'm lazy and will procced down that path if performance sucks. 

 

Thanks again for your information!

 

 

Agreed!! Works beautifully!!

 

All I needed was the

<smbios mode='host'/>

portion and AEW Fight Forever is now up and running!!

  • Like 1
Link to comment
On 8/28/2022 at 5:07 AM, shakinbacon said:

after a ton of research i have figured it out.

under <os> put

<smbios mode='host'/>

directly below that put this under <features>

<kvm> 
  <hidden state='on'/> 
</kvm>

under <cpu mode ='host-passthrough'....... put

<feature policy='disable' name='hypervisor'/>

and i also deleted any lines pertaining to hyper-v

 

hope this helps anyone in the future

I went out my way to create an account just to tell you THANK YOU and ILY. Did just this and was able to get past easy anti chat.

 

Others in the thread that you can just put the smbios mode. Not for me, I had to put everything you listed in order to work.

 

Again, thank you!!.

  • Like 1
Link to comment
  • 3 weeks later...
  • 2 months later...

Just found this thread as since the new Hunt Showdown update 1.14 launched and is shipped with a hardened Easy Anti Cheat and I also encountered the specific error.

 

For me just worked the following:

 

1. Add  in the os section

<smbios mode='host'/>

 

2. Add in the CPU section

<feature policy='disable' name='hypervisor'/>

 

3. Deactivated Hyper-V in the forms view. Actually have no idea if this even necessary.

 

In the first rounds I had also the option

<kvm> 
  <hidden state='on'/> 
</kvm>

But here the overhead was instantly noticeable so I deleted this option.

 

So the game is starting but runs with less FPS then before the update but this could also be caused by either overloaded servers or any other compatible issues with the graphics driver or whatsoever. But I think the two remaining options in 1. and 2. are not responsible for this?

Edited by cap089
Link to comment
  • 2 weeks later...
On 12/24/2022 at 6:52 AM, ffgdad said:

i found this on steam. I cant believe it worked.

"

How to fix "This Application cannot run under a Virtual Machine"

So while searching everywhere to fix this error, I found something that fixes the error. The game for some reason thinks your PC is a VM if the name of your computer name starts with a "DESKTOP" within it's name. For example, DESKTOP-123ABC. To fix it, go to System -> Advanced settings -> Computer Name. Click "Change" and change the "DESKTOP" to something else, like Jamal-PC, etc, and then restart your computer and it will be fixed. If you have something different than "DESKTOP" header, then disable Hyper-V by going to "Programs and Features" and" Turn on and off Windows Features". Hope that helps. If only I can post this on the forums, but keeps getting cooldown.

"

 

https://steamcommunity.com/app/555570/discussions/0/152390648089353221/

 

It seems to be renaming the machine to anything. I didn't have DESKTOP in the machine name, but I renamed it slightly and the anti-cheat went away.

Link to comment
  • 2 weeks later...
  • 3 weeks later...

I would like to add that i used the same fix outlined by everyone else in this thread and now i can play lost ark again!!! ( easy anti- cheat was keeping me from playing)

 

Thank you very much!

 

Also after implementing this fix I started having mouse lag during gaming. Only way I was able to fix this was to download the driver's software for my mouse ( I have a deathadder V2) and change the mouse pooling rate down to 125 it was set default at 1000. Then perfect gaming again!

Edited by Mrtj18
Link to comment
  • 1 month later...
9 minutes ago, epicaleric said:

 

Yes 🙂 I'm currently playing Fortnite with the fixes from this thread.

 

Okay thanks, I tried but it's not working.

Can you detail what you've changed ?

 

This what I tried :

1. Add in the os section :

<smbios mode='host'/>

 

2. Add in the CPU section :

<feature policy='disable' name='hypervisor'/>

 

3. Deactivated Hyper-V in the forms view. . 

Link to comment
4 hours ago, nwicone said:

Can you detail what you've changed ?

 

Mostly the same as you did.

  • I also added the kvm code under features.
    Although I read that it gives some people lag. I've not tried it without this code.
       <kvm>
          <hidden state='on'/>
        </kvm>

     

  • I've changed my PC name from something like "DESKTOP-R29JE8" to a different name.

  • For the Hyper-V part I've deleted the whole section in the XML instead of in the form view. But I can't imagine that making a difference. 

Hope any of this helps! And I truly hope anti-cheat engines will chill with the banning of VM's.
I'm quite new to Unraid and VM's myself, so I'm afraid I won't be able to help you any further if this doesn't work for you.
Good luck!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.