search for: rwm

Displaying 20 results from an estimated 31 matches for "rwm".

Did you mean: rom
2017 Oct 18
2
Can we disable write to /sys/fs/cgroup tree inside container ?
...ll cgroups tree - from hardware node and from all another containers on node. [root-inside-lxc@tst1 ~]# for i in `ls /sys/fs/cgroup/devices/machine.slice/machine-lxc*/devices.list`; do echo $i; cat $i; done /sys/fs/cgroup/devices/machine.slice/machine-lxc\x2d10297\x2dtst2.scope/devices.list c 1:3 rwm c 1:5 rwm c 1:7 rwm c 1:8 rwm c 1:9 rwm c 5:0 rwm c 5:2 rwm c 10:229 rwm b 253:6 rw c 136:* rwm /sys/fs/cgroup/devices/machine.slice/machine-lxc\x2d9951\x2dtst1.scope/devices.list c 1:3 rwm c 1:5 rwm c 1:7 rwm c 1:8 rwm c 1:9 rwm c 5:0 rwm c 5:2 rwm c 10:229 rwm b 253:7 rw c 136:* rwm Hardware nod...
2012 Nov 08
3
Failed to access console after launching LXC through libvirt
...me State ---------------------------------- 14366 instance-00000078 running virsh # console 14366 Connected to domain instance-00000078 Escape character is ^] And it keeps stuck here. Initially I thought it could be a cgroup device config issue, and tried to "echo ?c 5:1 rwm' >/cgroup/devices/libvirt/lxc/instance-00000078/devices.allow?, to add /dev/console access right to the container. But it does not work, console stilll not working. Before the cgroup tweaking, devices.list are as follows [root at localhost libvirt]# cat /cgroup/devices/libvirt/lxc/instance...
2013 Apr 18
1
libvirt 1.0.3 Vs 1.0.4 / cgroup devices
...tty1 -> /dev/pts/0 crw-rw-rw-. 1 root root 1, 9 Apr 17 21:18 urandom crw-rw-rw-. 1 root root 1, 5 Apr 17 21:18 zero # rm -f /dev/random (successful) # mknod random c 1 8 mknod: `random': Operation not permitted Config on the host : knowing that selinux is set to permissive and c 1:8 rwm is in the cgroup devices list of the guest1 # cat /sys/fs/cgroup/devices/libvirt/lxc/guest1/devices.list c 1:3 rwm c 1:5 rwm c 1:7 rwm c 1:8 rwm c 1:9 rwm c 5:0 rwm c 5:2 rwm c 10:229 rwm c 136:* rwm is this a change that was introduced intentially on 1.0.4 ? if yes, how can I make it work ? ple...
2012 Jan 25
2
How to change libvirt / cgroup interaction?
Hi there, Do you know if there is a way to modify how libvirt interacts with the cgroup? Because, I successfully add the /dev/net/tun support in my LXC container by doing: echo c 10:200 rwm >> /cgroup/libvirt/lxc/instance-00000005/devices.allow But when I restart the instance/LXC container, this option has gone. How can I make this persistant? Is there a configuration file? Thanks for your answers. Best regards. Sam
2011 Jun 08
5
LXC and Dahdi
Howdy, I am playing around with asterisk within an LXC container on Ubuntu 11.04. I have asterisk (1.4.42) running fine, but want access to dahdi_dummy for timing (meetme). I have dahdi installed on the "host", and dahdi_dummy is loaded: root at astnorth:/# ls -ltr /dev/dahdi total 0 crw-rw---- 1 root root 196, 250 2011-06-08 13:59 transcode crw-rw---- 1 root root 196, 253
2017 Sep 21
1
How automatically set group.devices.allow for libvirt-lxc container after start ?
...<capabilities policy='default'> <mknod state='on'/> </capabilities> </features> 2) start container 3) attach or ssh container, be root: #mknod /dev/ppp c 108 0 4) inside container (or from hardware node, no difference) run: # echo "c 108:0 rwm" > /sys/fs/cgroup/devices/machine.slice/machine-lxc\\x2d${PID}\\x2d${CONTAINER_NAEM}scope/devices.allow 5) Now pppd work inside lxc: #pppd call reuters debug nodetach using channel 1 Using interface ppp0 Connect: ppp0 <--> /dev/pts/2 sent [LCP ConfReq id=0x1 <mru 1000> <asyn...
2011 Jan 17
2
ping_pong using o2cb and cman
I was testing ocfs2 on a 2 node cluster set up. ocfs2-tools version is 1.6.3 ocfs2 kernel version is 2.6.36 Using cman on 2 nodes node02 dw # ping_pong -rwm /data/test.dat 3 data increment = 2 14 locks/sec node01 dw # ping_pong -rw /data/test.dat 3 data increment = 2 10 locks/sec node02 dw # ping_pong -r /data/test.dat 3 1980 locks/sec Using cman on 1 node node02 dw # ping_pong -rwm /data/test.dat 3 data increment = 1 3165 locks...
2013 May 30
2
Re: libguestfs-1.22.1 compilation error
Yes i am using ArchLinux (what else is there ?) and i hate/love (mixed feelings) when you have a valid point and give such pointers! indeed there is a diff between your perl and mine [tmp]> diff -u rwm perl --- rwm 2013-05-30 13:24:21.066286908 +0300 +++ perl 2013-05-30 13:26:27.149615793 +0300 @@ -1,14 +1,14 @@ - if ($t =~ /\G([^\n]{0,$ll})($break|\n+|\z)/xmgc) { + if ($t =~ /\G((?:(?=[^\n])\X){0,$ll})($break|\n+|\z)/xmgc) { $r .= $unexpand...
2009 Jun 22
5
Convert "ragged" list to matrix
Hi, I have a list made up of character strings with each item a different length (each item is between 1and 6 strings long). Is there a way to convert a "ragged" list to a matrix such that each item is its own row? Here is a simple example: a=list(); a[[1]] = c("a", "b", "c"); a[[2]] = c("d", "e"); a[[3]] = c("f",
2013 Jul 06
2
Permission problem with /dev/net/tun
...ed from precise and then upgraded. The guest is Ubuntu precise; however, I see the same symptom in another raring container on the same host. What I tried to resolve this: 1) On the host, I echoed various stuff to the cgroup device files: cd /sys/fs/cgroup/devices/libvirt/lxc echo "c 10:200 rwm" > devices.allow echo "c 10:200 rwm" > depot/devices.allow echo a > depot/devices.allow ... and I see the successful results in depot/devices.list, but no success. 2) I inserted a line "/dev/net/tun rwk," into /etc/apparmor.d/abstractions/lxc/container-base - no...
2012 Nov 05
1
using fuse with libguestfs
Upon seeing RWM Jones article "Using mount-local API from C" I became curious because I thought there WAS a way to combine aspects of FUSE with the tools provided by libguestfs. So if I wanted to create my own filesystem using callbacks placed in the 'fuse_operations' struct (parameter to 'fu...
2013 May 30
0
Re: libguestfs-1.22.1 compilation error
On Thu, May 30, 2013 at 01:37:34PM +0300, Evaggelos Balaskas wrote: > [tmp]> diff -u rwm perl > --- rwm 2013-05-30 13:24:21.066286908 +0300 > +++ perl 2013-05-30 13:26:27.149615793 +0300 > @@ -1,14 +1,14 @@ > - if ($t =~ /\G([^\n]{0,$ll})($break|\n+|\z)/xmgc) { > + if ($t =~ /\G((?:(?=[^\n])\X){0,$ll})($break|\n+|\z)/xmgc) { > $r ....
2014 Feb 25
2
libvirt lxc /dev/null
...r on F19 with virt-manager and it starts OK. The only problem is that sshd does not run complaining "/dev/null is not a character device". # ls -l /dev/null -rw-r--r-- 1 root root 0 2014-02-25 22:39 /dev/null /sys/fs/cgroup/devices/machine/VM_NAME.libvirt-lxc/devices.list has "c 1:3 rwm" line, but I cannot create /dev/null: # mknod /dev/nulll c 1 3 mknod: `/dev/nulll': Operation not permitted Thanks, Nerijus
2013 Jul 08
0
Re: Permission problem with /dev/net/tun
...is > Ubuntu precise; however, I see the same symptom in another raring > container on the same host. > > What I tried to resolve this: > > 1) On the host, I echoed various stuff to the cgroup device files: > > cd /sys/fs/cgroup/devices/libvirt/lxc > echo "c 10:200 rwm" > devices.allow > echo "c 10:200 rwm" > depot/devices.allow > echo a > depot/devices.allow > > ... and I see the successful results in depot/devices.list, but no > success. > > 2) I inserted a line "/dev/net/tun rwk," into > /etc/apparmor...
2013 May 30
2
libguestfs-1.22.1 compilation error
myconf ./configure \ PYTHON=/usr/bin/python2 \ --prefix=/usr --libdir=/usr/lib \ --mandir=/usr/share/man \ --sysconfdir=/etc \ --disable-probes \ --disable-gobject \ --enable-introspection=no \ --disable-lua \ --disable-erlang \ --disable-php \ --disable-haskell \ --disable-ruby \
2013 Jan 23
4
Organization of Users in Samba4
Hello, I am working on migrating from OpenLDAP using the inetOrgPerson schema to Samba4. I would like to continue to provide backwards compatibility with our existing authentication service. In OpenLDAP, users are all contained inside the People organizational unit and referenced by uid, for example: dn: uid=myuser,ou=People,dc=example,dc=com When using samba-tool to add a user, it places the
2012 Jan 24
0
Question about libvirt / LXC
Hi there, I have a small simple question about libvirt and LXC containers. I know how to activate /dev/net/tun in an LXC container: #tun lxc.cgroup.devices.allow = c 10:200 rwm in the LXC config file. But, how to do that in a libvirt XML file? I just need to activate the /dev/net/tun device in an LXC container using libvirt. Thanks for your answers! Best regards. Sam
2014 Feb 26
0
Re: libvirt lxc /dev/null
...tarts OK. The only > problem is that sshd does not run complaining "/dev/null is not a character > device". > # ls -l /dev/null > -rw-r--r-- 1 root root 0 2014-02-25 22:39 /dev/null > > /sys/fs/cgroup/devices/machine/VM_NAME.libvirt-lxc/devices.list has "c 1:3 > rwm" line, but I cannot create /dev/null: > # mknod /dev/nulll c 1 3 > mknod: `/dev/nulll': Operation not permitted Libvirt will pre-populate the /dev filesystem with any permitted devices, creation is denied by cgroups. That you have a plain file for /dev/null suggests something in yo...
2014 Mar 06
1
Fail to convert LXC container configuration into a domain XML fragment
...late it? PS: I care about the rules in my LXC container configuration file, such as: *lxc.aa_profile = unconfined* *lxc.cgroup.devices.deny = a* *# Allow any mknod (but not using the node)* *lxc.cgroup.devices.allow = c *:* m* *lxc.cgroup.devices.allow = b *:* m* *lxc.cgroup.devices.allow = b 7:* rwm* I just don't know how to express the rules above using xml format. Please help! Thanks! -- Best Regards, Du Jun
2014 Oct 20
0
Libvirt with containers
...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...