Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Unified Diff: image_to_vm.sh

Issue 3418031: image_to_vm: print launch command for qemu images (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git
Patch Set: moved 80-char break Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: image_to_vm.sh
diff --git a/image_to_vm.sh b/image_to_vm.sh
index 95715601c6e7f6551dbd92364c1c96870a0a6205..3807269856847ed93c0cf3085711a73c9762e84a 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698