Need help: "sorry, this application cannot run under virtual machine"

cjgawatama

New Member
Sep 26, 2024
2
0
1
Hello everyone,
I am trying to use Proxmox 8.2.4 to run a game server on CentOS 7, and I am encountering the following error: "sorry, this application cannot run under virtual machine"
1727339174557.png

this is my config file:
Code:
args: -cpu host,-hypervisor,kvm=off
boot: order=scsi0;net0
cores: 4
cpu: host,hidden=1,flags=+pcid
memory: 8192
meta: creation-qemu=9.0.2,ctime=1725881141
name: Jx-Server-Centos-7
net0: virtio=BC:24:11:31:C1:50,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: HDD:505/vm-505-disk-0.qcow2,iothread=1,size=100G
scsihw: virtio-scsi-single
smbios1: uuid=b01da070-1bbc-41f3-a455-e8720aaaa1a2
sockets: 1
vmgenid: 6e72b5ef-68cd-4133-b357-eff361d30694



I hope someone can help me fix this issue. Thank you
 
This doesn't seem to be a PVE-related problem, but with the VM detection algorithm used by the game server you want to start. You could try read the source code if "server_start" is a simple shell script and if there are some VM checks you could comment them out, but it would be harder if its a binary.

Anyway, personally, I wouldn't trust an application that doesn't allow me to run it inside a VM (as that would indicate to me that it wants access to a real physical machine), but usually they will check for hardware information and check the processor name and so on for some common virtualized device names, e.g. "QEMU PCI-PCI bridge", "Red Hat, Inc. Virtio SCSI", etc.
 
Last edited:
My bad, I just noticed that you're already passing args: -cpu host,-hypervisor,kvm=off and cpu: host,hidden=1,flags=+pcid to the VM already. It would be helpful to have more information on the game server you're trying to run, but in general it's quite easy for an application check if it's running in a virtual machine.
 
Last edited:
My bad, I just noticed that you're already passing args: -cpu host,-hypervisor,kvm=off and cpu: host,hidden=1,flags=+pcid to the VM already. It would be helpful to have more information on the game server you're trying to run, but in general it's quite easy for an application check if it's running in a virtual machine.
Hello, thank you for your concern regarding my issue.
I am trying to set up the JX1 game server from Kingsoft.
Previously, I encountered a similar error when running this server on VMWare; however, I was able to resolve this issue on VMWare by making the following adjustments in parameter:

Code:
----Parameter--

hypervisor.cpuid.v0 = "false"
ide1:0.present = "FALSE"
isolation.tools.getPtrLocation.disable = "true"
isolation.tools.getVersion.disable = "true"
isolation.tools.setPtrLocation.disable = "true"
isolation.tools.setVersion.disable = "true"
SMBIOS.reflectHost = "TRUE"
monitor_control.disable_directexec = "true"
monitor_control.restrict_backdoor = "true"
checkpoint.vmState = ""
checkpoint.vmState.readOnly = "FALSE"

Therefore, I am looking for a similar solution on Proxmox and would greatly appreciate your assistance."
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!