Comments (3)
maybe this bring some light: I was launching on instance at a time and also connecting to the serial to see what happens when that WaitForInstanceSignal
fails:
Serial log snip:
Jul 20 13:56:27 inst-quick-test0-quick-test-gbqm8 startup-script: INFO Starting startup scripts.
Jul 20 13:56:27 inst-quick-test0-quick-test-gbqm8 google-clock-skew: INFO Clock drift token has changed: 0.
Jul 20 13:56:27 inst-quick-test0-quick-test-gbqm8 google-networking: INFO Starting Google Networking daemon.
Jul 20 13:56:27 inst-quick-test0-quick-test-gbqm8 startup-script: INFO Found startup-script in metadata.
Jul 20 13:56:27 inst-quick-test0-quick-test-gbqm8 network-setup: INFO Ethernet interfaces: ['eth0'].
Jul 20 13:56:27 inst-quick-test0[ 4.824409] sysrq: SysRq : -quick-test-gbqmPower Off
8 root: BOOTED
[ 4.825329] sd 0:0:1:0: [sda] Synchronizing SCSI cache
[ 4.826513] ACPI: Preparing to enter system sleep state S5
[ 4.827328] reboot: Power down
serialport: VM disconnected.
Connection to ssh-serialport.googleapis.com closed.
and the daisy job failed due to timeout, so it didn't match that BOOTED that is visible on the serial despite it looking that some buffer issue occurred ("Power Off\n" stepped in the middle of the line related to the "BOOTED" message).
from compute-image-tools.
Relying on serial output can be really finicky, there's a number of things that can go wrong that are beyond our control, Linux is much worse here than Windows since multiple programs write to ttyS01, and the startup scripts don't even write directly, they go through syslog and we rely on that to log to the serial console. In the future we may have a better mechanism for getting data out of the instance, but for now some things I've found that help:
- Always run 'sync' at the end of your script, or after writing important content to the serial port
- Add sleeps to ensure the serial console can be read before shutdown (no serial access after instance shutdown, daisy only polls every second or even longer depending on API latency, this is why you may not see the whole log)
- Try using another serial port to avoid system contention, this obviously doesnt work with just an echo in the startup script, your have to redirect to ttyS02 or something
- If all else fails try double writing to ensure you messages don't get garbled
from compute-image-tools.
very useful hints! Thanks. I'll try my best to improve them and hopefully get better results on useful workloads.
from compute-image-tools.
Related Issues (20)
- Incorrect hostname for VMs with multiple network interfaces
- panic: runtime error: invalid memory address or nil pointer dereference on Ubuntu 20.04
- Issue with bootstrap_install.ps1 HOT 2
- `import_precheck` fails on CentOS 7 HOT 2
- importing process interrupted when `/etc/netplan` contains subdirectory (Ubuntu 18+) HOT 1
- getting error while importing my ubuntu 2004vmdk into compute instance HOT 1
- Execution fails when shielded VMs org policy is enforced HOT 3
- GCE_Export Release Version access_denied HOT 1
- daisy release version has access denied HOT 1
- Should this be more than 1 GB?
- gcloud compute images import does not allow centos-8 in option --os HOT 1
- Compute engine create with container + SSD
- Could not fetch resource
- Semidev1
- Shared VPC issue during build
- Deployments of UBUNTU with "snapd" (google tool use this snapd?) HOT 3
- windows-startup-script-url: Message: Either the Name or Index parameter is required HOT 2
- Workflow update required for windows-10-20h2-ent-x86
- Fix the setting for 'x86_build' and maybe 'uefi_build' on the 'windows-build-bios.wf.json'
- Create custom Windows BYOL images failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compute-image-tools.