2011-01-30 21:12:02 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. gconfig
|
|
|
|
|
2011-02-01 07:50:59 +00:00
|
|
|
ARCH=qemu$1
|
|
|
|
SUFFIX=$2
|
|
|
|
|
2012-04-22 05:44:00 +00:00
|
|
|
if [ -z "$USE_LXC" ]; then
|
|
|
|
kvm -cpu $ARCH -m ${VMEM:-2000} -smp ${NPROCS:-2} -drive file=target-$SUFFIX.qcow2 -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
|
|
|
|
else
|
|
|
|
true #sudo lxc-start -n gitian -c var/target.log -f lxc.config
|
|
|
|
fi
|