Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- modprobe kvm
- modprobe kvm_intel
- cd ~/programming/gnu/hurd/vm/
- MEMORY=2G
- FILE=hd020160824.img
- HD1=hd120170507.img
- # If I ever need to add a cdrom
- echo "running ssh"
- qemu-system-i386 -m $MEMORY -net nic \
- -net user,hostfwd=tcp:127.0.0.1:2222-:22 \
- -drive file=$FILE,cache=writeback,format=raw,index=0 \
- -enable-kvm \
- -curses \
- -hdb $HD1 \
- -hdc $HD1 \
- -hdd $HD1 \
- -no-reboot;
- # -curses lets me keep my dvorak layout
- # -no-reboot, let's me issue a reboot and not worry about filesystem corruptions,
- # but I normally just issue su halt
- # -hdd lets me mount a file as another drive on the image
- # I use this to let me run a subhurd.
- # -machine kernel_irqchip=off
Advertisement
Add Comment
Please, Sign In to add comment