nmcli connection add type bridge ifname br0 stp no
nmcli connection add type bridge-slave ifname enp7s0 master br0
nmcli connection show --active
nmcli connection down bridge-br0
nmcli connection down Wired\ connection\ 1nmcli connection show
nmcli connection up bridge-br0
nmcli connection up bridge-slave-enp7s0
Build the kernel with CONFIG_GDB_SCRIPTS enabled, but leave CONFIG_DEBUG_INFO_REDUCED off.
Turn off KASLR if necessary by adding “nokaslr” to the kernel command line.
If your architecture supports CONFIG_FRAME_POINTER, Enable FRAME_POINTER!!!
QEMU/KVM
Add qemu commandline
-s stands for -gdb & tcp:1234
1
2
3
4
5
6
7
8
9
10
<domaintype='kvm'xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'><qemu:commandline><qemu:argvalue='-s'/></qemu:commandline><!-- or --><qemu:commandline><qemu:argvalue="-gdb"/><qemu:argvalue="tcp::1235"/></qemu:commandline></domain>
Attach
Copy vmlinux from Linux kernel root directory first