Libvirt with containers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am trying to define a container using libvirt, and I need to allow access of the device /dev/uio0 on the host on the container as well. That is, I have the following line in the container config file:

lxc.mount.entry = /dev/uio0 dev/uio0 none bind,create=file
lxc.cgroup.devices.allow = c 249:1 rwm

And I want to add it in the libvirt XML file for the container. 

I tried something like:

    <filesystem accessmode="passthrough" type="mount">
      <source file="/dev/uio0" />
      <target dir="/dev/uio0" />
    </filesystem>

But it gave me error:

root# virsh -c lxc:/// define lxc_v.xml
error: Failed to define domain from lxc_v.xml
error: missing source information for device /dev/uio0

Can someone pls help, how I can add the /dev/uio0 to the xml file?

Thanks
Anjali
_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux