qemu-discuss
[Top][All Lists]
Advanced

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

Re: [Qemu-discuss] fail to connect qemu process's channel


From: Jakob Bohm
Subject: Re: [Qemu-discuss] fail to connect qemu process's channel
Date: Mon, 06 May 2013 13:28:21 +0200
User-agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

On 5/6/2013 7:23 AM, yue-kvm wrote:
hi,all
 it waiting all the time
At what line in the below program?

Which language is this?
---------------------
import os, sys
import time
import socket
import logging
sys.path.append("/usr/share/vdsm")
from vmChannels import Listener
import threading
import guestIF
import supermcvda
import json
_guestSocketFile = "/var/lib/libvirt/qemu/channels/winxp.com.redhat.rhevm.vdsm"
Are you sure this is the right path and socket name?
_sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
_sock.setblocking(1)
try:
        _sock.connect(_guestSocketFile)
except Exception as err:
        print err
        exit(1)
args={'__name__':'log-off'}
message = (json.dumps(args) + '\n').encode('utf8')
time.sleep(1)
_sock.send(message)
print _sock.recv(2 ** 10)


Also:

What qemu version?

What versions of other software?

Which of the qemu-defined sockets is this (obviously, some other program, name unspecified,
would need to tell qemu to listen for something on that socket name)?

Or is this a socket that does not talk to qemu at all, only to some other program that in turn
has some unspecified relationship with qemu?


Enjoy

Jakob
-- 
Jakob Bohm, CIO, Partner, WiseMo A/S.  http://www.wisemo.com
Transformervej 29, 2730 Herlev, Denmark.  Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded

reply via email to

[Prev in Thread] Current Thread [Next in Thread]