search for: newstream

Displaying 12 results from an estimated 12 matches for "newstream".

Did you mean: netstream
2016 Apr 17
2
stream finish throws exception via python API
Hi, The following snippet works fine e.g. receiving the data but when calling stream.finish() we get the following error: stream = con.newStream() vol.download(stream, 0, 0, 0) buf = stream.recv(1024) stream.finish() libvirt: I/O Stream Utils error : internal error: I/O helper exited abnormally Traceback (most recent call last): File "./helpers/kvm2ovirt", line 149, in <module> download_volume(vol, item[1], diskno, di...
2019 Mar 04
1
How do I close a console connection?
I'm working on (re-) implementing serial console support in virtualbmc [1], and one of the issues I'm hitting right now is that after establishing a console connection via... self._stream = self._conn.newStream(libvirt.VIR_STREAM_NONBLOCK) self._domain.openConsole(None, self._stream, 0) ...I can't figure out how to close the console. Subsequent calls to openConsole fail because "a console connection is already open". I thought maybe I should close the stream, but that doesn't appea...
2016 Apr 25
2
Re: stream finish throws exception via python API
On 04/25/2016 08:10 AM, Shahar Havivi wrote: > On 17.04.16 15:41, Shahar Havivi wrote: >> Hi, >> The following snippet works fine e.g. receiving the data but when calling >> stream.finish() we get the following error: >> >> stream = con.newStream() >> vol.download(stream, 0, 0, 0) >> buf = stream.recv(1024) >> stream.finish() >> >> libvirt: I/O Stream Utils error : internal error: I/O helper exited abnormally >> Traceback (most recent call last): >> File "./helpers/kvm2ovirt", line 149,...
2016 Apr 26
2
Re: stream finish throws exception via python API
...Havivi wrote: > > > On 17.04.16 15:41, Shahar Havivi wrote: > > >> Hi, > > >> The following snippet works fine e.g. receiving the data but when calling > > >> stream.finish() we get the following error: > > >> > > >> stream = con.newStream() > > >> vol.download(stream, 0, 0, 0) > > >> buf = stream.recv(1024) > > >> stream.finish() > > >> > > >> libvirt: I/O Stream Utils error : internal error: I/O helper exited abnormally > > >> Traceback (most recent call last):...
2016 Apr 26
2
Re: stream finish throws exception via python API
...On 17.04.16 15:41, Shahar Havivi wrote: >>>>>> Hi, >>>>>> The following snippet works fine e.g. receiving the data but when calling >>>>>> stream.finish() we get the following error: >>>>>> >>>>>> stream = con.newStream() >>>>>> vol.download(stream, 0, 0, 0) >>>>>> buf = stream.recv(1024) >>>>>> stream.finish() >>>>>> >>>>>> libvirt: I/O Stream Utils error : internal error: I/O helper exited abnormally >>>>>&gt...
2016 Apr 26
2
Re: stream finish throws exception via python API
...>>>>>>>> Hi, >>>>>>>> The following snippet works fine e.g. receiving the data but when calling >>>>>>>> stream.finish() we get the following error: >>>>>>>> >>>>>>>> stream = con.newStream() >>>>>>>> vol.download(stream, 0, 0, 0) >>>>>>>> buf = stream.recv(1024) >>>>>>>> stream.finish() >>>>>>>> >>>>>>>> libvirt: I/O Stream Utils error : internal error: I/O helper e...
2016 Apr 25
0
Re: stream finish throws exception via python API
On 17.04.16 15:41, Shahar Havivi wrote: > Hi, > The following snippet works fine e.g. receiving the data but when calling > stream.finish() we get the following error: > > stream = con.newStream() > vol.download(stream, 0, 0, 0) > buf = stream.recv(1024) > stream.finish() > > libvirt: I/O Stream Utils error : internal error: I/O helper exited abnormally > Traceback (most recent call last): > File "./helpers/kvm2ovirt", line 149, in <module> >...
2016 Apr 26
0
Re: stream finish throws exception via python API
...On 04/25/2016 08:10 AM, Shahar Havivi wrote: > > On 17.04.16 15:41, Shahar Havivi wrote: > >> Hi, > >> The following snippet works fine e.g. receiving the data but when calling > >> stream.finish() we get the following error: > >> > >> stream = con.newStream() > >> vol.download(stream, 0, 0, 0) > >> buf = stream.recv(1024) > >> stream.finish() > >> > >> libvirt: I/O Stream Utils error : internal error: I/O helper exited abnormally > >> Traceback (most recent call last): > >> File "./...
2014 May 26
0
How to open virtual machine console using python libvirt.
Hi, How to open virtual machine console using python libvirt. I tried openConsole function,it returning integer 0 and not opening any console. code ====  import libvirt  conn = libvirt.open('qemu+ssh://root@192.168.1.6/system')  vm=conn.lookupByName("vm1-1")  stream=onn.newStream(libvirt.VIR_STREAM_NONBLOCK)  vm.openConsole(None,stream, 0) Regards,  Deepak S   ------------------------- Message sent via Atmail Open - http://atmail.org/
2016 Apr 26
0
Re: stream finish throws exception via python API
...> On 17.04.16 15:41, Shahar Havivi wrote: > > > >> Hi, > > > >> The following snippet works fine e.g. receiving the data but when calling > > > >> stream.finish() we get the following error: > > > >> > > > >> stream = con.newStream() > > > >> vol.download(stream, 0, 0, 0) > > > >> buf = stream.recv(1024) > > > >> stream.finish() > > > >> > > > >> libvirt: I/O Stream Utils error : internal error: I/O helper exited abnormally > > > >> Trac...
2016 Apr 27
0
Re: stream finish throws exception via python API
...>>> Hi, > >>>>>>>> The following snippet works fine e.g. receiving the data but when calling > >>>>>>>> stream.finish() we get the following error: > >>>>>>>> > >>>>>>>> stream = con.newStream() > >>>>>>>> vol.download(stream, 0, 0, 0) > >>>>>>>> buf = stream.recv(1024) > >>>>>>>> stream.finish() > >>>>>>>> > >>>>>>>> libvirt: I/O Stream Utils error : int...
2016 Apr 26
0
Re: stream finish throws exception via python API
...hahar Havivi wrote: >>>>>>> Hi, >>>>>>> The following snippet works fine e.g. receiving the data but when calling >>>>>>> stream.finish() we get the following error: >>>>>>> >>>>>>> stream = con.newStream() >>>>>>> vol.download(stream, 0, 0, 0) >>>>>>> buf = stream.recv(1024) >>>>>>> stream.finish() >>>>>>> >>>>>>> libvirt: I/O Stream Utils error : internal error: I/O helper exited abnormally &gt...