13 posts • Page
1 of
1
Application cannot be run in virtual machine.
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:
and
there are your information about your system, that you will sure need.
Then run in terminal these commands:
"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
Solution is to Configuring the BIOS DMI information. It is in manual chapter 9.9.
FIrst run in terminal these commannds:
-
Code:
Select all
Expand view
-
dmidecode -t0
and
-
Code:
Select all
Expand view
-
dmidecode -t1
there are your information about your system, that you will sure need.
Then run in terminal these commands:
-
Code:
Select all
Expand view
-
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
![Embarassed :oops:](https://i-blog.csdnimg.cn/blog_migrate/9b575e212b3f8106375a316478361251.gif)
-
hivar
- Posts: 1
- Joined: 23. Feb 2010, 18:09
- Primary OS: Ubuntu other
- VBox Version: OSE Debian
- Guest OSses: XP
Re: Application cannot be run in virtual machine.
How could i do this under a windows host environment?
-
rusking
- Posts: 6
- Joined: 13. Oct 2010, 05:26
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: winxp
Re: Application cannot be run in virtual machine.
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.
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.
-
mpack
- Site Moderator
- Posts: 7910
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: Application cannot be run in virtual machine.
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.
-
rusking
- Posts: 6
- Joined: 13. Oct 2010, 05:26
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: winxp
Re: Application cannot be run in virtual machine.
the command does not work in windows XP either, I believe this may be a Linux only command
-
rusking
- Posts: 6
- Joined: 13. Oct 2010, 05:26
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: winxp
Re: Application cannot be run in virtual machine.
Its a very heavy problem to google for "dmidecode windows"
![Smile :)](https://i-blog.csdnimg.cn/blog_migrate/b709a305a59eee92c1401a39b4081cd0.gif)
German Howto (Linux):
http://www.linuxforen.de/forums/showthread.php?t=236444
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
User Manual / Download Section: http://www.virtualbox.de/wiki/Downloads
FAQ: http://www.virtualbox.de/wiki/User_FAQ http://forums.virtualbox.org/viewtopic.php?t=8669
-
stefan.becker
- Volunteer
- Posts: 6586
- Joined: 7. Jun 2007, 21:53
Re: Application cannot be run in virtual machine.
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
-
rusking
- Posts: 6
- Joined: 13. Oct 2010, 05:26
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: winxp
Re: Application cannot be run in virtual machine.
http://www.thegeekstuff.com/tag/dmidecode-windows/<----Google Result
Yup thats a Linux command
Yup thats a Linux command
-
rusking
- Posts: 6
- Joined: 13. Oct 2010, 05:26
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: winxp
Re: Application cannot be run in virtual machine.
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.
-
mpack
- Site Moderator
- Posts: 7910
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: Application cannot be run in virtual machine.
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.
-
rusking
- Posts: 6
- Joined: 13. Oct 2010, 05:26
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: winxp
Re: Application cannot be run in virtual machine.
You change it the same way in every environment - using the VBoxManage command on the host. See the user manual, section 9.11.
-
mpack
- Site Moderator
- Posts: 7910
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows XP
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: Application cannot be run in virtual machine.
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?
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?
-
aminspy12
- Posts: 1
- Joined: 23. May 2011, 10:28
- Primary OS: MS Windows 7
- VBox Version: OSE other
- Guest OSses: WinXP
Re: Application cannot be run in virtual machine.
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.