cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrija Panic <andrija.pa...@gmail.com>
Subject Re: pci passthrough with extraconfig
Date Thu, 23 May 2019 19:53:26 GMT
You are testing this on 4.12?
You have set global config enable.additional.vm.configuration to TRUE ?

Can you try with more simple XML changes - to confirm your test ? I.e. must
huge pages from that article (part of DPDK extra config) - later do "virsh
dumpxml" to confirm

On Thu, 23 May 2019 at 10:34, Piotr Pisz <piotr@piszki.pl> wrote:

> I'm coming back with the topic
>
> I try to passthrough a network device (eno3) to VM on CentOS 7 based on (
> https://www.linuxtopia.org/online_books/rhel6/rhel_6_virtualization/rhel_6_virtualization_chap-Virtualization-PCI_passthrough.html
> )
>
> Identify device:
> ethtool -i eno3 (bus-info: 0000:16:00.2)
> virsh nodedev-dumpxml pci_0000_16_00_2
>
> Make config:
> <hostdev mode='subsystem' type='pci' managed='yes'>
>   <source>
>       <address domain='0x0000' bus='0x16' slot='0x00' function='0x2'/>
>   </source>
> </hostdev>
>
> Update VM:
> update virtualmachine id=c264cecb-b970-4cf8-b3c2-7a54763b55ad
> extraconfig=%3Chostdev%20mode%3D%27subsystem%27%20type%3D%27pci%27%20managed%3D%27yes%27%3E%0A%20%20%3Csource%3E%0A%20%20%20%20%20%2{
>   "virtualmachine": {...
> 6%27%20slot%3D%270x00%27%20function%3D%270x2%27%2F%3E%0A%20%20%3C%2Fsource%3E%0A%3C%2Fhostdev%3E
>
> "extraconfig-1": "<hostdev mode='subsystem' type='pci' managed='yes'>\n
> <source>\n      <address domain='0x0000' bus='0x16' slot='0x00'
> function='0x2'/>\n  </source>\n</hostdev>",
>
> Detach device virsh nodedev-dettach pci_0000_16_00_2 on host and reboot VM
>
> And... not see this pci on VM :-(
>
> The subject is new to me, what am I doing wrong? Is this path correct?
> How do you verify that this device is connected to vm?
>
> Best regards,
> Piotr
>
>
>
>
> -----Original Message-----
> From: Andrija Panic <andrija.panic@shapeblue.com>
> Sent: Friday, April 5, 2019 11:42 AM
> To: users@cloudstack.apache.org; piotr@piszki.pl
> Subject: RE: pci passthrough
>
> Hi Piotr,
>
> Have a look at a video from last London User Group that explains (beside
> other new things) passing extra configuration flags for KVM VM, which might
> give you an idea how you can achieve PCI passthrough:
> https://www.shapeblue.com/cloudstack-european-user-group-cseug-roundup-london-march-2019/
> - video from Bobby Stoyanov.
>
> Basically, and admin needs to approve what kind of additional XML stuff
> can be sent (for security reasons), then user can consume that (i.e. pass
> additional URL encoded XML chunk).
>
> Best,
> Andrija
>
> andrija.panic@shapeblue.com
> www.shapeblue.com
> Amadeus House, Floral Street, London  WC2E 9DPUK @shapeblue
>
>
>
>
> -----Original Message-----
> From: Piotr Pisz <piotr@piszki.pl>
> Sent: 05 April 2019 08:37
> To: users@cloudstack.apache.org
> Subject: pci passthrough
>
> Hello,
>
> Is there a way to do pci passthrough to vm (eg. via VFIO/IOMMU)?
>
> On this article:
> https://www.shapeblue.com/openvswitch-with-dpdk-support-on-cloudstack/
>
> There is talk of additional options sent to vm, can we use this to pci
> passthrough?
>
> Regards,
> Piotr
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message