Re: [CentOS-virt] [x-post] Upstream possible patches to libvirt to enable building upstream libvirt packages with libxl

2016-05-16 Thread Jean-Marc Liger

Le 15/05/2016 à 20:42, Le Nucksi a écrit :


On 05/14/2016 07:16 AM, Le Nucksi wrote:

Hello list,

is there a way to get more recent libvirt builds for CentOS 7 that include
support for the xl (modern Xen) toolstack?

I tried to build libvirt from the SRPM, which succeeded, however, without
the mentioned Xen parts.
I have also found two repos from people who provide upstream libvirt builds
for CentOS 7, again, without the Xen parts.
- https://copr.fedorainfracloud.org/coprs/jmliger/virt7-upstream/ and
- https://build.opensuse.org/package/show/home:aevseev/libvirt

Within the CentOS virtualization SIG builds for Xen there is a 1.3.x build
of libvirt that includes support for the modern Xen toolstack.
Would it be possible to inline this into the upstream to enable building it
with Xen features on CentOS 7 such that the aforementioned people's RPMs
would contain it?

I appreciate any enlightment on the topic.

I think you should either contact the owners of those libvirt repos, or
contact the centos virt sig. I don't know if anyone on these lists is directly
involved with those repos

- Cole



Hy,

I am maintening the firt mentionned repo. I personnaly don't use xen but 
I planned to include xen support for the next libvirt release and I had 
already rebuilt the last xen packages from Virt SIG for this purpose. I 
have just rebuilt the current libvirt with xen and libxsl enabled.


Best regards,
Jean-Marc Liger


Hello list,

I emailed the libvirt-users list to see if there would be a way to get more
recent libvirt builds into my CentOS 7 + VIRT SIG/Xen packages.

Here's what Cole Robinson from RedHat replied on that matter. Also the
initial email.

I'd appreciate your feedback on this. The more recent libvirt builds appear
to include quite some improvements especially for the libxl parts.

Best regards,
Le

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] PCI Passthrough not working

2016-05-16 Thread George Dunlap
On Mon, May 16, 2016 at 2:14 PM, Francis Greaves  wrote:
>>On Mon, May 16, 2016 at 12:00 PM, Francis Greaves  wrote:
>>> Dear George please find attached the three files as requested.
>>> I have used
>>>
>>> iommu=soft
>>>
>>> in the grub command line for the kernel in the domU as explained before.
>>> many thanks
>
>>The options are:
>>1. Figure out what the other device is and assign them both to the guest
>>2. Tell Xen that you don't mind the sharing.
>>
>>You should only do #2 if you're not using Xen for isolation -- i.e.,
>>if you trust the software in that VM not to attack dom0.
>>
>>I *think* you should be able to do #2 by adding 'rdm_policy=relaxed'
>>to your pci stanza; i.e., it should look like this:
>>
>>pci=['00:1a.0,rdm_policy=relaxed']
>
> Dear George
> That worked, do I still need to add this to the cfg file?
>
> usb=1
> usbdevice=['host:0529:0514']
>
> or how do I assign the device without the 'rdm_policy=relaxed' option as per 
> option 1?

Sorry, I don't understand your question.

In the pci case, you're passing through an entire USB controller.  The
guest will get access to anything plugged into that controller as
though it were running on native.

In the second case, you're presenting an emulated controller, and then
having qemu pass commands through to the device.  This should also
work, but may be a bit slower.

But for 4.6 it's only available in HVM mode -- and the config file you
attached was set up to run in PV mode (if I remember correctly).

> Thanks so much for your speedy advice.

Responding right away means I can delete it and forget about it. ;-)

 -George
___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] PCI Passthrough not working

2016-05-16 Thread Francis Greaves
>On Mon, May 16, 2016 at 12:00 PM, Francis Greaves  wrote:
>> Dear George please find attached the three files as requested.
>> I have used
>>
>> iommu=soft
>>
>> in the grub command line for the kernel in the domU as explained before.
>> many thanks

