You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

start-target 251B

123456789101112
  1. #!/bin/sh
  2. . gconfig
  3. ARCH=qemu$1
  4. SUFFIX=$2
  5. kvm -cpu $ARCH -m 256 -smp 2 -drive file=target-$SUFFIX.qcow2 -net nic,model=virtio -net user,hostfwd=tcp::$VM_SSH_PORT-:22 -vnc :16 > var/target.log 2>&1 &
  6. echo $! > var/target.pid
  7. wait
  8. rm var/target.pid