6.828 based on https://pdos.csail.mit.edu/6.828/2018/schedule.html
- Virtualbox Version Version 6.1.44 r156814 (Qt5.6.3)
- ubuntu-16.04.6-desktop-i386.iso Ubuntu mirror "Tsinghua University"
- mac host
uname -r
cat /etc/lsb-release
https://askubuntu.com/questions/655262/ubuntu-14-04-vbox-guest-additions-problem-installing
https://askubuntu.com/questions/22743/how-do-i-install-guest-additions-in-a-virtualbox-vm
[How to enable ssh root access ubuntu 16.04 duplicate]
********on guest********
// change root passwd
passwd root
// install openssh-server
apt-get install openssh-server
service ssh enable
// enable root access
sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
servie ssh restart
********on host********
ssh-copy-id -p 2222 -i ~/.ssh/id_rsa.pub root@localhost
ssh -p '2222' 'root@localhost'
jos: 123456
// make sure qemu source is not in vbox shared folder, would complain ln error
apt-get upgrade
apt-get update
apt-get install pkg-config libsdl1.2-dev libtool-bin libglib2.0-dev libz-dev libpixman-1-dev
./configure --disable-kvm --enable-debug --target-list="i386-softmmu x86_64-softmmu"
make && make install
// disable warning as error
config-host.mak # rm QEMU_CFLAGS: -Werror
// undefined reference to major
add "#include <sys/sysmacros.h>" to "qga/commands-posix.c"