Re: [Users] trouble with pci passthrough

----_com.android.email_2982956924371410 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Itamar, Thanks for your reply. I tried and ro this with virsh + xml file and virt-manager. Confusing is that after the installation oVirt the device is not passed cleanly. Von Samsung-Tablet gesendetItamar Heim <iheim@redhat.com> hat geschrieben:On 01/06/2013 12:59 AM, Andreas Huser wrote:
hi everybody
i have trouble with pci passthrough of a parallel port adapter. I need this for a key dongle. The Server is a single machine and i want to use them with the all-in-one plugin from ovirt.
I do some tests with: Fedora 17, CentOS6.3, Oracle Linux 6.3 latest kernel, qemu-kvm and libvirt from repos. No extras or advanced configurations. Only a simple standard Server.
I install "yum groupinstall virtualization" + virt-manager and some other. I configure iommu, modul blacklist and some other.
Then i starting a Windows Server 2003 and assign the parallel adapter to the running server. I look in the device manager and found the adapter card. The dongle work finde and the Datev Lizenz Service are online.
.. so far so good
but when i install on the same Server ovirt. With same kernel qemu-kvm and libvirt! And i attach the adapter card to the windows server 2003 look in the device manager and found the card with a error "device cannot be start (code 10)"
I am now looking for several days after the error and have diverse tried but I can not keep going.
can someone help me?
Thanks & greetings Andreas
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
how did you attach the device via ovirt? ----_com.android.email_2982956924371410 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 PGh0bWw+PGhlYWQ+PG1ldGEgaHR0cC1lcXVpdj0iQ29udGVudC1UeXBlIiBjb250ZW50PSJ0ZXh0 L2h0bWw7IGNoYXJzZXQ9VVRGLTgiPjwvaGVhZD48Ym9keT48ZGl2PkhpIEl0YW1hciw8L2Rpdj48 ZGl2Pjxicj48L2Rpdj48ZGl2PlRoYW5rcyBmb3IgeW91ciByZXBseS48L2Rpdj48ZGl2PkkgdHJp ZWQgYW5kIHJvIHRoaXMgd2l0aCB2aXJzaCArIHhtbCBmaWxlIGFuZCB2aXJ0LW1hbmFnZXIuPC9k aXY+PGRpdj48YnI+PC9kaXY+PGRpdj48c3BhbiBjbGFzcz0iQXBwbGUtc3R5bGUtc3BhbiIgc3R5 bGU9ImZvbnQtZmFtaWx5OiBBcmlhbCwgSGVsdmV0aWNhLCBzYW5zLXNlcmlmOyAtd2Via2l0LXRl eHQtc2l6ZS1hZGp1c3Q6IG5vbmU7IGZvbnQtc2l6ZTogMTJweDsiPkNvbmZ1c2luZyBpcyB0aGF0 IGFmdGVyIHRoZSBpbnN0YWxsYXRpb24gb1ZpcnQgdGhlIGRldmljZSBpcyBub3QgcGFzc2VkIGNs ZWFubHkuPC9zcGFuPjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+PGJy PjwvZGl2PjxkaXY+PGRpdiBzdHlsZT0iZm9udC1zaXplOjEwMCUiPlZvbiBTYW1zdW5nLVRhYmxl dCBnZXNlbmRldDwvZGl2PjwvZGl2PiA8YnI+SXRhbWFyIEhlaW0gJmx0O2loZWltQHJlZGhhdC5j b20mZ3Q7IGhhdCBnZXNjaHJpZWJlbjo8YnI+ ----_com.android.email_2982956924371410--

