Ubuntu Pastebin

Paste from Chad Smith at Tue, 2 May 2017 22:46:09 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
for release in xenial yakkety zesty do;
 ref=$release-proposed;
 taroimag
 lxc-proposed-snapshot --proposed --publish $release $ref;
 lxc image export $ref .;
 imagefile=`ls -tr *gz | tail -n 1`
 mkdir $ref;
 cd $ref;
 tar -zxvf ../$imagefile;
 cd rootfs;
 tar zcvf $ref.tar.gz *;
 #upload raw image to your cloud
  openstack image create --disk-format raw --container-format bare --file $ref.tar.gz testing/$ref.tar.gz;
  openstack server create --image testing/$ref.tar.gz --flavor=m1.tiny lxd-$release --key-name <your-key>;
Download as text