Start / Stop a pcap at the VM level for a guest machine. (not having to route traffic through another box to capture; works in NAT)
- Start pcap
vboxmanage controlvm "vm_name_here" nictrace1 on
- Stop pcap
vboxmanage controlvm "vm_name_here" nictrace1 off
A file VBox-<5_hex_digits>.pcap
will be created. don't know the significance of the digits. They don't seem to be the mac
Saving to a specific file via nictracefile1 some.pcap
isnt't working on my machine (kubuntu 20.10 vbox 6.1.18r142142 on 02MAY21)