#!/bin/sh
exit

#######################################
### zooz auto builder 63.247.92.158 ###
#######################################

KVMDIR=/HUGE/kvm/zooz
ISO=/home/`id -un`/devel/opensuse/openSUSE-11.2-NET-x86_64.iso
DISTRO=opensuse-x86_64

# create empty disk image
# then boot up the ISO image 
#qemu-img create -f raw $KVMDIR/zooz.raw 50G

qemu-system-x86_64 \
	-drive \
	  file=$KVMDIR/zooz.raw,if=virtio,cache=writeback,boot=on \
	-cpu host \
	-cdrom $ISO \
	-boot d \
	-m 1024 \
	-no-reboot \
	-monitor stdio \
	-vnc :8 -redir tcp:5588::88\
exit
#	-no-acpi \

# on your laptop run this to set up a tunnel between 
# your box and topo
ssh -N -C -L 5908:localhost:5908 jebba@topo &

# Then to view the remote kvm  window with vnc
# via an ssh tunnel, run this on your laptop:
vncviewer -PreferredEncoding hextile localhost:8

