search for: hostdevs

Displaying 20 results from an estimated 266 matches for "hostdevs".

Did you mean: hostdev
2014 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
Can you see the USB device in the lxc? My answering assumes you cannot see the USB device in the container. If you can see it, please ignore my answer. According to my understanding, “hostdev mode='subsystem' “ is used with KVM only. We use this if we want to passthrough a device to a KVM virtual machine. After doing that, the host machine will lose control of the device. If container is
2019 Apr 24
2
PCI passthrough and abstraction
When you pass a device in the pci chain (after virsh nodedev-dettach'ing it from host) to the guest, how much is passed without being emulated/abstracted?
2018 Jan 05
1
Re: Cannot Write xvga=yes in xml file
Yes, I can use guest with this way, But when i hot-add my graphics card , Guest will reboot. So i want to try it with <hostdev>. Somehow , If i use "hostdev" without xvga , my screen will be black. If we have no hostdev, do you have other methods can help me to use hot-plug my graphics card? At 2018-01-04 23:27:52, "Laine Stump" <laine@redhat.com> wrote:
2013 Jul 09
0
Re: [PATCH 2/2] LXC: hostdev: parent directroy for hostdev atomically
On Tue, Jul 09, 2013 at 11:20:36AM +0800, Gao feng wrote: > Create parent directroy for hostdev atomically when we > start a lxc domain or attach a hostdev to a lxc domain. > > Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> > --- > src/lxc/lxc_container.c | 42 ++++++++++++++++++++++++++++-------------- > src/lxc/lxc_driver.c | 14 ++++++++++++++ > 2 files
2014 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
I'd also like to point out that, when setting up a linux container with _just_ the lxc tools available in ubuntu, all that was needed to be done was whitelist the appropriate cgroups for the Android devices. The lxc tools seem to create the appropriate character devices when you detach/attach the Android device via USB, and the Android `adb` tool recognized the devices. So, a tangential
2020 Feb 06
1
Re: PCI/GPU Passthrough with xen
...If yes, how is the syntax? Can I get an example? >>> >>> Yes, host PCI devices can be passed to xen guests using libvirt. Below >>> is example config of a "managed" PCI host device. For more details see >>> https://libvirt.org/formatdomain.html#elementsHostDevSubsys >>> >>>     <hostdev mode='subsystem' type='pci' managed='yes'> >>>       <driver name='xen'/> >>>       <source> >>>         <address domain='0x0000' bus='0x0a' slot='0x10'...
2017 Dec 21
2
Cannot Write xvga=yes in xml file
Hello,my system info: virsh verison Compiled against library: libvirt 3.9.0 Using library: libvirt 3.9.0 Using API: QEMU 3.9.0 Running hypervisor: QEMU 2.10.90 And i want to pass through my gpu to my window 7 guest with <hostdev>, next line is comand i use: <hostdev mode='subsystem' type='pci' managed='yes' xvga='yes'>
2013 Jul 09
2
[PATCH 2/2] LXC: hostdev: parent directroy for hostdev atomically
...def->source.caps.u.misc.chardev); + dev); goto cleanup; } diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 1a6d086..2661c1b 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -3616,6 +3616,13 @@ lxcDomainAttachDeviceHostdevStorageLive(virLXCDriverPtr driver, goto cleanup; } + if (lxcContainerSetupHostdevCapsMakePath(dst) < 0) { + virReportSystemError(errno, + _("Unable to create directroy for device %s"), + dst); + got...
2019 Aug 22
2
Re: RLIMIT_MEMLOCK in container environment
On Thu, Aug 22, 2019 at 2:24 AM Daniel P. Berrangé <berrange@redhat.com> wrote: > > On Wed, Aug 21, 2019 at 01:37:21PM -0700, Ihar Hrachyshka wrote: > > Hi all, > > > > KubeVirt uses libvirtd to manage qemu VMs represented as Kubernetes > > API resources. In this case, libvirtd is running inside an > > unprivileged pod, with some host mounts / capabilities
2019 Aug 22
2
Re: RLIMIT_MEMLOCK in container environment
...applied > to hostdev devices - if unmanaged is set, we assume that the caller has > done everything to make the associated device usable. > > (Of course this all makes me realize the inanity of adding a <target > dev='blah' unmanaged='yes'/> for interfaces when hostdevs already have > <hostdev managed='yes'> and <interface type='hostdev' managed='yes'>. So > to prevent setting the locklimit for hostdev, would we make a new > setting like <hostdev managed='no-never-not-even-a-tiny-bit'>? Sigh. I > *hate*...
2014 Apr 14
0
Re: LXC + USB passthrough = Operation not permitted
So, if I remove the hostdev element related to the USB device, running `lsusb` and `usb-devices` inside the container lists the proper device, but I do not see the appropriate character device bus for the Android device under /dev/bus/usb. We are not entirely sure that `lsusb` and `usb-devices` queries the appropriate location - it somehow gets information from the host, not the guest container,
2016 Nov 15
1
ergodox keyboard not working on USB hostdev passthrough
I'm using a bit of a different keyboard, the infinity ergodox [ https://input.club/devices/infinity-ergodox/]. It functions just fine as a keyboard on my host computer, but when I try to bind it to the guest, nothing seems to happen. lsusb gives its ID: Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub *Bus 005 Device 003: ID 1c11:b04d* Bus 005 Device 001: ID 1d6b:0002 Linux
2019 Oct 15
1
Re: [libvirt] Add support for vhost-user-scsi-pci/vhost-user-blk-pci
Cole Robinson <crobinso@redhat.com> 于2019年10月15日周二 上午1:48写道: > > On 10/14/19 3:12 AM, Li Feng wrote: > > Hi Cole & Michal, > > > > I'm sorry for my late response, I just end my journey today. > > Thank your response, your suggestion is very helpful to me. > > > > I have added Michal in this mail, Michal helps me review my initial patchset.
2014 Apr 14
3
Re: LXC + USB passthrough = Operation not permitted
Dear Fil, I am not sure if my answer can help you. I had ever asked a similar question to Daniel and I was using a thirty-party card. As a container uses a shared kernel with the host, so hostdev mode='subsystem' doesn't make sense. Maybe you can try to use hostdev mode='capabilities'. Please see http://libvirt.org/formatdomain.html#elementsHostDevCaps Hope this helps Cheng
2020 Feb 04
0
Re: PCI/GPU Passthrough with xen
...h with xen and libvirt? >> If yes, how is the syntax? Can I get an example? > > Yes, host PCI devices can be passed to xen guests using libvirt. Below > is example config of a "managed" PCI host device. For more details see > https://libvirt.org/formatdomain.html#elementsHostDevSubsys > > <hostdev mode='subsystem' type='pci' managed='yes'> > <driver name='xen'/> > <source> > <address domain='0x0000' bus='0x0a' slot='0x10' > function='0x1'/> >...
2014 Jan 23
1
Re: If it's possible for a third-party PCIe card to be shared by multiple containers
Dear Daniel, I found that lxc driver doesn't support hostdev with type of 'pci'. As you mentioned before, I tried to expose the device node (the PCIe card) to the container, my XML is as follow: <devices> <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address bus='0x01' slot='0x00'
2019 Oct 14
2
Re: [libvirt] Add support for vhost-user-scsi-pci/vhost-user-blk-pci
Hi Cole & Michal, I'm sorry for my late response, I just end my journey today. Thank your response, your suggestion is very helpful to me. I have added Michal in this mail, Michal helps me review my initial patchset. (https://www.spinics.net/linux/fedora/libvir/msg191339.html) All concern about this feature is the XML design. My original XML design exposes more details of Qemu.
2020 Feb 03
0
Re: USB devices with same vendor:product id
...dev> >------- > >Any idea on how to handle this case ? > >We were thinking about using udev, but it seems that libvirt only supports vendor/id (not unique in our case) and bus/device (not predictable) to identify usb devices. There has been a proposal (or two?) for addressing USB hostdevs by bus/port https://bugzilla.redhat.com/show_bug.cgi?id=1497984 Sadly it never landed upstream. Other than writing a custom script that fills in the <address bus='1' device='6'/> XML with the current values, I can't think of any solution. Jano > >Thanks, > >...
2017 Aug 30
1
[PATCH] v2v: warn when the guest has hostdev devices (RHBZ#1472719)
virt-v2v obviously cannot convert this kind of devices, since they are specific to the host of the hypervisor. Thus, emit a warning about the presence of passthrough host devices, so at least this can be noticed when converting a guest. --- v2v/parse_libvirt_xml.ml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/v2v/parse_libvirt_xml.ml b/v2v/parse_libvirt_xml.ml index
2019 Aug 22
0
Re: RLIMIT_MEMLOCK in container environment
...lar approach could be applied to hostdev devices - if unmanaged is set, we assume that the caller has done everything to make the associated device usable. (Of course this all makes me realize the inanity of adding a <target dev='blah' unmanaged='yes'/> for interfaces when hostdevs already have <hostdev managed='yes'> and <interface type='hostdev' managed='yes'>. So to prevent setting the locklimit for hostdev, would we make a new setting like <hostdev managed='no-never-not-even-a-tiny-bit'>? Sigh. I *hate* trying to make...