Guest User

Untitled

a guest
May 8th, 2017
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.07 KB | None | 0 0
  1. #!/bin/bash
  2. modprobe kvm
  3. modprobe kvm_intel
  4. cd ~/programming/gnu/hurd/vm/
  5. MEMORY=2G
  6. FILE=hd020160824.img
  7. HD1=hd120170507.img
  8. # If I ever need to add a cdrom
  9. echo "running ssh"
  10.  
  11. qemu-system-i386 -m $MEMORY -net nic                                  \
  12.                  -net user,hostfwd=tcp:127.0.0.1:2222-:22             \
  13.                  -drive file=$FILE,cache=writeback,format=raw,index=0 \
  14.                  -enable-kvm                                          \
  15.                  -curses                                              \
  16.                  -hdb $HD1                                            \
  17.                  -hdc $HD1                                            \
  18.                  -hdd $HD1                                            \
  19.                  -no-reboot;
  20. # -curses lets me keep my dvorak layout
  21. # -no-reboot, let's me issue a reboot and not worry about filesystem corruptions,
  22. # but I normally just issue su halt
  23. # -hdd lets me mount a file as another drive on the image
  24. # I use this to let me run a subhurd.
  25. # -machine kernel_irqchip=off
Advertisement
Add Comment
Please, Sign In to add comment