[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] libvirt doesn't work with qemu 1.0



On 01/26/2012 01:46 PM, Eric Blake wrote:
> On 01/26/2012 02:41 AM, Paolo Bonzini wrote:
>> On 01/26/2012 04:55 AM, Eric Blake wrote:
>>>
>>> $ /usr/libexec/qemu-kvm -qmp stdio -S -display none
>>> qemu-kvm: -display: invalid option
>>> $ /usr/libexec/qemu-kvm -qmp stdio -S -nographic
>>> chardev: opening backend "stdio" failed
>>> qemu: could not open serial device 'stdio': Argument list too long
>>
>> Have you tried -nodefaults?
> 
> Just did.  It still spawns a VNC server.
> 
> $ (sleep .1; printf
> '{"execute":"qmp_capabilities"}\n{"execute":"quit"}\n') |\
>     /usr/libexec/qemu-kvm -qmp stdio -S -nodefaults
> VNC server running on `127.0.0.1:5902'
> {"QMP": {"version": {"qemu": {"micro": 1, "minor": 12, "major": 0},
> "package": "(qemu-kvm-0.12.1.2)"}, "capabilities": []}}
> {"return": {}}
> {"return": {}}
> {"timestamp": {"seconds": 1327581922, "microseconds": 434736}, "event":
> "SHUTDOWN"}

What about both? :)

$ (sleep .1; echo $'{"execute":"qmp_capabilities"}\n{"execute":"quit"}') | \
  /usr/libexec/qemu-kvm -qmp stdio -S -nographic -nodefaults
{"QMP": {"version": {"qemu": {"micro": 1, "minor": 12, "major": 0}, "package": "(qemu-kvm-0.12.1.2)"}, "capabilities": []}}
{"return": {}}
{"return": {}}
{"timestamp": {"seconds": 1327582368, "microseconds": 685740}, "event": "SHUTDOWN"}

(I was a bit too terse, -nodefaults is a way to fix the error message,
not the whole mess).

Paolo


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]