This is a multi-part message in MIME format. --------------090302050509040009010605 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 2013-1-10 8:42, ahuser:
Hi Itamar,
Thanks for your reply. I tried and ro this with virsh + xml file and virt-manager.
I suppose you assigned the device to the virtual server successfully with virsh and virt-manager.
Confusing is that after the installation oVirt the device is not passed cleanly.
Do you mean the old virtual server which was created before oVirt installation was finally managed by oVirt? Or oVirt didn't manage this virtual server but the PCI device assigned to the virtual server disappeared?
Von Samsung-Tablet gesendet
Itamar Heim <iheim@redhat.com> hat geschrieben:
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- --- ?? Shu Ming Open Virtualization Engineerning; CSTL, IBM Corp. Tel: 86-10-82451626 Tieline: 9051626 E-mail: shuming@cn.ibm.com or shuming@linux.vnet.ibm.com Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC --------------090302050509040009010605 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body text="#000000" bgcolor="#FFFFFF"> <div class="moz-cite-prefix">2013-1-10 8:42, ahuser:<br> </div> <blockquote cite="mid:nqekscsbxyq2aotr1xblwgtw.1357777942376@email.android.com" type="cite"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <div>Hi Itamar,</div> <div><br> </div> <div>Thanks for your reply.</div> <div>I tried and ro this with virsh + xml file and virt-manager.</div> </blockquote> <br> I suppose you assigned the device to the virtual server successfully with virsh and virt-manager.<br> <br> <blockquote cite="mid:nqekscsbxyq2aotr1xblwgtw.1357777942376@email.android.com" type="cite"> <div><br> </div> <div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; -webkit-text-size-adjust: none; font-size: 12px;">Confusing is that after the installation oVirt the device is not passed cleanly.</span></div> </blockquote> <br> Do you mean the old virtual server which was created before oVirt installation was finally managed by oVirt? Or oVirt didn't manage this virtual server but the PCI device assigned to the virtual server disappeared? <br> <br> <blockquote cite="mid:nqekscsbxyq2aotr1xblwgtw.1357777942376@email.android.com" type="cite"> <div><br> </div> <div><br> </div> <div><br> </div> <div> <div style="font-size:100%">Von Samsung-Tablet gesendet</div> </div> <br> Itamar Heim <a class="moz-txt-link-rfc2396E" href="mailto:iheim@redhat.com"><iheim@redhat.com></a> hat geschrieben:<br> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <br> <br> <pre class="moz-signature" cols="72">-- --- 舒明 Shu Ming Open Virtualization Engineerning; CSTL, IBM Corp. Tel: 86-10-82451626 Tieline: 9051626 E-mail: <a class="moz-txt-link-abbreviated" href="mailto:shuming@cn.ibm.com">shuming@cn.ibm.com</a> or <a class="moz-txt-link-abbreviated" href="mailto:shuming@linux.vnet.ibm.com">shuming@linux.vnet.ibm.com</a> Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC</pre> </body> </html> --------------090302050509040009010605--

Hi Shu, it's very simple, when i install a simple Server Centos 6.3 + qemu-kvm + libvirtd + virt-manager. Then i have no Problems. I can assign the pci device with virt-manager or virsh and the PCI Device works perfect. But when i install on top on this Centos Server oVirt. The pci passthrough works not more cleanly. I see the Device on the destination Server (Windows Server 2003) but the divice have an error message. "device cannot be start (code 10)" I tasting this installation with Centos6.3, Oralce Linux 6.3, Fedora 17 and Fedora 18. regards Andreas ----- Ursprüngliche Mail ----- Von: "Shu Ming" <shuming@linux.vnet.ibm.com> An: "ahuser" <ahuser@7five-edv.de> CC: iheim@redhat.com, users@ovirt.org Gesendet: Donnerstag, 10. Januar 2013 02:35:37 Betreff: Re: [Users] trouble with pci passthrough 2013-1-10 8:42, ahuser: Hi Itamar, Thanks for your reply. I tried and ro this with virsh + xml file and virt-manager. I suppose you assigned the device to the virtual server successfully with virsh and virt-manager. <blockquote> Confusing is that after the installation oVirt the device is not passed cleanly. </blockquote> Do you mean the old virtual server which was created before oVirt installation was finally managed by oVirt? Or oVirt didn't manage this virtual server but the PCI device assigned to the virtual server disappeared? <blockquote> Von Samsung-Tablet gesendet Itamar Heim <iheim@redhat.com> hat geschrieben: _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users </blockquote> -- --- 舒明 Shu Ming Open Virtualization Engineerning; CSTL, IBM Corp. Tel: 86-10-82451626 Tieline: 9051626 E-mail: shuming@cn.ibm.com or shuming@linux.vnet.ibm.com Address: 3/F Ring Building, ZhongGuanCun Software Park, Haidian District, Beijing 100193, PRC

On 01/11/2013 10:46 AM, Andreas Huser wrote:
Hi Shu,
it's very simple, when i install a simple Server Centos 6.3 + qemu-kvm + libvirtd + virt-manager. Then i have no Problems. I can assign the pci device with virt-manager or virsh and the PCI Device works perfect.
But when i install on top on this Centos Server oVirt. The pci passthrough works not more cleanly. I see the Device on the destination Server (Windows Server 2003) but the divice have an error message. "device cannot be start (code 10)" I tasting this installation with Centos6.3, Oralce Linux 6.3, Fedora 17 and Fedora 18.
so you just installed oVirt engine and the guest which you are launching without ovirt stops using the pci, or are you actually launching the guest with ovirt?
regards Andreas
----- Ursprüngliche Mail -----
Von: "Shu Ming" <shuming@linux.vnet.ibm.com> An: "ahuser" <ahuser@7five-edv.de> CC: iheim@redhat.com, users@ovirt.org Gesendet: Donnerstag, 10. Januar 2013 02:35:37 Betreff: Re: [Users] trouble with pci passthrough
2013-1-10 8:42, ahuser:
Hi Itamar,
Thanks for your reply. I tried and ro this with virsh + xml file and virt-manager.
I suppose you assigned the device to the virtual server successfully with virsh and virt-manager.
<blockquote>
Confusing is that after the installation oVirt the device is not passed cleanly. </blockquote>
Do you mean the old virtual server which was created before oVirt installation was finally managed by oVirt? Or oVirt didn't manage this virtual server but the PCI device assigned to the virtual server disappeared?
<blockquote>
Von Samsung-Tablet gesendet Itamar Heim <iheim@redhat.com> hat geschrieben:
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users </blockquote>