>The options are:
>1. Figure out what the other device is and assign them both to the guest
>2. Tell Xen that you don't mind the sharing.
>
>You should only do #2 if you're not using Xen for isolation -- i.e.,
>if you trust the software in that VM not to attack dom0.
>
>I *think* you should be able to do #2 by adding 'rdm_policy=relaxed'
>to your pci stanza; i.e., it should look like this:
>
>pci=['00:1a.0,rdm_policy=relaxed']

Dear George
That worked, do I still need to add this to the cfg file?

usb=1
usbdevice=['host:0529:0514']

or how do I assign the device without the 'rdm_policy=relaxed' option as per 
option 1?

Thanks so much for your speedy advice.
Francis

___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] Xen 4.6 initscripts locking problem

2016-05-16 Thread George Dunlap
On Mon, May 16, 2016 at 12:34 PM, Piotr Gackiewicz
 wrote:
>
> Hello,
>
> According to Xen4Centos wiki, Xen bugs should be reported by
> bugs.centos.org, Centos-6 => Xen4 project.
>
> I have reported a bug with initscripts locking in xen-runtime-4.6-6
> https://bugs.centos.org/view.php?id=10807
>
> Meanwhile, new xen-runtime-4.6-7 has been issued (in testing repo), and this
> bug is still present.
>
> Does anybody handle these bugs in bugs.centos.org, or should I report it
> elsewhere?  :-)

My patches for this issue were just accepted upstream last week, I
just haven't had a chance to push them into the Virt SIG repos yet.

FWIW the goal of the XSA-related updates is to minimize the amount of
changes, so that people can have confidence that there's a minimal
risk of breaking on upgrade.  That's why random other fixes aren't
generally included in those updates.

 -George
___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] Xen 4.6 initscripts locking problem

2016-05-16 Thread Piotr Gackiewicz


Hello,

According to Xen4Centos wiki, Xen bugs should be reported by
bugs.centos.org, Centos-6 => Xen4 project.

I have reported a bug with initscripts locking in xen-runtime-4.6-6
https://bugs.centos.org/view.php?id=10807

Meanwhile, new xen-runtime-4.6-7 has been issued (in testing repo), and this
bug is still present.

Does anybody handle these bugs in bugs.centos.org, or should I report it
elsewhere?  :-)

Regards,

--
Piotr Gackiewicz
___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] [x-post] Upstream possible patches to libvirt to enable building upstream libvirt packages with libxl

2016-05-16 Thread George Dunlap
Le,

It's not clear to me what you want.  Are you asking the Virt SIG to
update to a newer version of libvirt?

 -George

On Sun, May 15, 2016 at 7:42 PM, Le Nucksi  wrote:
> On 05/14/2016 07:16 AM, Le Nucksi wrote:
>> Hello list,
>>
>> is there a way to get more recent libvirt builds for CentOS 7 that include
>> support for the xl (modern Xen) toolstack?
>>
>> I tried to build libvirt from the SRPM, which succeeded, however, without
>> the mentioned Xen parts.
>> I have also found two repos from people who provide upstream libvirt builds
>> for CentOS 7, again, without the Xen parts.
>> - https://copr.fedorainfracloud.org/coprs/jmliger/virt7-upstream/ and
>> - https://build.opensuse.org/package/show/home:aevseev/libvirt
>>
>> Within the CentOS virtualization SIG builds for Xen there is a 1.3.x build
>> of libvirt that includes support for the modern Xen toolstack.
>> Would it be possible to inline this into the upstream to enable building it
>> with Xen features on CentOS 7 such that the aforementioned people's RPMs
>> would contain it?
>>
>> I appreciate any enlightment on the topic.
>
> I think you should either contact the owners of those libvirt repos, or
> contact the centos virt sig. I don't know if anyone on these lists is directly
> involved with those repos
>
> - Cole
>
> Hello list,
>
> I emailed the libvirt-users list to see if there would be a way to get more
> recent libvirt builds into my CentOS 7 + VIRT SIG/Xen packages.
>
> Here's what Cole Robinson from RedHat replied on that matter. Also the
> initial email.
>
> I'd appreciate your feedback on this. The more recent libvirt builds appear
> to include quite some improvements especially for the libxl parts.
>
> Best regards,
> Le
>
> ___
> CentOS-virt mailing list
> CentOS-virt@centos.org
> https://lists.centos.org/mailman/listinfo/centos-virt
___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] PCI Passthrough not working

2016-05-16 Thread Francis Greaves
Dear George please find attached the three files as requested. 
I have used 
iommu=soft 

in the grub command line for the kernel in the domU as explained before. 
many thanks 
Francis 

From: "George Dunlap"  
To: "francis" , "centos-virt"  
Sent: Monday, 16 May, 2016 10:29:09 
Subject: Re: [CentOS-virt] PCI Passthrough not working 

On Thu, May 12, 2016 at 12:11 PM, Francis Greaves  wrote: 
> I am running Xen 4.6 on CentOS 7 in a Dell Poweredge T430 
> I need PCI Passthrough to get USB working. I am following the Xenproject 
> Wiki 
> I have enabled the Virtulasation in the BIOS. 
> I have xen_pciback as a module 
> I have issued the command: 
> 
> xl pci-assignable-add 00:1a0.0 and it shows up fine when I issue this xl 
> pci-assignable-list 
> 
> I have pci=['00:1a.0'] on the DomU config file 
> I have added this iommu=soft and swiotlb=force both together and separately 
> to the kernel command line 
> in the DomU (running Debian 8), but I get the same error each time. 
> 
> libxl: error: libxl_pci.c:999:do_pci_add: xc_assign_device failed: Operation 
> not permitted 
> libxl: error: libxl_create.c:1424:domcreate_attach_pci: libxl_device_pci_add 
> failed: -3 

Can you please attach the following: 
1. The complete domU config file 
2. A complete log of the command and all the output 
3. The full output of "xl dmesg" just after you run the command 

Thanks, 
-George 
#xl create metsat.cfg -c

the Grub menus selection is 
Debian GNU/Linux, with Linux 3.2.0-4-686-pae
then after the Grub menu as the domU tries to boot you get this

libxl: error: libxl_pci.c:999:do_pci_add: xc_assign_device failed: Operation 
not permitted
libxl: error: libxl_create.c:1424:domcreate_attach_pci: libxl_device_pci_add 
failed: -3
libxl: error: libxl.c:1591:libxl__destroy_domid: non-existant domain 34
libxl: error: libxl.c:1549:domain_destroy_callback: unable to destroy guest 
with domid 34
libxl: error: libxl.c:1476:domain_destroy_cb: destruction of domain 34 failed

and back to the dom0 prompt
any help much appreciated


metsat.cfg
Description: Binary data
Xen 4.6.1-6.el7
(XEN) Xen version 4.6.1-6.el7 (mockbu...@centos.org) (gcc (GCC) 4.8.5 20150623 
(Red Hat 4.8.5-4)) debug=n Mon Apr 18 15:19:15 UTC 2016
(XEN) Latest ChangeSet: Wed Mar 16 16:51:27 2016 + git:ac630b2-dirty
(XEN) Bootloader: GRUB 2.02~beta2
(XEN) Command line: placeholder dom0_mem=13312M,max:14336M dom0_max_vcpus=6 
dom0_vcpus_pin
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN)  Found 4 MBR signatures
(XEN)  Found 4 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)   - 0009c000 (usable)
(XEN)  0009c000 - 000a (reserved)
(XEN)  000e - 0010 (reserved)
(XEN)  0010 - 67496000 (usable)
(XEN)  67496000 - 6f49e000 (reserved)
(XEN)  6f49e000 - 79f89000 (usable)
(XEN)  79f89000 - 7ab0b000 (reserved)
(XEN)  7ab0b000 - 7b53b000 (ACPI NVS)
(XEN)  7b53b000 - 7b6c (ACPI data)
(XEN)  7b6c - 7b6e9000 (usable)
(XEN)  7b6e9000 - 7b6ff000 (ACPI data)
(XEN)  7b6ff000 - 7b70 (usable)
(XEN)  7b70 - 9000 (reserved)
(XEN)  feda8000 - fedac000 (reserved)
(XEN)  ff31 - 0001 (reserved)
(XEN)  0001 - 00088000 (usable)
(XEN) ACPI: RSDP 000FE320, 0024 (r2 DELL  )
(XEN) ACPI: XSDT 7B6BE0E8, 00AC (r1 DELL   PE_SC3  0   113)
(XEN) ACPI: FACP 7B6BA000, 00F4 (r4 DELL   PE_SC3  0 DELL1)
(XEN) ACPI: DSDT 7B6A8000, DDAE (r2 DELL   PE_SC3  3 DELL1)
(XEN) ACPI: FACS 7B538000, 0040
(XEN) ACPI: MCEJ 7B6BD000, 0130 (r1 INTEL  1 INTL  10D)
(XEN) ACPI: WD__ 7B6BC000, 0134 (r1 DELL   PE_SC3  1 DELL1)
(XEN) ACPI: SLIC 7B6BB000, 0024 (r1 DELL   PE_SC3  1 DELL1)
(XEN) ACPI: HPET 7B6B9000, 0038 (r1 DELL   PE_SC3  1 DELL1)
(XEN) ACPI: APIC 7B6B8000, 085C (r2 DELL   PE_SC3  0 DELL1)
(XEN) ACPI: MCFG 7B6B7000, 003C (r1 DELL   PE_SC3  1 DELL1)
(XEN) ACPI: PMCT 7B6B6000, 0064 (r1 DELL   PE_SC3  0 DELL1)
(XEN) ACPI: SSDT 7B5DC000, CBC9B (r2 DELL   PE_SC3   4000 INTL 20121114)
(XEN) ACPI: SSDT 7B5DA000, 1C94 (r2 DELL   PE_SC3  2 INTL 20121114)
(XEN) ACPI: SSDT 7B5D9000, 006E (r2 DELL   PE_SC3  2 INTL 20121114)
(XEN) ACPI: PRAD 7B5D8000, 0132 (r2   DELL PE_SC3  2 INTL 20121114)
(XEN) ACPI: DMAR 7B6FE000, 0148 (r1 DELL   PE_SC3  

Re: [CentOS-virt] PCI Passthrough not working

2016-05-16 Thread George Dunlap
On Thu, May 12, 2016 at 12:11 PM, Francis Greaves  wrote:
> I am running Xen 4.6 on CentOS 7 in a Dell Poweredge T430
> I need PCI Passthrough to get USB working. I am following the Xenproject
> Wiki
> I have enabled the Virtulasation in the BIOS.
> I have xen_pciback as a module
> I have issued the command:
>
> xl pci-assignable-add 00:1a0.0 and it shows up fine when I issue this xl
> pci-assignable-list
>
> I have pci=['00:1a.0'] on the DomU config file
> I have added this iommu=soft and swiotlb=force both together and separately
> to the kernel command line
> in the DomU (running Debian 8), but I get the same error each time.
>
> libxl: error: libxl_pci.c:999:do_pci_add: xc_assign_device failed: Operation
> not permitted
> libxl: error: libxl_create.c:1424:domcreate_attach_pci: libxl_device_pci_add
> failed: -3

Can you please attach the following:
1. The complete domU config file
2. A complete log of the command and all the output
3. The full output of "xl dmesg" just after you run the command

Thanks,
 -George
___
CentOS-virt mailing list
CentOS-virt@centos.org
https://lists.centos.org/mailman/listinfo/centos-virt