VirtualMachine
Contents
KVM
bridge
- NOTE: start
dhcpcd.service
| |
kernel
compilation
| |
Cannot find LILO
- manually update boot loader
| |
install
| |
mkinitcpio
| |
| |
serial console
- change the grub config
| |
gdb
kernel config
- 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
| |
Attach
- Copy vmlinux from Linux kernel root directory first
| |
- Edit
~/.config/gdb/gdbinit
| |
Image
| qemu | qcow2 |
| virtual box | vmdk |
| vmware | vmdk |
- unzip OVA →
| |
boot from disk
| |