Networking/Computing Tips/Tricks

A great question and problem.

The fundamental answer is you can't.  Why?  Depends on who you believe.  My conclusion is that Wireshark (really dumpcap) has to use either Winpcap in Windows or Libpcap in Linux to access the packet data within the stack.  With Virtualbox, there is no path to the packet data that dumpcap can reach, even though the VirtualBox networks/virtual interfaces appear.  See the vboxnet intefaces I have below:

Screenshot from 2018 08 29 10 20 18

 

Some web sites say the solution is to make sure that VirtualBox promiscous mode is turned on in the VM Network settings.  Below I have selected a VM, chosen Settings, then Networking, then Advanced:

Screenshot from 2018 08 29 10 23 08

In the Promiscous mode - I selected Allow All.  Then clicked on OK, and started the VM.  It made no difference, I still could not capture this VM traffic on vboxnet0.

A bunch of other sites say to change the Attached to and set a bridged Host Only adapter.  But this is also wrong, you can't do both those things.  None of them have screen shots, so that should tell you something too.

So how do we solve the problem?  Well, it appears the VirtualBox folks know about this issue and they have provided a "work around".

Basically you have to start the VM from a terminal, not the VirtualBox interface.

You have to issue two commands:  the first starts a packet capture, and the second starts the VM.  Caution:  the capture is raw and can get big quickly.  To stop it, you must shut down the VM.

While this is clunky, it works.

Here is the VirtualBox instruction page:

Screenshot from 2018 08 29 10 29 46 

Here are the Linux commands I used on my lab network:

VBoxManage modifyvm "IPv6Sec-Debian-Host" --nictrace1 on --nictracefile1 /home/awalding/netlog.pcap
VirtualBox -startvm "IPv6Sec-Debian-Host"

After doing my testing, I was able to open the netlog.pcap file in Wireshark, and I was good to go.

I hope this helps.

Comments powered by CComment

Find by Tag

4G Networks 5G Networks 6LoWLAN 6LoWPAN 802.11 802.11ah 802.11ax 802.11ay 802.11az Ad-Hoc Addressing Analysis Ansible Architecture ARP Assessment AToM Automation Baseline BGP Bloom's Taxonomy Bluehost Cable cat CellStream Cellular Central Office Cheat Sheet Chrome Cisco Cloud CMD Company Policy Computer Consulting Data Center Data Networking Dependencies DHCPv6 DNS Docker Documentation Dublin-Traceroute dumpcap Earth Earthquakes ECMP Ethernet Ethics Etiquette Evaluation Field Operations Five Monkey Rule G-MPLS Gauge GeoIP GNS3 Google GQUIC Hands-On History Home Network ICMP ICMPv6 IEEE 802.11p IEEE 802.15.4 India Internet IoT IPv4 IPv6 IRINN IS-IS L2VPN L3VPN LDP LifeNet Linux LLN LoL M-BGP MAC Macro Microsoft Milky Way mininet Monitoring MPLS mtr Multicast Murphy Name Resolution Netcat NetMon netsh Networking nmap NSE Observations OLPC Online School OpenFlow OSPF OSPFv2 OSPFv3 OSX OTT Paris-Traceroute Parrot PIM Policy POTS POTS to Pipes PPP Profile Project Management PW3E QoS QUIC Railroad Remote Desktop Requirements Resume Review RIP Routing RPL RSVP Rural SDN Security Service Provider Small Business SONET Speed SSL Status Storms Subnetting Support SYSCTL T-Shark TCP TCP/IP Telco Telecom 101 Telecommunications Telephone Testing Tools Traceroute Traffic Engineering Training Travel Tunnel Ubuntu Utility Video Virtualbox Virtualization VoIP VRF VXLAN Wi-Fi Wi-Fi 4 Wi-Fi 5 Wi-Fi 6 Windows Wireless Wireless 5G Wireshark WLAN Writing Zenmap ZigBee

Twitter Feed