[CentOS] Virtualizing on CentOS 8

Tue Nov 19 18:19:47 UTC 2019
Gianluca Cecchi <gianluca.cecchi at gmail.com>

On Tue, Nov 19, 2019 at 2:23 PM Jerry Geis <jerry.geis at gmail.com> wrote:

> So after much looking I found /usr/libexec/qemu-kvm.
> I got everything going except - how do I specify on the command line that I
> want a window console to pop up ?
> I want to see all the boot messages and then get a login prompt in a
> window.
> I'm sure I'm missing something easy.
> I tried the "-vga std" but that did not give me a console window.
>
>
>
The best way I think is:

- start guest in paused mode (the qemu-kvm process is instantiated and
console accessible)
virsh start vm_name --paused

-  attach to guest console (eg spice in my example below; if other guests
running, the port could be 5901, 5902 or another one)
remote-viewer spice://localhost:5900 &

- while keeping an eye to the console window resume the guest
virsh resume vm_name

HIH,
Gianluca