-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Windows translate workflows to remove VMWare Tools and fix bugs (
#162) - Add additional tasks that normally get performed by instance_setup.ps1 to Windows import - Add sysprep option for Windows translate - Remove VMWare tTols it it is installed in Windows translate - Fix logging bug in daisy - Fix daisy workflow canceling on Ctrl-C bug - Don't double echo for image imort - Add some daisy instance status logging for import and Windows translate workflows
- Loading branch information
Showing
14 changed files
with
171 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-11.7 MB
daisy_workflows/image_import/windows/metadata_scripts/GCEMetadataScripts.exe
Binary file not shown.
16 changes: 0 additions & 16 deletions
16
daisy_workflows/image_import/windows/metadata_scripts/run_startup_scripts.cmd
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
daisy_workflows/image_import/windows/run_startup_scripts.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
@echo off | ||
REM Copyright 2017 Google Inc. All Rights Reserved. | ||
REM | ||
REM Licensed under the Apache License, Version 2.0 (the "License"); | ||
REM you may not use this file except in compliance with the License. | ||
REM You may obtain a copy of the License at | ||
REM | ||
REM http://www.apache.org/licenses/LICENSE-2.0 | ||
REM | ||
REM Unless required by applicable law or agreed to in writing, software | ||
REM distributed under the License is distributed on an "AS IS" BASIS, | ||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
REM See the License for the specific language governing permissions and | ||
REM limitations under the License. | ||
|
||
REM Give the network time to initialize. | ||
ping 127.0.0.1 -n 60 | ||
|
||
REM Enable inbound communication from the metadata server. | ||
netsh advfirewall firewall add rule name="Allow incoming from GCE metadata server" protocol=ANY remoteip=169.254.169.254 dir=in action=allow | ||
|
||
REM Enable outbound communication to the metadata server. | ||
netsh advfirewall firewall add rule name="Allow outgoing to GCE metadata server" protocol=ANY remoteip=169.254.169.254 dir=out action=allow | ||
|
||
REM This is needed for 2008R2 networking to work, this will fail on post 2008R2 but that's fine. | ||
for /f "tokens=2 delims=:" %%a in ( | ||
'ipconfig ^| find "Gateway"' | ||
) do ( | ||
netsh interface ipv4 set dnsservers "Local Area Connection" static address=%%a primary | ||
netsh interface ipv4 set dnsservers "Local Area Connection 2" static address=%%a primary | ||
netsh interface ipv4 set dnsservers "Local Area Connection 3" static address=%%a primary | ||
) | ||
|
||
start "" "C:\Program Files\Google\Compute Engine\metadata_scripts\GCEMetadataScripts.exe" "startup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.