compute
Serial Logs
When SSH isn't an option โ kernel panics, broken networking, mis-set firewalls โ serial logs are how you find out what went wrong.
Every Excloud VM has a virtual serial console attached. Whatever the kernel and bootloader would print to a physical serial port โ boot messages, panics, getty prompts โ is captured and streamable on demand.
This is the tool to reach for when:
- A VM came up but you canโt SSH into it.
- You changed networking or
iptablesand locked yourself out. - The kernel is unhappy and
journalctlisnโt enough. - You want to confirm a cloud-init script ran.
Tail the live console
exc compute seriallogs --id 42 --follow
--follow polls for new lines and streams them to stdout, like tail -f. Stop with Ctrl-C.
Single fetch
exc compute seriallogs --id 42 --limit 1000
| Flag | Purpose |
|---|---|
--id | VM ID |
--boot_id | Specific boot; omit for the latest boot |
--limit | Up to 1000 lines per call (default 200) |
--offset | Cursor โ pass the last offset you saw |
--direction | older or newer โ which way the cursor moves |
-f, --follow | Stream new lines |
Paging
Serial logs use cursor pagination, not page numbers. A typical โscroll backโ loop:
- Fetch
--limit 1000 --direction older. - The response includes the offset of the oldest line.
- Call again with that offset until youโve reached the beginning of the buffer.
direction=newer scrolls forward; direction=older scrolls backward. Mix both if you want to anchor on a specific timestamp and read in both directions.
Open an interactive console
Serial logs are read-only. To get an interactive console (e.g. type at a getty prompt during boot), use:
exc compute console --vm_id 42
Required permission
The action is compute:instance:list today (serial logs are read-only and treated as inspection). For policy examples see the Policies guide.