pub enum Guest {
Off,
Installing,
Installed,
Looping {
rounds: u32,
},
TemplateFirstBoot,
Panicked,
}Expand description
What the guest is doing. The mock keeps this even without the kvm feature,
because the API’s answers depend on it (an installer that loops never leaves
Installing) and because the KVM half must have somewhere to report to.
Variants§
Off
No medium, nothing to run.
Installing
The installer is running. ~10 s, and nothing narrates it: PID 1 brings no network up (behaviour 20) and there is no serial console (behaviour 13), so this window is silent by construction.
Installed
The installer finished and the box booted its disk.
Looping
The installer ran again, because the CD is still first in the boot order (behaviour 17). A mock whose guest could not do this could not reproduce the loop that cost an afternoon.
TemplateFirstBoot
The Ubuntu template’s first boot: dpkg lock-frontend is held by
unattended-upgrade-shutdown --wait-for-signal for the LIFE of the boot,
so an apt-get update blocks rather than failing (behaviour 21).
Panicked
PID 1 panicked. Invisible except on the framebuffer (behaviour 13).