fix(image_to_vm): cleanup qemu-kvm output

- have the command use -curses to save people hassle on ssh sessions
- forward ssh too
- clean formatting up a bit
This commit is contained in:
Brandon Philips 2013-04-25 08:46:24 -07:00
parent 6bb635d51c
commit b274a41f11

View File

@ -241,7 +241,9 @@ fi
if [ "${FLAGS_format}" == "qemu" ]; then
echo "If you have qemu-kvm installed, you can start the image by:"
echo "sudo kvm -m ${FLAGS_mem} -vga cirrus -pidfile /tmp/kvm.pid" \
"-net nic,model=virtio -net user,hostfwd=tcp::8080-:8080,hostfwd=::8000-:8000 \\"
echo "-hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}"
echo "qemu-kvm -m ${FLAGS_mem} -curses -pidfile /tmp/kvm.pid -net nic,model=virtio \\"
echo " -net user,hostfwd=tcp::2222-:22,hostfwd=tcp::8080-:8080,hostfwd=::8000-:8000 \\"
echo " -hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}"
echo "SSH into the host with:"
echo "ssh 127.0.0.1 -p 2222"
fi