Merge lp:~joetalbott/core-pkg-tester/add_u-d-f into lp:core-pkg-tester

Proposed by Joe Talbott
Status: Needs review
Proposed branch: lp:~joetalbott/core-pkg-tester/add_u-d-f
Merge into: lp:core-pkg-tester
Diff against target: 67 lines (+57/-0)
1 file modified
README.rst (+57/-0)
To merge this branch: bzr merge lp:~joetalbott/core-pkg-tester/add_u-d-f
Reviewer Review Type Date Requested Status
Canonical CI Engineering Pending
Review via email: mp+259263@code.launchpad.net

Commit message

Add ubuntu-device-flash and glance/nova instructions.

Description of the change

Add ubuntu-device-flash and glance/nova instructions.

To post a comment you must log in.

Unmerged revisions

4. By Joe Talbott

Update docs to include ubuntu-device-flash instructions.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'README.rst'
2--- README.rst 2015-05-14 19:01:23 +0000
3+++ README.rst 2015-05-15 15:40:29 +0000
4@@ -17,6 +17,63 @@
5
6 bzr branch lp:launchpad-buildd
7
8+Download ubuntu-device-flash source::
9+
10+ bzr branch lp:~canonical-ci-engineering/goget-ubuntu-touch/trunk goget-ubuntu-touch
11+
12+Build a rootfs from scratch
13+---------------------------
14 For now vivid/amd64 is hardcoded in the script::
15
16 ./build_rootfs.sh [build_id:123] [binary:udev]
17+
18+Create the image
19+----------------
20+
21+Build the CI version of ubuntu-device-flash::
22+
23+ cd goget-ubuntu-touch/ubuntu-device-flash
24+ # XXX: list dependencies,
25+ # ubuntu-snappy-cli from ppa:snappy-dev/tools
26+ # kpartx
27+ # debsig-verify
28+ go build
29+
30+ export IMG_PREFIX=joe-si-touched
31+
32+ # build image
33+ sudo ~/goget-ubuntu-touch/ubuntu-device-flash/ubuntu-device-flash \
34+ core --device generic_amd64 --channel edge -o ./$IMG_PREFIX.img \
35+ --image-part \
36+ ~/tmp/s-i-touched.tar.xz
37+ --developer-mode --cloud rolling
38+
39+Make a cloud image
40+------------------
41+
42+Convert the image to qcow2::
43+
44+ qemu-img convert -O qcow2 $IMG_PREFIX.img $IMG_PREFIX-cloud.img
45+
46+Upload the image
47+----------------
48+
49+Upload the qcow2 image to glance::
50+
51+ # source bootstack creds
52+ . bootstackrc
53+
54+ # upload qcow2 image to glance
55+ export IMG=$IMG_PREFIX-cloud.img; glance image-create --name $IMG \
56+ --file $IMG --is-public True --disk-format=qcow2 \
57+ --container-format bare --progress
58+
59+Boot the image
60+--------------
61+
62+Boot a nova instance of the image::
63+
64+ nova boot --user-data ./userdata --flavor m1.small --image $IMG \
65+ --nic net-id=415a0839-eb05-4e7a-907c-413c657f4bf5 \
66+ --key_name joe test_joe_si_touched
67+

Subscribers

People subscribed via source and target branches