Hi Shu,
it's very simple, when i install a simple Server Centos 6.3 + qemu-kvm + =
Then i have no Problems. I can assign the pci devicre with virt-manager o= r virsh and the PCI Device works perfect.
But when i install on top on this Centos Server oVirt. The pci passthroug= h works not more cleanly. I see the Device on the destination Server (Windows Server 2003) but the =
--=_f1c02aaa-36cc-4fe7-8a32-ae5538210160 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I launch the vm with ovirt and attach (if started) the pci device with virs= h attach-device w2k3-server parport. this procedure works fine befor ovirt = installation. sorry for my bad english :-) ----- Urspr=C3=BCngliche Mail ----- Von: "Itamar Heim" <iheim@redhat.com> An: "Andreas Huser" <ahuser@7five-edv.de> CC: "Shu Ming" <shuming@linux.vnet.ibm.com>, users@ovirt.org Gesendet: Freitag, 11. Januar 2013 11:36:04 Betreff: Re: [Users] trouble with pci passthrough On 01/11/2013 10:46 AM, Andreas Huser wrote: libvirtd + virt-manager. divice have an error message. "device cannot be start (code 10)"
I tasting this installation with Centos6.3, Oralce Linux 6.3, Fedora 17 a= nd Fedora 18.
so you just installed oVirt engine and the guest which you are launching without ovirt stops using the pci, or are you actually launching the guest with ovirt?
regards Andreas
----- Urspr=C3=BCngliche Mail -----
Von: "Shu Ming" <shuming@linux.vnet.ibm.com> An: "ahuser" <ahuser@7five-edv.de> CC: iheim@redhat.com, users@ovirt.org Gesendet: Donnerstag, 10. Januar 2013 02:35:37 Betreff: Re: [Users] trouble with pci passthrough
2013-1-10 8:42, ahuser:
Hi Itamar,
Thanks for your reply. I tried and ro this with virsh + xml file and virt-manager.
I suppose you assigned the device to the virtual server successfully with=
virsh and virt-manager.
Confusing is that after the installation oVirt the device is not passed c=
leanly.
Do you mean the old virtual server which was created before oVirt install=
ation was finally managed by oVirt? Or oVirt didn't manage this virtual ser= ver but the PCI device assigned to the virtual server disappeared?
<blockquote>
Von Samsung-Tablet gesendet Itamar Heim <iheim@redhat.com> hat geschrieben:
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinf=
o/users
</blockquote>
sorry for my bad english :-) <br><br></font><br><hr id=3D"zwchr"><div styl= e=3D"color:#000;font-weight:normal;font-style:normal;text-decoration:none;f= ont-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>Von: </b>"Itamar = Heim" <iheim@redhat.com><br><b>An: </b>"Andreas Huser" <ahuser@7fi= ve-edv.de><br><b>CC: </b>"Shu Ming" <shuming@linux.vnet.ibm.com>, = users@ovirt.org<br><b>Gesendet: </b>Freitag, 11. Januar 2013 11:36:04<br><b= Betreff: </b>Re: [Users] trouble with pci passthrough<br><br>On 01/11/2013= 10:46 AM, Andreas Huser wrote:<br>> Hi Shu,<br>><br>> it's very s= imple, when i install a simple Server Centos 6.3 + qemu-kvm + libvirtd + vi= rt-manager.<br>> Then i have no Problems. I can assign the pci devicre w= ith virt-manager or virsh and the PCI Device works perfect.<br>><br>>= But when i install on top on this Centos Server oVirt. The pci passthrough= works not more cleanly.<br>> I see the Device on the destination Server= (Windows Server 2003) but the divice have an error message. "device cannot= be start (code 10)"<br>> I tasting this installation with Centos6= .3, Oralce Linux 6.3, Fedora 17 and Fedora 18.<br><br>so you just installed= oVirt engine and the guest which you are launching <br>without ovirt stops= using the pci, or are you actually launching the <br>guest with ovirt?<br>= <br>><br>> regards<br>> Andreas<br>><br>><br>> ----- Ursp= r=C3=BCngliche Mail -----<br>><br>> Von: "Shu Ming" <shuming@linux= .vnet.ibm.com><br>> An: "ahuser" <ahuser@7five-edv.de><br>> = CC: iheim@redhat.com, users@ovirt.org<br>> Gesendet: Donnerstag, 10. Jan= uar 2013 02:35:37<br>> Betreff: Re: [Users] trouble with pci passthrough= <br>><br>><br>> 2013-1-10 8:42, ahuser:<br>><br>><br>><br= > Hi Itamar,<br>><br>><br>> Thanks for your reply.<br>> I t= ried and ro this with virsh + xml file and virt-manager.<br>><br>><br= > I suppose you assigned the device to the virtual server successfully = with virsh and virt-manager.<br>><br>><br>> <blockquote><br>= ><br>><br>><br>> Confusing is that after the installation oVirt=
--=_f1c02aaa-36cc-4fe7-8a32-ae5538210160 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <html><head><style type=3D'text/css'>p { margin: 0; }</style></head><body><= div style=3D'font-family: arial,helvetica,sans-serif; font-size: 10pt; colo= r: #000000'><span name=3D"x"></span><font size=3D"3">I launch the vm with o= virt and attach (if started) the pci device with virsh attach-device w2k3-s= erver parport. this procedure works fine befor ovirt installation.<br= the device is not passed cleanly.<br>> </blockquote><br>><br>&= gt; Do you mean the old virtual server which was created before oVirt insta= llation was finally managed by oVirt? Or oVirt didn't manage this virtual s= erver but the PCI device assigned to the virtual server disappeared?<br>>= ;<br>><br>> <blockquote><br>><br>><br>><br>><br>>= ;<br>><br>><br>><br>> Von Samsung-Tablet gesendet<br>> Itama= r Heim <iheim@redhat.com> hat geschrieben:<br>><br>><br>> __= _____________________________________________<br>> Users mailing list Us= ers@ovirt.org http://lists.ovirt.org/mailman/listinfo/users<br>> </bl= ockquote><br>><br>><br><br><br></div><br></div></body></html> --=_f1c02aaa-36cc-4fe7-8a32-ae5538210160--

