title: how to log into cloud image using qemu
body: <p>I am following this guide <a href="https://powersj.io/posts/ubuntu-qemu-cli/" rel="nofollow noreferrer">https://powersj.io/posts/ubuntu-qemu-cli/</a> but i seem to get stuck in the login prompt at when i run</p>
  <pre><code>qemu-system-x86_64  \
    -machine accel=kvm,type=q35 \
    -cpu host \
    -m 2G \
    -nographic \
    -device virtio-net-pci,netdev=net0 \
    -netdev user,id=net0,hostfwd=tcp::2222-:22 \
    -drive if=virtio,format=qcow2,file=focal-server-cloudimg-amd64.img \
    -drive if=virtio,format=raw,file=seed.img
  
  I dont know what the user and password would be. I also am unable to exit this screen so I have to open another terminal and kill it.
  
  
  Do I need to leave an `&amp;` to leave it running in background?
  </code></pre>