You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
restore: carry a VNC password into the relaunch; drop the one-implementation Actions interfaces (#38)
* cut: drop the one-implementation Actions interfaces
cmd/vm and cmd/image each declared an Actions interface with a single
Handler behind it and a compile-time assertion to match; Command takes
the Handler.
* restore: carry a VNC password into the relaunch of a running VM
A running VM whose display is password-gated could only be restored by
stopping it first, since the password is never persisted. restore now
takes --vnc-password like start does and hands it to the relaunch; a
password-gated display without the flag is still refused before any
disk is touched. docs/snapshots.md states the rule and the window for
VMs launched before the password-set bit existed.
returnfmt.Errorf("vm %q is running; stop it first or pass --force to stop+restore", r.Name)
69
69
}
70
-
ifr.VNCDisp>=0&& (r.VNCPassSet||r.Netns!="") {
71
-
returnfmt.Errorf("vm %q serves a password-gated VNC display and a relaunch cannot carry the password; stop it, restore, then start --vnc %d --vnc-password", r.Name, r.VNCDisp)
0 commit comments