From 3ed8d12f487d8dfcd09494482053780a0f659088 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Mon, 27 Sep 2010 13:29:40 -0500 Subject: [PATCH] image_to_vm: print launch command for qemu images Change-Id: Id62c28eac319caf15a2bf83a69b4f727f9e9d56b BUG=none TEST=sudo emerge qemu-kvm ; image_to_vm <...> ; cut and paste of output Review URL: http://codereview.chromium.org/3418031 --- image_to_vm.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/image_to_vm.sh b/image_to_vm.sh index 95715601c6..3807269856 100755 --- a/image_to_vm.sh +++ b/image_to_vm.sh @@ -288,3 +288,10 @@ if [[ "${FLAGS_make_vmx}" = "${FLAGS_TRUE}" ]]; then echo "${VMX_CONFIG}" 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 std -pidfile /tmp/kvm.pid -net nic " \ + "-net user,hostfwd=tcp::922-:22 \\" + echo " -hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}" +fi