Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- strace -t -e trace=open,close,read,getdents,write,connect,accept command-here
- # example as found on /usr/share/doc/lxc/examples/lxc-macvlan.conf
- # Container with network virtualized using the macvlan device driver
- lxc.utsname = alpha
- lxc.network.type = macvlan
- lxc.network.flags = up
- lxc.network.link = eth0 # or eth2 or any of your NICs
- lxc.network.hwaddr = 4a:49:43:49:79:bd
- lxc.network.ipv4 = 0.0.0.0/24
- sudo lxc-execute -n bash-test2 -f lxc-macvlan.conf /bin/bash
- $ strace cat test
- execve("/bin/cat", ["cat", "test"], [/* 55 vars */]) = 0
- /* ... */
- open("test", O_RDONLY) = 3
- /* ... */
- read(3, "hellon", 32768) = 6
- write(1, "hellon", 6) = 6
- read(3, "", 32768) = 0
- /* ... */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement