[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 279: mysqli_fetch_assoc(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 343: mysqli_free_result(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 279: mysqli_fetch_assoc(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 343: mysqli_free_result(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 279: mysqli_fetch_assoc(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 343: mysqli_free_result(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 279: mysqli_fetch_assoc(): Couldn't fetch mysqli_result [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 343: mysqli_free_result(): Couldn't fetch mysqli_result How to enable network cap trace using API? - virtualbox.org
I'm using VirtualBox API to manage VMs. It's possible to enable network trace using API, just as command line? Invoking command line with API captures invalid traffic.
Command line:
VBoxManage modifyvm myvm --nictrace2 on --nictracefile2 ~/test.pcap
> I'm using VirtualBox API to manage VMs. It's possible to enable network
> trace using API, just as command line? Invoking command line with API
> captures invalid traffic.
Yes, it is possible to enable network tracing for a virtual network
card using the VirtualBox API. In Python it would look like the following:
This is the equivalent of the 'VBoxManage modifyvm' command you
referenced. I tried this out with the latest VirtualBox 7.1 release and
the test.pcap file is readable using snoop or wireshark for me.