Browse Source

Merge pull request #28 from luke-jr/custom_kvm

Allow environment-configurable KVM binary name
pull/31/head
Dev Random 9 years ago
parent
commit
1f8299b9a0
  1. 3
      libexec/start-target

3
libexec/start-target

@ -14,7 +14,8 @@ fi @@ -14,7 +14,8 @@ fi
case $VMSW in
KVM)
kvm -cpu $ARCH -m ${VMEM:-2000} -smp ${NPROCS:-2} -drive file=target-$SUFFIX.qcow2,cache=writeback -net nic,model=virtio -net user,hostfwd=tcp:127.0.0.1:$VM_SSH_PORT-:22 -vnc 127.0.0.1:16 > var/target.log 2>&1 &
[ -n "$KVM" ] || KVM=kvm
$KVM -cpu $ARCH -m ${VMEM:-2000} -smp ${NPROCS:-2} -drive file=target-$SUFFIX.qcow2,cache=writeback -net nic,model=virtio -net user,hostfwd=tcp:127.0.0.1:$VM_SSH_PORT-:22 -vnc 127.0.0.1:16 > var/target.log 2>&1 &
echo $! > var/target.pid
wait
rm var/target.pid

Loading…
Cancel
Save