summaryrefslogtreecommitdiff
path: root/scripts/run_qemu.sh
blob: ad5fe1b379107e04e0dd9914af3ee9cde73e492b (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

qemu-nbd -f raw root.img -x ROOT &
sleep 2 && \
qemu-system-i386 -cpu 486 -m 24M -machine isapc \
	-drive "file=floppy00,if=floppy,format=raw" \
	-netdev user,id=net0,net=10.0.0.0/24,host=10.0.0.2,dhcpstart=10.0.0.16,hostfwd=tcp::2222-:22,hostfwd=tcp::6001-:6000 \
	-vga std \
	-device ne2k_isa,iobase=0x300,irq=10,netdev=net0
pkill qemu-nbd