Page 1 of 1

Application cannot be run in virtual machine.

Posted: 23. Feb 2010, 18:35
by hivar
Ok, today i figured out (with a lot of help on IRC) how to run my app. It says it cannot be run in virtual machine. The solution for my program worked.

Solution is to Configuring the BIOS DMI information. It is in manual chapter 9.9.

FIrst run in terminal these commannds:

Code: Select all

dmidecode -t0
and

Code: Select all

dmidecode -t1
there are your information about your system, that you will sure need.

Then run in terminal these commands:

Code: Select all

VBoxManage setextradata "My VM" VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor "BIOS Vendor"
VBoxManage setextradata "My VM" VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion "BIOS Version"
VBoxManage setextradata "My VM" VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate "BIOS Release Date"
VBoxManage setextradata "My VM" VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor "System Vendor"
VBoxManage setextradata "My VM" VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct "System Product"
VBoxManage setextradata "My VM" VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion "System Version"
VBoxManage setextradata "My VM" VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial "System Serial"
VBoxManage setextradata "My VM" VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily "System Family"
VBoxManage setextradata "My VM" VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid "9852bf98-b83c-49db-a8de-182c42c7226b"
"My VM" - this is your virtual machine name (e. g. - Windows XP...)
"BIOS Vendor" and others - you find this in those firs two commands.

I dont know if all information must be sent but i did it for all and it works.

I some section like "System Version" i had "R 1" it spits some error so i add "R1". I asume that there cannot be spacebars.

I hope that this will help someone i had searched the forum but i dont find any solution.
Sorry for english :oops:

Re: Application cannot be run in virtual machine.

Posted: 13. Oct 2010, 05:29
by rusking
How could i do this under a windows host environment?

Re: Application cannot be run in virtual machine.

Posted: 13. Oct 2010, 12:38
by mpack
In Windows you would open a command window. If you don't know what that is then I strongly suggest that this "solution" is not for you.

In any case it isn't a general solution. A VM environment can be detected in multiple ways, eg. from low level timing tricks, the presence of long obsolete hardware, hardware device IDs known to be virtual only, process and driver names, presence of guest additions, and of course DMI strings. The fact that one app was fooled by just changing the DMI strings does not guarantee a wider fix.

Re: Application cannot be run in virtual machine.

Posted: 13. Oct 2010, 21:43
by rusking
Im very experienced in all windows environments. To include NT's but the command is recognized under win7. Referring to the "dmidecode -t0" and "dmidecode -t1" I thought maybe there was a alternative command for windows.

Re: Application cannot be run in virtual machine.

Posted: 13. Oct 2010, 22:02
by rusking
the command does not work in windows XP either, I believe this may be a Linux only command

Re: Application cannot be run in virtual machine.

Posted: 13. Oct 2010, 22:07
by stefan.becker
Its a very heavy problem to google for "dmidecode windows" :)

Re: Application cannot be run in virtual machine.

Posted: 14. Oct 2010, 03:47
by rusking
Yes, as i tried that i was returned results that mostly described what the function of the command was. However the fist result gave a download that later showed no executable and when i ran the command in dos same results as befor. So i navigated to the dir at which it was installed to and still no luck. But the greats problem here is not the finding of the dmi information its the replacement of it in the VM. Soo close.....was really hoping this could have been done

Re: Application cannot be run in virtual machine.

Posted: 14. Oct 2010, 03:49
by rusking
http://www.thegeekstuff.com/tag/dmidecode-windows/<----Google Result
Yup thats a Linux command

Re: Application cannot be run in virtual machine.

Posted: 14. Oct 2010, 12:22
by mpack
There's a version of it available for Windows - but we're getting sidetracked. Viewing DMI information was not your original question, and I doubt it will help you.

Re: Application cannot be run in virtual machine.

Posted: 19. Oct 2010, 08:40
by rusking
True that wasn't my original question. I was asking how to run the commands under a windows environment. I would like to change the DMI information. I can get my dmi information via other method but changing it on the other hand is what im seeking under a windows environment. I have the windows version of virtual box if that's what you referring too.

Re: Application cannot be run in virtual machine.

Posted: 19. Oct 2010, 12:07
by mpack
You change it the same way in every environment - using the VBoxManage command on the host. See the user manual, section 9.11.

Re: Application cannot be run in virtual machine.

Posted: 23. May 2011, 10:48
by aminspy12
I did this but i still couldn't run the application which was showing the error in my guest OS.
I'm using windows 7 and my gues is winxp and i ran dmidecode and the command vboxmanage without errors (for vboxmanage last line i used my own uuid which dmidecode showed me), but the problem still bothers me.

any solutions?

Re: Application cannot be run in virtual machine.

Posted: 23. May 2011, 12:29
by mpack
aminspy12 wrote:any solutions?
No. As the third message in this thread already told you, quite clearly I think. If you have an application that is determined to detect a virtual environment then it will detect it.