0

Qemu is new software for me but I want to use existing VM from disk image. So what was done:

  • Bridge was added ho host OS (Ubuntu 20)

  • I installed qemu-kvm

  • VM was launched with this command

    virt-install --name=test11-vm --os-type=generic --vcpu=2 --ram=512 --disk /home/test11/rename.qcow2,format=qcow2 --boot hd --network bridge:br0 --graphics=vnc --console pty,target_type=serial -v

And my questions are:

  • How can I launch it like a service (in background)?
  • How can I get an access to VM's console from host?

Thanks in advance.

3
  • 3
    Just install libvirt as a layer above qemu/kvm: this will save you a lot of efforts.
    – A.B
    Oct 11 at 20:32
  • I realize late that virt-install means libvirt (or related parts) is (are) probably installed. If not it should be. virt-manager (provided from same sources as virt-install) has GUI settings and features to address the two bullets.
    – A.B
    Oct 12 at 9:08
  • I don't have a GUI, it's Ubuntu server. Oct 12 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.