Questions tagged [namespaces]

70 questions
3
votes
2 answers

How to run a command in another process's network namespace?

There is a process running in its own network namespace. I would like to telnet to the machine and run a command in this process network namespace, something like that (17543 is the pid of the process with its own network namespace): # ip netns exec…
wulujey
  • 131
  • 1
  • 2
3
votes
0 answers

bind mount /proc in Docker container with user namespaces enabled

My dockerd (CentOS7: 17.12.0-ce, build c97c6d6) is running with user namespaces enabled for better isolation. Now I build a image which is supposed to read for monitoring purposes also from /proc of the kernel. Thus I tried to mount /proc onto…
THX
  • 213
  • 1
  • 9
3
votes
0 answers

how to move process from one namespace to other?

Is there any available method to move process/group of processes from one namespace to other in Linux? I mean methods via commands of some packages or it can be done via setns()? E.g. I have processes of current session in one namespace and some…
zerospiel
  • 417
  • 1
  • 5
  • 10
3
votes
1 answer

Linux network namespaces - ping fails on specific veth

I just started to exploring network namespaces. I try to implement the following simple setting following the article in http://www.opencloudblog.com/?p=42 +--------+ +-----------+ +--------+ | …
Vasilis
  • 283
  • 1
  • 4
  • 13
3
votes
1 answer

Bind mount one container FS tree into another for debug or ephemeral containers?

I'm testing out k8s debugging features including debug pods and ephemeral containers, and I just can't work out how to properly map a "target" pod's file system into the debug container. I want to link two disjoint mount namespaces with a recursive…
Craig Ringer
  • 10,553
  • 9
  • 38
  • 59
2
votes
2 answers

Unable to reach network namespace through master

I'm trying to create an isolated lab using network namespaces. It works correctly, that is, only the machines in the network namespace can talk. But now I want reach the machines by localhost using v-net-0 like a router. Here what i do: ip netns add…
Fabio
  • 133
  • 4
2
votes
1 answer

How to recover an SSD (Samsung) after deleting all the namespaces?

I deleted all the namespaces (2 were present) on a samsung drive (SSD). Now the drive is not being recognized by the system. How do I recover the SSD?
2
votes
1 answer

Why LXC requires restart?

LXC documentation says: Just before you create your first container, you probably should logout and login again, or even reboot your machine to make sure that your user is placed in the right cgroups. Can somebody explain why this is required to…
Jacek L.
  • 121
  • 2
2
votes
0 answers

Can systemd's .mount units be used to mount to points within a service's namespace only?

I am interested in setting a temporary directory that exists for the duration of the .service unit's running - exactly like the PrivateTmp= directive but on a custom mount point specified by a systemd .mount unit. Is this possible? Or should I be…
Benjamin
  • 240
  • 2
  • 9
2
votes
1 answer

Dovecot not working with added public namespace

we're running Dovecot 2.2.5 under OS X Server 4.1 (under 10.10.3). I'm trying to add a public namespace with some public folders without success. doveconf -n: # 2.2.5: /Library/Server/Mail/Config/dovecot/dovecot.conf # OS: Darwin 14.3.0 x86_64 …
jaydisc
  • 459
  • 1
  • 7
  • 19
2
votes
2 answers

How to configure a Linux network namespace that allows UDP broadcast

I'm trying to use the ip netns family of commands in Linux to create a network namespace in which I can run a program that uses UDP broadcast. I do not need access to the Internet, or any interface on the root namespace (but if that's what's…
Patrick
  • 302
  • 6
  • 16
2
votes
0 answers

access tap interface in network namespace across machines

I want to be able to access services running on a TAP interface within a namespace from outside the machine where it is running. I have setup that looks like this - VM1/Machine1 +eth0 : Public Network +eth1 : Private Network (IP:…
gusaki
  • 143
  • 1
  • 6
2
votes
1 answer

Public dovecot namespace visible only to some users

I have a dovecot IMAP server (version 2.1.7) with Maildirs and a virtual user setup (e.g. all accounts are mapped to the same system user). I’d like to create a public namespace shared between users A and B, but not any other user. I tried to set up…
Joachim Breitner
  • 3,469
  • 3
  • 17
  • 20
2
votes
2 answers

OpenVSwitch between namespaces

I'm trying to configure a bridge between two TAP interfaces each created inside their own network namespace, on Linux. I'm using OpenVSwitch as software bridge. These are the steps that I believe should work: ip netns add test_ns1 ip netns exec…
Daniele Venzano
  • 158
  • 1
  • 6
2
votes
2 answers

Update internal DNS server in my organization

We have our own internal DNS server inside our network on our domain. I just changed the nameservers of a bunch of our domain names through our registrar. Now on my home PC (off the network) the changes were almost immediate. How ever inside our…
ItsPronounced
  • 614
  • 4
  • 18
  • 40