Dump the network

This commit is contained in:
Baptiste Wicht 2016-08-23 19:46:49 +02:00
parent 9f0587da9b
commit 5c85d4fec6
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -14,3 +14,6 @@ tlib/debug
# Ignore the generated log (Qemu)
*.log
# Ignore the generated pcap files (Qemu)
*.pcap

View File

@ -53,7 +53,7 @@ qemu: default
qemu_user: default
touch virtual.log
sudo qemu-system-x86_64 -enable-kvm -cpu host -serial file:virtual.log -netdev user,id=thor_net0 -device rtl8139,netdev=thor_net0,id=thor_nic0 -vga std -hda hdd.img &
sudo qemu-system-x86_64 -enable-kvm -cpu host -serial file:virtual.log -net user,vlan=0 -net nic,model=rtl8139,vlan=0 -net dump,vlan=0,file=thor.pcap -vga std -hda hdd.img &
echo "Reading kernel log (Ctrl+C for exit)"
tail -f virtual.log
kill %1