On 01/11/2013 02:09 PM, Andreas Huser wrote:
I launch the vm with ovirt and attach (if started) the pci device with virsh attach-device w2k3-server parport. this procedure works fine befor ovirt installation.
I think a better way to attach the pci device in ovirt would be via a custom vdsm hook and a custom property on the vm, then via virsh. I'm assuming that in order to use virsh you had to use the password vdsm set to libvirt?
sorry for my bad english :-)
------------------------------------------------------------------------ *Von: *"Itamar Heim" <iheim@redhat.com> *An: *"Andreas Huser" <ahuser@7five-edv.de> *CC: *"Shu Ming" <shuming@linux.vnet.ibm.com>, users@ovirt.org *Gesendet: *Freitag, 11. Januar 2013 11:36:04 *Betreff: *Re: [Users] trouble with pci passthrough
Hi Shu,
it's very simple, when i install a simple Server Centos 6.3 + qemu-kvm + libvirtd + virt-manager. Then i have no Problems. I can assign the pci devicre with virt-manager or virsh and the PCI Device works perfect.
But when i install on top on this Centos Server oVirt. The pci
I see the Device on the destination Server (Windows Server 2003) but
On 01/11/2013 10:46 AM, Andreas Huser wrote: passthrough works not more cleanly. the divice have an error message. "device cannot be start (code 10)"
I tasting this installation with Centos6.3, Oralce Linux 6.3, Fedora 17 and Fedora 18.
so you just installed oVirt engine and the guest which you are launching without ovirt stops using the pci, or are you actually launching the guest with ovirt?
regards Andreas
----- Ursprüngliche Mail -----
Von: "Shu Ming" <shuming@linux.vnet.ibm.com> An: "ahuser" <ahuser@7five-edv.de> CC: iheim@redhat.com, users@ovirt.org Gesendet: Donnerstag, 10. Januar 2013 02:35:37 Betreff: Re: [Users] trouble with pci passthrough
2013-1-10 8:42, ahuser:
Hi Itamar,
Thanks for your reply. I tried and ro this with virsh + xml file and virt-manager.
I suppose you assigned the device to the virtual server successfully
with virsh and virt-manager.
<blockquote>
Confusing is that after the installation oVirt the device is not
passed cleanly.
</blockquote>
Do you mean the old virtual server which was created before oVirt installation was finally managed by oVirt? Or oVirt didn't manage this virtual server but the PCI device assigned to the virtual server disappeared?
<blockquote>
Von Samsung-Tablet gesendet Itamar Heim <iheim@redhat.com> hat geschrieben:
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users </blockquote>
participants (4)
-
ahuser
-
Andreas Huser
-
Itamar Heim
-
Shu Ming