Application cannot be run in virtual machine.


Application cannot be run in virtual machine.

Postby hivar » 23. Feb 2010, 18:35

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    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 :oops:
hivar
 
Posts: 1
Joined: 23. Feb 2010, 18:09
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: XP
Top

Re: Application cannot be run in virtual machine.

Postby rusking » 13. Oct 2010, 05:29

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
Top

Re: Application cannot be run in virtual machine.

Postby mpack » 13. Oct 2010, 12:38

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.
mpack
Site Moderator
 
Posts: 7910
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows XP
VBox Version: PUEL
Guest OSses: Mostly XP
Top

Re: Application cannot be run in virtual machine.

Postby rusking » 13. Oct 2010, 21:43

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
Top

Re: Application cannot be run in virtual machine.

Postby rusking » 13. Oct 2010, 22:02

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
Top

Re: Application cannot be run in virtual machine.

Postby stefan.becker » 13. Oct 2010, 22:07

Its a very heavy problem to google for "dmidecode windows" :)
stefan.becker
Volunteer
 
Posts: 6586
Joined: 7. Jun 2007, 21:53
Top

Re: Application cannot be run in virtual machine.

Postby rusking » 14. Oct 2010, 03:47

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
Top

Re: Application cannot be run in virtual machine.

Postby rusking » 14. Oct 2010, 03:49

http://www.thegeekstuff.com/tag/dmidecode-windows/<----Google Result
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
Top

Re: Application cannot be run in virtual machine.

Postby mpack » 14. Oct 2010, 12:22

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
Top

Re: Application cannot be run in virtual machine.

Postby rusking » 19. Oct 2010, 08:40

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
Top

Re: Application cannot be run in virtual machine.

Postby mpack » 19. Oct 2010, 12:07

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
Top

Re: Application cannot be run in virtual machine.

Postby aminspy12 » 23. May 2011, 10:48

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?
aminspy12
 
Posts: 1
Joined: 23. May 2011, 10:28
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: WinXP
Top

Re: Application cannot be run in virtual machine.

Postby mpack » 23. May 2011, 12:29

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值