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

Side by Side Diff: image_to_vm.sh

Issue 4737001: [crosutils] bump default size of VM disk to allow for bigger stateful partition (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: set statefulfs_size default instead Created 10 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 19 matching lines...) Expand all
30 "Directory containing rootfs.image and mbr.image" 30 "Directory containing rootfs.image and mbr.image"
31 DEFINE_boolean full "${FLAGS_FALSE}" "Build full image with all partitions." 31 DEFINE_boolean full "${FLAGS_FALSE}" "Build full image with all partitions."
32 DEFINE_boolean make_vmx ${FLAGS_TRUE} \ 32 DEFINE_boolean make_vmx ${FLAGS_TRUE} \
33 "Create a vmx file for use with vmplayer (vmware only)." 33 "Create a vmx file for use with vmplayer (vmware only)."
34 DEFINE_integer mem "${DEFAULT_MEM}" \ 34 DEFINE_integer mem "${DEFAULT_MEM}" \
35 "Memory size for the vm config in MBs (vmware only)." 35 "Memory size for the vm config in MBs (vmware only)."
36 DEFINE_integer rootfs_partition_size 1024 \ 36 DEFINE_integer rootfs_partition_size 1024 \
37 "rootfs parition size in MBs." 37 "rootfs parition size in MBs."
38 DEFINE_string state_image "" \ 38 DEFINE_string state_image "" \
39 "Stateful partition image (defaults to creating new statful partition)" 39 "Stateful partition image (defaults to creating new statful partition)"
40 DEFINE_integer statefulfs_size -1 \ 40 DEFINE_integer statefulfs_size 2048 \
41 "Stateful partition size in MBs." 41 "Stateful partition size in MBs."
42 DEFINE_boolean test_image "${FLAGS_FALSE}" \ 42 DEFINE_boolean test_image "${FLAGS_FALSE}" \
43 "Copies normal image to chromiumos_test_image.bin, modifies it for test." 43 "Copies normal image to chromiumos_test_image.bin, modifies it for test."
44 DEFINE_string to "" \ 44 DEFINE_string to "" \
45 "Destination folder for VM output file(s)" 45 "Destination folder for VM output file(s)"
46 DEFINE_string vbox_disk "${DEFAULT_VBOX_DISK}" \ 46 DEFINE_string vbox_disk "${DEFAULT_VBOX_DISK}" \
47 "Filename for the output disk (virtualbox only)." 47 "Filename for the output disk (virtualbox only)."
48 DEFINE_integer vdisk_size 3072 \ 48 DEFINE_integer vdisk_size 3072 \
49 "virtual disk size in MBs." 49 "virtual disk size in MBs."
50 DEFINE_string vmdk "${DEFAULT_VMDK}" \ 50 DEFINE_string vmdk "${DEFAULT_VMDK}" \
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 if [[ "${FLAGS_make_vmx}" = "${FLAGS_TRUE}" ]]; then 278 if [[ "${FLAGS_make_vmx}" = "${FLAGS_TRUE}" ]]; then
279 echo "${VMX_CONFIG}" > "${FLAGS_to}/${FLAGS_vmx}" 279 echo "${VMX_CONFIG}" > "${FLAGS_to}/${FLAGS_vmx}"
280 echo "Wrote the following config to: ${FLAGS_to}/${FLAGS_vmx}" 280 echo "Wrote the following config to: ${FLAGS_to}/${FLAGS_vmx}"
281 echo "${VMX_CONFIG}" 281 echo "${VMX_CONFIG}"
282 fi 282 fi
283 283
284 284
285 if [ "${FLAGS_format}" == "qemu" ]; then 285 if [ "${FLAGS_format}" == "qemu" ]; then
286 echo "If you have qemu-kvm installed, you can start the image by:" 286 echo "If you have qemu-kvm installed, you can start the image by:"
287 echo "sudo kvm -m ${FLAGS_mem} -vga std -pidfile /tmp/kvm.pid -net nic,model=e 1000 " \ 287 echo "sudo kvm -m ${FLAGS_mem} -vga std -pidfile /tmp/kvm.pid -net nic,model=e 1000 " \
288 "-net user,hostfwd=tcp::922-:22 \\" 288 "-net user,hostfwd=tcp::9222-:22 \\"
289 echo " -hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}" 289 echo " -hda ${FLAGS_to}/${DEFAULT_QEMU_IMAGE}"
290 fi 290 fi
OLDNEW
« 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