Merge pull request #31 from sipa/qemusystem
Use qemu-system- instead of kvm -m
This commit is contained in:
commit
67c24197d2
@ -14,8 +14,15 @@ fi
|
|||||||
|
|
||||||
case $VMSW in
|
case $VMSW in
|
||||||
KVM)
|
KVM)
|
||||||
[ -n "$KVM" ] || KVM=kvm
|
case $ARCH in
|
||||||
$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 &
|
qemu32)
|
||||||
|
[ -n "$KVM" ] || KVM=qemu-system-i386
|
||||||
|
;;
|
||||||
|
qemu64)
|
||||||
|
[ -n "$KVM" ] || KVM=qemu-system-x86_64
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
$KVM -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
|
echo $! > var/target.pid
|
||||||
wait
|
wait
|
||||||
rm var/target.pid
|
rm var/target.pid
|
||||||
|
Loading…
Reference in New Issue
Block a user