OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script to convert the output of build_image.sh to a VMware image and write a | 7 # Script to convert the output of build_image.sh to a VMware image and write a |
8 # corresponding VMware config file. | 8 # corresponding VMware config file. |
9 | 9 |
10 # Load common constants. This should be the first executable line. | 10 # Load common constants. This should be the first executable line. |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 guestOS = \"otherlinux\" | 281 guestOS = \"otherlinux\" |
282 ethernet0.addressType = \"generated\" | 282 ethernet0.addressType = \"generated\" |
283 floppy0.present = \"FALSE\"" | 283 floppy0.present = \"FALSE\"" |
284 | 284 |
285 if [[ "${FLAGS_make_vmx}" = "${FLAGS_TRUE}" ]]; then | 285 if [[ "${FLAGS_make_vmx}" = "${FLAGS_TRUE}" ]]; then |
286 echo "${VMX_CONFIG}" > "${FLAGS_to}/${FLAGS_vmx}" | 286 echo "${VMX_CONFIG}" > "${FLAGS_to}/${FLAGS_vmx}" |
287 echo "Wrote the following config to: ${FLAGS_to}/${FLAGS_vmx}" | 287 echo "Wrote the following config to: ${FLAGS_to}/${FLAGS_vmx}" |
288 echo "${VMX_CONFIG}" | 288 echo "${VMX_CONFIG}" |
289 fi | 289 fi |
290 | 290 |
| 291 |
| 292 if [ "${FLAGS_format}" == "qemu" ]; then |
| 293 echo "If you have qemu-kvm installed, you can start the image by:" |
| 294 echo "sudo kvm -m ${FLAGS_mem} -vga std -pidfile /tmp/kvm.pid -net nic " \ |
| 295 "-net user,hostfwd=tcp::922-:22 \\" |
| 296 echo " -hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}" |
| 297 fi |
OLD | NEW |