-
Notifications
You must be signed in to change notification settings - Fork 32
Debian
Fangrui Song edited this page May 21, 2022
·
2 revisions
Install, the fast way (if vmlinux-debian supports the qemu virtual m68k machine)
qemu-img create -f debian-m68k.qcow2 10G
qemu-system-m68k -M virt -m 3G -kernel vmlinux-debian -initrd initrd.gz -append "console=hvc0 console=tty0 video=Virtual-1:1024x768@60" -chardev stdio,signal=off,mux=on,id=char0 -mon chardev=char0,mode=readline -serial chardev:char0 -device virtio-serial-device -device virtconsole,chardev=char0 -device virtio-keyboard-device -device virtio-mouse-device -device virtio-gpu-device -device virtio-scsi-device -device virtio-blk-device,drive=disk0 -drive file=debian-m68k.qcow2,format=qcow2,id=disk0 -blockdev node-name=debian,driver=file,filename=~/Images/debian-11.0.0-m68k-NETINST-1.iso -blockdev node-name=cdrom0,driver=raw,file=debian -device scsi-cd,drive=cdrom0
Install, the slow way
qemu-img create -f qcow2 debian-m68k.qcow2 10G
qemu-system-m68k -M q800 -m 1000m -serial none -serial mon:stdio -net nic,model=dp83932 -net user -kernel vmlinux-5.16.0-5-m68k -initrd initrd.gz -append 'console=ttyS0 vga=off' -drive file=debian-m68k.qcow2,format=qcow2 -drive file=debian-11.0.0-m68k-NETINST-1.iso,format=raw,media=cdrom -nographic -boot d
# slow
qemu-system-m68k -M q800 -m 1000M -kernel vmlinux-5.16.0-6-m68k -initrd initrd.img-5.16.0-6-m68k -append 'root=/dev/sda2 console=tty' -hda debian-m68k.qcow2 -net nic,model=dp83932 -net user,smb=$HOME/Dev
# fast, no network
qemu-system-m68k -M virt -m 3G -kernel vmlinux-debian -initrd initrd.img-5.16.0-6-m68k -append "root=/dev/vda2 console=hvc0 console=tty0 video=Virtual-1:1024x768@60" -chardev stdio,signal=off,mux=on,id=char0 -mon chardev=char0,mode=readline -serial chardev:char0 -device virtio-serial-device -device virtconsole,chardev=char0 -device virtio-keyboard-device -device virtio-mouse-device -device virtio-gpu-device -device virtio-scsi-device -device virtio-blk-device,drive=disk0 -drive file=debian-m68k.qcow2,format=qcow2,id=disk0 -net nic,model=virtio -nic user,hostfwd=tcp::2224-:22
#-netdev bridge,id=hostnet0 -device virtio-net-device,netdev=hostnet0,mac=00:41:45:54:48:30
sudo apt install -y build-essential cifs-utils git