-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvbinit.bat
More file actions
32 lines (28 loc) · 731 Bytes
/
vbinit.bat
File metadata and controls
32 lines (28 loc) · 731 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
:: init and shutdown vbox machine in windows 7
:: run headless vm and mount nfs shares
:: copy to desktop and click it
:: before rpi dns load vm dns now is commented
@echo off
set flag=C:\vmstarted
set prefix=C:\Program Files\Oracle\VirtualBox
if exist %flag% (
set cmd=VBoxManage
set action=controlvm
set subfix=savestate
del %flag%
) else (
copy /y NUL %flag% >NUL
set cmd=VBoxManage
set action=startvm
set subfix=--type headless
)
::"%prefix%\%cmd%" %action% named %subfix%
::timeout 10
"%prefix%\%cmd%" %action% puppet %subfix%
"%prefix%\%cmd%" %action% django %subfix%
::if exist %flag% (
:: timeout 20
:: ipconfig /flushdns
:: ipconfig /registerdns
::)
mount -o anon,nolock,casesensitive=yes \\django\share z: