Commit 2e315e3
run.py: add tap option
Currently, OSv needs root permission for tap networking.
However, if we have a tap interface with proper permission,
we can do tap networking without root permission.
This adds --tap option to specify tap interface.
It enables tap networking without root permission.
Usage:
On root:
adduser user1 kvm # allow user 1 to use kvm
tunctl -u user1 -t user1_tap0 # add tap interface for user1
On user1 (without root/sudo):
./scripts/run.py -n --tap user1_tap0
Signed-off-by: Wonsup Yoon <pusnow@kaist.ac.kr>
Message-Id: <20200413140011.10747-1-pusnow@kaist.ac.kr>1 parent 89de007 commit 2e315e3
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| |||
489 | 491 | | |
490 | 492 | | |
491 | 493 | | |
| 494 | + | |
| 495 | + | |
492 | 496 | | |
493 | 497 | | |
494 | 498 | | |
| |||
0 commit comments