~ubuntu-on-ec2/vmbuilder/automated-ec2-builds

173 by Scott Moser
add README.files to image archive.
1
This compressed tar archive contains files relevant to this machine image.
2
Each filename is prefixed by a constant string denoting release and
3
architecture information.  The prefix, for example, may be
320 by Scott Moser
rename 'uec' to a combination of 'cloudimg' or 'cloud'
4
'maverick-server-cloudimg-amd64', in which case files will be named like
5
  maverick-server-cloudimg-amd64.img
6
  maverick-server-cloudimg-amd64-vmlinuz-virtual
173 by Scott Moser
add README.files to image archive.
7
8
All or some of the following files may be present in the archive:
9
10
- <prefix>.img
11
  This file is an partition image.  It can be bundled, uploaded and
469 by Scott Moser
README.files: update for new files that are available.
12
  registered to EC2, Eucalyptus or OpenStack as a Amazon Machine Image
13
  (ami/emi).
14
15
- <prefix>-disk1.img
16
  This is a qcow2 compressed disk image.  It can be uploaded to OpenStack
17
  or booted directly via kvm.  You should probably uncompress the image
18
  (qemu-img convert) before use in non-testing environment.
19
564 by Ben Howard
Updated readme to include UEFI images
20
- <prefix>-uefi1.img
21
  This is a qcow2 compressed disk image that has GPT partitioning and a UEFI
22
  bootloader. It is bootable via UEFI, BIOS/GPT and PVGRUB (with support
23
  for GPT partition tables. It is bootable in OpenStack or directly via kvm.
24
  You should probably uncompress the images (qemu-img convert) before using
25
  it in a non-testing environment.
26
469 by Scott Moser
README.files: update for new files that are available.
27
- <prefix>-root.tar.gz
631 by Ben Howard
Whitespace cleanup
28
  This is a compressed tar file containing the contents of the root
469 by Scott Moser
README.files: update for new files that are available.
29
  filesystem.  Essentially, 'tar cpzf - /'.
173 by Scott Moser
add README.files to image archive.
30
31
- <prefix>-vmlinuz-virtual
32
  This is a Linux kernel.  It can be bundled, uploaded, and registered
33
  UEC as an Amazon Kernel Image (aki/eki).  The '-virtual' string
34
  represents the Ubuntu Linux package that this kernel came from.  It
35
  could potentially be '-server' or another string.
36
37
- <prefix>-initrd-virtual
38
  This is a Linux initrd.  It can be bundled, uploaded, and registered
39
  UEC as an Amazon Ramdisk Image (ari/eri). Not all images require an
40
  initrd, and thus this file may not be present.  If it is not present,
41
  then the image should be registered without a ramdisk.
42
43
- <prefix>-loader
44
  This file is a multiboot compliant image capable of loading the
45
  guest image. On UEC installs where the host operating system is 10.10 or
46
  later (LP: #611144), this can registered as a kernel (eki).
631 by Ben Howard
Whitespace cleanup
47
  It provides function similar to the Amazon released feature
173 by Scott Moser
add README.files to image archive.
48
  "Enabling User Provided Kernels".  When the loader is used to boot an
49
  instance, a kernel upgrade performed inside the instance will take
50
  affect on subsequent boots.
51
175 by Scott Moser
add a floppy image to the tar archive
52
- <prefix>-floppy
53
  This file is a floppy disk image.  It is not useful or relevant to
54
  running inside of EC2 or UEC.
469 by Scott Moser
README.files: update for new files that are available.
55
  The purpose of this file is to allow booting the <prefix>.img outside a cloud.
175 by Scott Moser
add a floppy image to the tar archive
56
  To boot outside of a cloud environment (where a metadata service is not
57
  present), the following kvm command line can be used:
58
     kvm -boot a -fda <prefix>-floppy -drive file=<prefix>.img,if=virtio
469 by Scott Moser
README.files: update for new files that are available.
59
  This is not necessary, and generally obsolete, if <prefix>-disk1.img is
60
  available.
175 by Scott Moser
add a floppy image to the tar archive
61
173 by Scott Moser
add README.files to image archive.
62
Other notes:
63
- This tar file is constructed such that it can be easily
320 by Scott Moser
rename 'uec' to a combination of 'cloudimg' or 'cloud'
64
  bundled uploaded and registered using 'cloud-publish-tarball' as an admin
631 by Ben Howard
Whitespace cleanup
65
  by invoking
320 by Scott Moser
rename 'uec' to a combination of 'cloudimg' or 'cloud'
66
    cloud-publish-tarball tarfile.tar.gz my-bucket i386
173 by Scott Moser
add README.files to image archive.
67
  or, to use the loader file as
320 by Scott Moser
rename 'uec' to a combination of 'cloudimg' or 'cloud'
68
    cloud-publish-tarball --use-loader tarfile.tar.gz my-bucket i386
173 by Scott Moser
add README.files to image archive.
69
- The image file (.img) can be resized before uploading by using
320 by Scott Moser
rename 'uec' to a combination of 'cloudimg' or 'cloud'
70
  'cloud-resize-image', as:
71
    cloud-resize-image <prefix>.img 5G
72
  or, resized before uploading with cloud-publish-tarball by:
73
    cloud-publish-tarball --resize 5G tarfile.tar.gz my-bucket i386
74
75
   *Note*: in 11.10 and beyond, 'uec' as a prefix to the commands below is
76
      replaced with 'cloud'. So, 'cloud-publish-tarball' may be 'uec-publish-tarball'
77
      in your cloud-utils package. Just substitite accordingly.