MCT Posted December 8, 2005 Share Posted December 8, 2005 hey guys, how can i check if im in a virtual environment? ie vmwarei cant check to see if vmware tools is installed cuz the latest version doesnt allow for seamless unattended installs, it messes up , it prevents windows from loading first time :Sanyways, so im wanting to test if maybe the make of a cdrom or something? Link to comment Share on other sites More sharing options...
druiddk Posted December 8, 2005 Share Posted December 8, 2005 (edited) Hi MCT,In prompt you can write "set" and it will show you all the variables.I just tried it in VMware and the only thing that i can notice is this:When i do it in the host Windows XP i get this:PROCESSOR_ARCHITECTURE=x86PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 4, GenuineIntelPROCESSOR_LEVEL=15PROCESSOR_REVISION=0404However when i do it in VMware (on the same pc) it changes a bit:PROCESSOR_ARCHITECTURE=x86PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 8, GenuineIntelPROCESSOR_LEVEL=15PROCESSOR_REVISION=0408I dont know if this is helpful to you at all...?EDIT:Hmm no I dont think this is helpful I just tried doing set on another server running VMware and the values are totaly different (obviously because its a different architecture). Edited December 8, 2005 by druiddk Link to comment Share on other sites More sharing options...
-I- Posted December 8, 2005 Share Posted December 8, 2005 the whole point in VM (virtual Machine) it to let software, (IE: windows) think its running on a dedicated machine.... so NO there is NO way to check it. from in side the vm. Link to comment Share on other sites More sharing options...
jondercik Posted December 8, 2005 Share Posted December 8, 2005 You are doing something wrong if your build doesnt allow Vmware to boot. I have done 1000s of builds and tested them all with all 3 flavors of VMware without any issues I didnt inflict on myself. Link to comment Share on other sites More sharing options...
druiddk Posted December 8, 2005 Share Posted December 8, 2005 (edited) AHA!You can check if this registry entry exists:[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\Scsi\Scsi Port 0\Scsi Bus 0\Target Id 0\Logical Unit Id 0\]"Identifier"="VMware Virtual IDE Harddrive"This holds some information on VMware.VirtualDisk.I dont know how to do the check, but I'm sure someone can help you out make a script that will check for the existance of this key. Edited December 8, 2005 by druiddk Link to comment Share on other sites More sharing options...
Halfwalker Posted December 8, 2005 Share Posted December 8, 2005 RogueSpear has a switchless install for VMWare Tools v5.0, as seen hereVMWare switchless installHe uses a nice little VBS script to check if it's running in a VM - if it is, it installs.D. Link to comment Share on other sites More sharing options...
MCT Posted December 9, 2005 Author Share Posted December 9, 2005 thanks, the vmware tools id unno whats wrong, ive had it on there ever since vmware 4x ive updated the tools with each new release/beta so i dunno why its not working , it works if im inside a guest thats booted up, just not during T12 stage Link to comment Share on other sites More sharing options...
druiddk Posted December 9, 2005 Share Posted December 9, 2005 @MCT > I seem to be having the same problem. I guess they changed something Link to comment Share on other sites More sharing options...
MCT Posted December 9, 2005 Author Share Posted December 9, 2005 ya its messed up eh , maybe they've found the bug, maybe consider submittinga bug report? Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 9, 2005 Share Posted December 9, 2005 (edited) I do not know if this will help but this adds a DVD drive to a virtual machine.I can not test this because I do not use Virtual Machines for installsSave as Add_DVD_VMachine.VBSBlue text is the name for the type of OS change to suit your needs.On Error Resume NextSet objVS = CreateObject("VirtualServer.Application")Set objVM = objVS.FindVirtualMachine("Windows 2000 Server")errReturn = objVM.AddDVDROMDrive(0,1,0)This script searches for a Virtual NetworkSave As Search_ForNetwork_VM.VBSOn Error Resume NextSet objVS = CreateObject("VirtualServer.Application")Set objNetwork = objVS.FindVirtualNetwork("Scripted Network")I have added a SFX file with a bunch of VBS scripts for Virtual Machine there might be some thing in there that can help. It will extract to here %systemdrive%\VirtualMachineScriptsThen it will open the folder where the script are. Edited December 29, 2005 by gunsmokingman Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now