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

When starting a guest via libvirt (`virsh create --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 transient 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