]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Improve `virsh start --console` behavior
authorMarc Hartmayer <mhartmay@linux.ibm.com>
Thu, 28 Sep 2023 15:37:09 +0000 (17:37 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 24 Oct 2023 12:03:08 +0000 (14:03 +0200)
commita99ed65db2639de665dd0956f4c29964efbc000d
treeab2be935a4e2e954d436fa3aae61f94bcb4da0cf
parent49e3e7f9e83a5fced6c666d724cbc3edc0d362d0
Improve `virsh start --console` behavior

When starting a guest via libvirt (`virsh start --console`), early
console output was missed because the guest was started first and then
the console was attached. This patch changes this to the following
sequence:

1. create a paused guest
2. attach the console
3. resume the guest

Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c