# Xterm is not working in ngSDN VM

**URL:** <https://forum.p4.org/t/xterm-is-not-working-in-ngsdn-vm/155>\
**Category:** Uncategorized\
**Created:** [October 26, 2021, 6:08am UTC](https://forum.p4.org/t/xterm-is-not-working-in-ngsdn-vm/155 "2021-10-26T06:08:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandhyarathee](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@Sandhyarathee](https://forum.p4.org/u/Sandhyarathee)\
**Post date:** [October 26, 2021, 6:08am UTC](https://forum.p4.org/t/xterm-is-not-working-in-ngsdn-vm/155/1 "2021-10-26T06:08:50Z")

</div>

Hi,  
I was trying to get an Xterm of host in ngSDN VM, but I could not.  
Then I tried the following, (suggested by ederollora in the link [[question] Running Xterm - githubmemory](https://githubmemory.com/repo/opennetworkinglab/ngsdn-tutorial/issues/85))

The first thing is to access Mininet container CLI: sudo docker exec -it mininet bash  
To get a CLI for h1a or any name: lsns | grep h1a -m1 | awk ‘{print $4}’  
The number from the previous command should replace PID\_HERE: nsenter --target PID\_HERE --mount --uts --ipc --net --pid  
When I am running my recieve.py, it is giving me following error,

sniffing on eth0  
Traceback (most recent call last):  
File “./receive.py”, line 67, in   
main()  
File “./receive.py”, line 64, in main  
prn = lambda x: handle\_pkt(x))  
File “/usr/local/lib/python2.7/dist-packages/scapy/sendrecv.py”, line 972, in sniff  
sniffer.\_run(\*args, \*\*kwargs)  
File “/usr/local/lib/python2.7/dist-packages/scapy/sendrecv.py”, line 842, in \_run  
\*arg, \*\*karg)] = iface  
File “/usr/local/lib/python2.7/dist-packages/scapy/arch/linux.py”, line 475, in **init**  
attach\_filter(self.ins, filter, iface)  
File “/usr/local/lib/python2.7/dist-packages/scapy/arch/linux.py”, line 160, in attach\_filter  
bp = compile\_filter(bpf\_filter, iface)  
File “/usr/local/lib/python2.7/dist-packages/scapy/arch/common.py”, line 165, in compile\_filter  
raise Scapy\_Exception(“tcpdump is not available. Cannot use filter !”)  
scapy.error.Scapy\_Exception: tcpdump is not available. Cannot use filter !  
Exception IOError: IOError(19, ‘No such device’) in \<bound method L2ListenSocket. **del** of \<scapy.arch.linux.L2ListenSocket object at 0x7fd6b4f34250\>\> ignored

Is there a way to get the xterm which can run the receive.py og P4-tuturial?

---

<div class="post-metadata">

**Author:** ![ederollora](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/ederollora/32/21_2.png) [@ederollora](https://forum.p4.org/u/ederollora)\
**Post date:** [December 19, 2021, 2:23pm UTC](https://forum.p4.org/t/xterm-is-not-working-in-ngsdn-vm/155/2 "2021-12-19T14:23:21Z")

</div>

Hi,

For the sake of completeness I would like to add a response to this thread, so all open threads have so far been answered.

I think we had a discussion about this topic back in time, and I am sorry for coming back so late. I think the topic is mostly concerning the NG-SDN tutorial, and it is a docker/mininet related issue (the question is not related to P4 per-se), and I am more than happy to continue the discussion in the [Github repository issue](https://github.com/opennetworkinglab/ngsdn-tutorial/issues) thread that you opened. [Since you closed it back in time](https://github.com/opennetworkinglab/ngsdn-tutorial/issues/85), please open a new one. Please answer there anything you need and anyone with some free time may pass by and answer 🙂

Cheers!
