How to Automatically Start a Virtual Machine (VM) with Windows 10 startup

How to Automatically Start a Virtual Machine (VM) with Windows 10 startup

ElastiCourse

4 года назад

38,069 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@onezero-pq6fn
@onezero-pq6fn - 29.10.2023 20:13

not working

Ответить
@user-ni6ur4db5d
@user-ni6ur4db5d - 19.09.2023 11:58

will this work on Linux Host?

Ответить
@piyushsachan4723
@piyushsachan4723 - 17.09.2023 07:46

Thanks!

Ответить
@reltecsol3723
@reltecsol3723 - 09.09.2023 03:11

"C:\Program Files (x86)\VMware\VMware Workstation\vmrun" -T ws start "C:\VMs\Windows 10.vmx"

Type the above in notepad and save it as .bat or .cmd file and paste this file in your startup

win+r type shell:startup

Ответить
@oyuneditor6794
@oyuneditor6794 - 24.07.2023 08:32

Hi, Does it apply to Windows Server as well?

Ответить
@goganikolashvili7074
@goganikolashvili7074 - 26.06.2023 20:46

doker doker not 2 only one name vmx

Ответить
@onlyqualitypeoplemotivation
@onlyqualitypeoplemotivation - 01.06.2023 10:40

This was awesome! Thank you very much.

Ответить
@TheShadels
@TheShadels - 30.05.2023 23:32

Super helpful video! A few things have changed with Windows 11 and VirtualBox. For anyone running home assistant, this may be helpful:
"C:\Program Files\Oracle\VirtualBox\virtualboxVM.exe" --startvm "C:\Users\your-userid\VirtualBox VMs\Home Assistant\Home Assistant.vbox"
Just change "your-userid" to your userid

Ответить
@adriankatong3962
@adriankatong3962 - 07.05.2023 23:27

Thanks!

Ответить
@hassanali4783
@hassanali4783 - 29.01.2023 04:45

Awsome, thanks

Ответить
@Shaita
@Shaita - 02.01.2023 22:26

The simples way I have achieved this is by creating a shortcut to the .vmx file and drop it in the startup directory. Obviously that extension should be setup to be run by default with VMWare.
This will automatically open VMWare in screen and load the .vmx file in it when windows starts.

Ответить
@walidmohamed1437
@walidmohamed1437 - 25.12.2022 15:56

yes it run thank you very much

Ответить
@michaelyannotti4916
@michaelyannotti4916 - 22.12.2022 20:43

Unfortunately, this isn't a startup/boot script, it's a logon script. If you want to do it without logging in, you have to use Task Scheduler...

Ответить
@karabakhazerbaijan1646
@karabakhazerbaijan1646 - 30.09.2022 10:07

Is there anyway to run this script minimized to tray? With "nogiu" cmd file is appearing. I would like nothing to display for user.

Ответить
@karabakhazerbaijan1646
@karabakhazerbaijan1646 - 30.09.2022 09:57

Thanks this tutorial helped me.

Ответить
@mustafaraddad9183
@mustafaraddad9183 - 18.08.2022 11:56

Hi, thanks for your efforts, I followed your steps but I got error,,, "unknown file suffix",, I ensued that the path is correct

Ответить
@manuelstuder766
@manuelstuder766 - 16.08.2022 03:44

Thank you :)

Ответить
@lmcdasm
@lmcdasm - 18.06.2022 10:36

sweet! thanks!

Ответить
@Rmly
@Rmly - 12.06.2022 17:17

thanks

Ответить
@Meerlu
@Meerlu - 10.03.2022 06:14

Thanks

Ответить
@ElastiCourse
@ElastiCourse - 15.02.2022 05:27

Command used in the video (Replace VMX file path with the one from the desired VM
"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" start "C:\Users\elastic\Documents\Virtual Machines\Docker\Docker.vmx"

For service VMs that don't need to appear on the screen (Run in the background) just add "nogui" as follows
"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" start "C:\Users\elastic\Documents\Virtual Machines\Docker\Docker.vmx" nogui

Alternative method to placing bat file in shell:startup is to run the bat file using Windows Task Scheduler, benefit of this method you can edit task properties and allow the command to run regardless ig you log in to Windows or not - very useful for DNS servers/AD Farms to work immediately on computer startup.

Ответить
@charleyboy74
@charleyboy74 - 21.12.2021 16:05

Really helpful, Thanks

Ответить
@yunusozan
@yunusozan - 04.12.2021 21:23

This method only works when user logs in. How to auto start when system start

Ответить
@hammedabudu4170
@hammedabudu4170 - 29.11.2021 18:32

Best shortest video i have watched this year

Ответить
@ehsanmirror
@ehsanmirror - 25.11.2021 13:16

great video, how to start multi vmx files in one command line?

Ответить
@ezclapz8766
@ezclapz8766 - 29.10.2021 10:44

Great Video - thescript did not work for me - the problem was with the last line pointing to the .vmx file - eg "T:\VMware\Windows 10\Windows 10.vmx" wasnt launching the vm even though the path was correct. The way i got around this was to simply create a shortcut of the vmx file and put that into startup - (The reasoning for this is double clicking this file would start the VMware Sotware and refrence the VM anyway - so copying this shortcut into the startup folder worked for me).

Ответить
@foxmorio
@foxmorio - 19.10.2021 10:05

thanks a lot and well detailed. one other thing, how can i have the cript working when the pc is locked by the administrator. right now the script works only if the admin is not locked. ,, thanks again..

Ответить
@alexandreveret5915
@alexandreveret5915 - 06.09.2021 11:11

Amazing ! Using it for launch Home Assistant !

Ответить
@llkrashll1
@llkrashll1 - 04.06.2021 17:04

Thanks!!

Ответить
@ouchsicle
@ouchsicle - 04.06.2021 09:19

Thankeee for that. Just wondering why such a simple and obvious function is not baked into the UI of WMWare.

Ответить
@Nipottaja
@Nipottaja - 23.04.2021 07:03

Can I make it to start in full screen?

Ответить
@ansred
@ansred - 25.03.2021 14:32

Great video! it worked for me very well.

"C:\Program Files (x86)\VMware\VMware VIX\vmrun.exe" start "T:\VMware\Windows 10\Windows 10.vmx"

Can you make a video on how to set that in a Scheduled Task and to run without a user logged in please.

Ответить
@spaddygmailco
@spaddygmailco - 12.01.2021 10:28

Good man great stuff hope your keeping well don't asked me why i said this but I just felt I needed to THANK YOU

Ответить
@henrybradshaw4305
@henrybradshaw4305 - 06.01.2021 11:23

Excellent video and very well explained. Additionally can I ask when the VM has started is it possible to make the VM full screen? I have an application running on an old OS. This OS is no longer supported. So my intention is to mount the VM on a new window 10 PC. But when the PC boots it does so directly to the VM so the User has immediate access to the VM without needing to resize the screen.

Ответить
@mmmmmmmmmmmmmmmmmmmmmmmmmm3153
@mmmmmmmmmmmmmmmmmmmmmmmmmm3153 - 20.12.2020 08:45

Friend I have 2 monitors, would it be possible to somehow make windows start on one monitor and vm on the other already with the system running?

Ответить
@dwightcampbell100
@dwightcampbell100 - 29.11.2020 20:02

Using VMWare Workstation version 15.5.6 build-16341506
Here's the entirety of my vmrun.cmd file in startup:shell

"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" start "C:\Users\Dwight\Documents\Virtual Machines\pfSense1\pfSense1.vmx"

The above command is all on one line. No CR/LF. Works perfectly. Thanks much!

Ответить
@mehdialasvand7838
@mehdialasvand7838 - 16.11.2020 15:05

Didn work for me...15.5 pro....it said "start" is not a virtual machine configuration file (.vmx).

Ответить