I am trying to get going with CentOS 8. In the past I would run qemu-system-x86_64 -hda myfile.img get a console and off we go. I dont with to use virt-manager and the gui and all - I just wish to have a similar command line to boot up and run my img. Is there something like that I'm not finding ? I have found virsh - but I dont see how to make it run with an image file from the command line. Perhaps I'm missing something. Thanks, Jerry
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. Jerry
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
On Nov 18, 2019, at 17:05, Jerry Geis <jerry.geis at gmail.com> wrote:> > I am trying to get going with CentOS 8. > > In the past I would run qemu-system-x86_64 -hda myfile.img > get a console and off we go. > > I dont with to use virt-manager and the gui and all - I just wish to have a > similar > command line to boot up and run my img. > Is there something like that I'm not finding ? > > I have found virsh - but I dont see how to make it run with an image file > from the command line. Perhaps I'm missing something.I would suggest virt-install with the ?import optionif you want a console to pop up. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-guest_virtual_machine_installation_overview-creating_guests_with_virt_install -- Jonathan Billings