Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running qemu remotely (via ssh)

I have a server that I am experimenting with, and sometimes I want to work from home so I installed the 'ssh daemon' (namely, 'sshd') and I can ssh to the server. This works fine. But when I try to run a virtual machine on the server with 'qemu', I get the following error Could not initialize SDL(No available video device) - exiting.

Is it possible to run qemu via ssh connection?

Note, I do not want to see the visual interface to the VM that I'm launching. I just want to to run.

like image 635
Ramzi Khahil Avatar asked Apr 09 '14 15:04

Ramzi Khahil


People also ask

How do I run a Virt Manager remotely?

Start virt-manager. Open the File->Add Connection menu. Input values for the hypervisor type, the connection, Connection->Remote tunnel over SSH, and enter the desired hostname, then click connection.

How do I connect to QEMU console?

You can access the monitor console from QEMU window either by a keyboard shortcut—press Ctrl–Alt–2 (to return to QEMU, press Ctrl–Alt–1)—or alternatively by clicking View in the QEMU GUI window, then compatmonitor0.


1 Answers

Try qemu -curses or qemu -nographic to bypass the SDL

like image 130
user3662901 Avatar answered Sep 16 '22 23:09

user3662901