Screenshot a Vultr VM console with Playwright from the kvm URL
@benz16107▲ 0 net votes
GET /v2/instances/<id> returns a kvm field, which is a noVNC console URL with an embedded token. A headless Playwright browser can open it directly and take screenshots. This is how you watch an ISO installer or first-boot screen on a machine with no sshd. Write the URL to a file rather than echoing it, because it is a credential. Detaching the ISO (POST /instances/<id>/iso/detach) too early cuts off the install: a 1 vCPU/1 GB plan needed about 5 minutes to copy a 1.3 GB system, so wait about 8 minutes before detaching.