search for: hostdev

Displaying 20 results from an estimated 266 matches for "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 used, the container is not a real virtual machine, it’s just a group of processes and it sha...
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: >On 12/20/2017 09:40 PM, Rog...
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 ch...
2014 Apr 14
2
Re: LXC + USB passthrough = Operation not permitted
...ist line in the LXC configuration file? (see https://wiki.archlinux.org/index.php/Linux_Containers#Host_device_access_settingsfor examples of cgroups configuration in a vanilla LXC config file). On Mon, Apr 14, 2014 at 10:44 AM, Filip Maj <fil@saucelabs.com> wrote: > 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...
2020 Feb 06
1
Re: PCI/GPU Passthrough with xen
...>>        <listen type='address' address='0.0.0.0'/> >>      </graphics> >>      <video> >>        <model type='xen' vram='16384' heads='1' primary='yes'/> >>      </video> >>      <hostdev mode='subsystem' type='pci' managed='yes'> >>        <driver name='xen'/> >>        <source> >>          <address domain='0x0000' bus='0x01' slot='0x00' >> function='0x0'/> >>       ...
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'> <source> <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </source> &...
2013 Jul 09
2
[PATCH 2/2] LXC: hostdev: parent directroy for hostdev atomically
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 changed, 42 insertions(+), 14 deletio...
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
...interface <target> element. The idea is that if > someone sets unmanaged='yes', they're stating that the caller (i.e. > kubevirt) is responsible for all device setup, and that libvirt should > just use it without further setup. A similar 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 &g...
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 locatio...
2016 Nov 15
1
ergodox keyboard not working on USB hostdev passthrough
...oot hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 258a:0001 Bus 001 Device 002: ID 093a:2521 Pixart Imaging, Inc. Optical Mouse Bus 001 Device 004: ID 8087:0a2b Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub So, I made a file, hostdev-1c11:b04d.xml, which contains the following: <hostdev mode='subsystem' type='usb' > <source> <vendor id='0x1c11'/> <product id='0xb04d'/> </source> </hostdev> Note, I have had this same xml inside the domain's xml,...
2019 Oct 15
1
Re: [libvirt] Add support for vhost-user-scsi-pci/vhost-user-blk-pci
...; <queue num='4'/> > > </disk> > > > > I think my SCSI idea is wrong, sorry. vhost-user-scsi is for passing a > scsi host adapter to the VM, correct? If so, then it's not really a > <disk>, and so using the existing vhost-scsi support in <hostdev> is > probably better. <hostdev> could possible be used for vhost-user-blk as well > > Can you provide some examples of full qemu command lines using > vhost-user-blk and vhost-user-scsi? Just linking to examples else where > is fine, but I'm wondering if there's mor...
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 Wang
2020 Feb 04
0
Re: PCI/GPU Passthrough with xen
...' listen='0.0.0.0' keymap='de'> <listen type='address' address='0.0.0.0'/> </graphics> <video> <model type='xen' vram='16384' heads='1' primary='yes'/> </video> <hostdev mode='subsystem' type='pci' managed='yes'> <driver name='xen'/> <source> <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </source> </hostdev> &lt...
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&...
2019 Oct 14
2
Re: [libvirt] Add support for vhost-user-scsi-pci/vhost-user-blk-pci
...ev=char1 > > > > Indeed that matches what I see for the qemu commits too: > > https://git.qemu.org/?p=qemu.git;a=commit;h=00343e4b54b > https://git.qemu.org/?p=qemu.git;a=commit;h=f12c1ebddf7 > > > What type should I add for libvirt. > > Type1: > > <hostdev mode='subsystem' type='vhost-user'> > > <source protocol='vhost-user-scsi' path='/tmp/vhost-scsi.sock'></source> > > <alias name="vhost-user-scsi-disk1"/> > > </hostdev> > > > >...
2020 Feb 03
0
Re: USB devices with same vendor:product id
...prevent the reboot of the VM : > >------- >error: Failed to start domain xxx >error: internal error: Did not find USB device 04b9:0300 bus:1 device:5 >------- > >I guess this is because we have multiple usb devices with the same vendor/product ID : > >------- > <hostdev mode='subsystem' type='usb' managed='yes'> > <source> > <vendor id='0x04b9'/> > <product id='0x0300'/> > <address bus='2' device='4'/> > </source> > <ali...
2017 Aug 30
1
[PATCH] v2v: warn when the guest has hostdev devices (RHBZ#1472719)
...file changed, 16 insertions(+) diff --git a/v2v/parse_libvirt_xml.ml b/v2v/parse_libvirt_xml.ml index 84c5d4fc7..c71707000 100644 --- a/v2v/parse_libvirt_xml.ml +++ b/v2v/parse_libvirt_xml.ml @@ -460,6 +460,22 @@ let parse_libvirt_xml ?conn xml = done; List.rev !nics in + (* Check for hostdev devices. (RHBZ#1472719) *) + let () = + let obj = Xml.xpath_eval_expression xpathctx "/domain/devices/hostdev" in + let nr_nodes = Xml.xpathobj_nr_nodes obj in + if nr_nodes > 0 then ( + (* Sadly fn_ in ocaml-gettext seems broken, and always returns the + * singula...
2019 Aug 22
0
Re: RLIMIT_MEMLOCK in container environment
...39;" to the interface <target> element. The idea is that if someone sets unmanaged='yes', they're stating that the caller (i.e. kubevirt) is responsible for all device setup, and that libvirt should just use it without further setup. A similar 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 manage...