aboutsummaryrefslogtreecommitdiff
path: root/leg-cloud-image
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-07-25 15:27:33 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-07-25 15:27:33 +0200
commit58d12cc04ba62f8f8e0b422fd7086b73f314fa1a (patch)
tree81cade7e756816615083e4cdb3de199d7d7d29db /leg-cloud-image
parent469861fb58d9929a545798f37013a81e16b5efbf (diff)
downloadconfigs-58d12cc04ba62f8f8e0b422fd7086b73f314fa1a.tar.gz
leg-cloud-image: Jessie is oldstable now, force virtio-mmio
We updated libvirt to 3.x which defaults to virtio-pci. But Jessie kernel is too old for that and does not recognize network card so installer fails. Change-Id: Ie35fe4c54c404a193fc11b0a4d50cf6cd430b06b
Diffstat (limited to 'leg-cloud-image')
-rwxr-xr-xleg-cloud-image/debian/builders.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/leg-cloud-image/debian/builders.sh b/leg-cloud-image/debian/builders.sh
index a6ffd693f..5cdd352c4 100755
--- a/leg-cloud-image/debian/builders.sh
+++ b/leg-cloud-image/debian/builders.sh
@@ -34,13 +34,18 @@ cleanup_exit()
wget -q https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/leg-cloud-image/debian/preseed.cfg -O preseed.cfg
+#
+# address.type=virtio-mmio forces all devices (storage, network) to be mmio instead of pci
+# Debian/jessie 3.16 kernel does not recognize virtio pci network card
+#
sudo virt-install \
--name ${image_name} \
--initrd-inject preseed.cfg \
--extra-args "interface=auto noshell auto=true DEBIAN_FRONTEND=text" \
--disk=pool=default,bus=virtio,size=10,format=qcow2 \
+ --network=network=default,address.type=virtio-mmio \
--memory 2048 \
- --location http://ftp.debian.org/debian/dists/stable/main/installer-arm64/ \
+ --location http://ftp.debian.org/debian/dists/oldstable/main/installer-arm64/ \
--noreboot
set +ex