Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. strace -t -e trace=open,close,read,getdents,write,connect,accept command-here
  2.  
  3. # example as found on /usr/share/doc/lxc/examples/lxc-macvlan.conf
  4. # Container with network virtualized using the macvlan device driver
  5. lxc.utsname = alpha
  6. lxc.network.type = macvlan
  7. lxc.network.flags = up
  8. lxc.network.link = eth0 # or eth2 or any of your NICs
  9. lxc.network.hwaddr = 4a:49:43:49:79:bd
  10. lxc.network.ipv4 = 0.0.0.0/24
  11.  
  12. sudo lxc-execute -n bash-test2 -f lxc-macvlan.conf /bin/bash
  13.  
  14. $ strace cat test
  15. execve("/bin/cat", ["cat", "test"], [/* 55 vars */]) = 0
  16. /* ... */
  17. open("test", O_RDONLY) = 3
  18. /* ... */
  19. read(3, "hellon", 32768) = 6
  20. write(1, "hellon", 6) = 6
  21. read(3, "", 32768) = 0
  22. /* ... */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement