[libvirt-users] usb post passthough stopped workng after kernel upgrade

2018-11-05 Thread daggs
Greetings,

I have a vm on debian 9.5 to which I pass an specific usb from the host. here 
is the relevant part in the vm's xml file:

  


  
  

the address line was added automatically by libvirt.
everything was working well with kernel 4.15.11-1~bpo9+1 until I needed to 
upgrade the kernel to latest possible version due to usb issues
I've upgraded to 4.18.6-1~bpo9+1. after the upgrade, my vm doesn't starts 
anymore, I see this msg:
error: Failed to start domain router
error: internal error: qemu unexpectedly closed the monitor: 
2018-11-02T13:43:32.174730Z qemu-system-x86_64: -device 
usb-host,hostbus=1,hostaddr=4,id=hostdev4,bus=usb.0,port=1: failed to find host 
usb device 1:4

how can a kernel upgrade cause this? is there a fix for this issue?

Thanks,

Dagg.

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


Re: [libvirt-users] Hello World

2018-11-05 Thread Michal Privoznik
On 11/05/2018 03:07 PM, Ameya Sinha wrote:
> Hello Everyone!
> 
> I'm Ameya Sinha, a student, and I wanted to contribute to the
> libvirt organization. I have read through the contributing guidelines (
> https://libvirt.org/contribute.html) and contributor guidelines (
> https://libvirt.org/hacking.html). Can someone suggest how should I
> proceed from here?

Welcome!

It's always nice to see people interested in libvirt. Besides what Erik
wrote I can suggest writing completers. But that depends what your area
of interest is.

Completers are small functions that are called from virsh whenever user
started typing something and hit TAB TAB. Their purpose is to offer list
of strings that suit entered input. If there is only one item on the
list then it's entered in automatically. For instance:

virsh # dom
domblkerror domblkstat  domcontrol  domfsinfo ..

virsh # start --domain 
fedora   fedora.i686  freebsd  gentoo ...

(this will vary depending on your domains intalled)


The framework is merged, the only thing that is missing are these small
functions (called callbacks) that are called by the framework at
appropriate times. For instance: virshDomainNameCompleter() is called
whenever a domain name is to be completed (just like we've seen for
virsh start example).


I find writing completers to be a nice introduction into libvirt because
they use our public APIs therefore one gets sense of libvirt. But feel
free to chose anything, I'm just putting it out there.


Michal

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


Re: [libvirt-users] Hello World

2018-11-05 Thread Erik Skultety
On Mon, Nov 05, 2018 at 07:37:17PM +0530, Ameya Sinha wrote:
> Hello Everyone!
>
> I'm Ameya Sinha, a student, and I wanted to contribute to the
> libvirt organization. I have read through the contributing guidelines (
> https://libvirt.org/contribute.html) and contributor guidelines (
> https://libvirt.org/hacking.html). Can someone suggest how should I
> proceed from here?

Welcome!

We created a wiki page for this purpose [1] with small tasks which ought to
help new contributors to get going and also get familiar with libvirt a bit
more along the way.

[1] https://wiki.libvirt.org/page/BiteSizedTasks

Regards,
Erik

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


[libvirt-users] Hello World

2018-11-05 Thread Ameya Sinha
Hello Everyone!

I'm Ameya Sinha, a student, and I wanted to contribute to the
libvirt organization. I have read through the contributing guidelines (
https://libvirt.org/contribute.html) and contributor guidelines (
https://libvirt.org/hacking.html). Can someone suggest how should I
proceed from here?

Thank You,
Ameya Sinha
___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] How can I rebase network disk?

2018-11-05 Thread Peter Krempa
On Fri, Nov 02, 2018 at 13:42:56 +0800, Boxiang Zhu wrote:
> 
> 
> Hi.
> I am using openstack, ceph and libvirt now.
> 
> 
> The live volume migration will call the libvirt rebase function in 
> openstack nova project.
> 
> https://github.com/openstack/nova/blob/stable/rocky/nova/virt/libvirt/driver.py#L1497
> 
> https://github.com/openstack/nova/blob/stable/rocky/nova/virt/libvirt/guest.py#L802
> 
> 
> But I use the ceph as the openstack block backend. And the type of disk 
> is network in xml.
> 
>   
>   
> 
>   
>name='volumes002/volume-127f46fc-ef10-4462-af30-c3893cda31f9'>
> 
>   
>   
>   127f46fc-ef10-4462-af30-c3893cda31f9
>   
>   
> 
> 
> 
> Now I found it is not supported to rebase network disk. It is only rebase 
> block or file disk now.
> https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockRebase
> 
> 
> My question is that can I rebase network disk by some other ways from 
> libvirt?

Whic operation of "rebase" do you mean? Unfortunately we've implemented
the virDomainBlockCopy API also using a flag-hack with the rebase api.
Are you passing in VIR_DOMAIN_BLOCK_REBASE_COPY?

If yes, then you in fact should use virDomainBlockCopy API which takes
an XML which allows to specify also a network based disk. The support
for block copy to a network destination will be added soon as I'm
working on it.

Without the VIR_DOMAIN_BLOCK_REBASE_COPY flag it should work as
expected right now, since it pulls in changes from backing files.


signature.asc
Description: PGP signature
___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Re: [libvirt-users] Windows guest skipping chkdsk if using Spice display

2018-11-05 Thread Erik Skultety
On Fri, Oct 26, 2018 at 09:13:59AM +0200, Gionatan Danti wrote:
> On 19/10/2018 08:13, Gionatan Danti wrote:
> > Il 17-10-2018 09:15 Gionatan Danti ha scritto:
> > > Hi all,
> > > as per subject, when a Windows guest using a Spice display is rebooted
> > > with a planned chkdsk, the consistency check is always skipped.
> > >
> > > It seems that the Spice display issues some "phantom" keystrokes,
> > > which are then intended by Windows as the "skip chkdsk at boot"
> > > signal.
> > >
> > > I tried to use a Spice display with no additional features (ie: USB
> > > redirection), but to no avail. To workaround the problem I must use a
> > > VNC display, which is less featureful than the Spice one.
> > >
> > > My system and package versions are:
> > > CentOS 7.5 x86-64
> > > spice-gtk3-0.34-3.el7_5.1.x86_64
> > > spice-server-0.14.0-2.el7_5.4.x86_64
> > > spice-glib-0.34-3.el7_5.1.x86_64
> > > libvirt-3.9.0-14.el7_5.7.x86_64
> > > qemu-kvm-ev-2.10.0-21.el7_5.4.1.x86_64
> > >
> > > It seems I am not the only one experiencing this problem:
> > > http://seifesrants.blogspot.com/2016/07/ghost-keystrokes-with-libvirt-kvm-spice.html
> > >
> > >
> > > Any suggestion?
> > > Thanks.
> >
> > Hi all, anyone with some clue on what it is happening here?
> > Thanks.
> >
>
> Hi all,
> nobody has similar problems with the Spice display?

This doesn't really sound like a libvirt issue, CCing spice list for
investigation.

Erik

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users