Packer seems to overwrite /etc/apt/sources.list.
Add the following to packer-maas/ubuntu/user-data-<whatever>:
apt:
primary:
- arches: [default]
uri:
sudo apt-get install virt-manager libvirt-daemon ovmf cloud-image-utils libslirp-dev nbdkit nbdfuse fuse2fs ninja-build meson pkg-config libglib2.0-dev libpixman-1-dev flex bison
Download from https://www.qemu.org/download
cd qemu_dir
./configure --enable-slirp
make -j`nproc` \
2017-06-15 11:32:50.740362: W tensorflow/core/common_runtime/bfc_allocator.cc:277] *****************x******************************x*****************************x***x***************xx | |
2017-06-15 11:32:50.740369: W tensorflow/core/framework/op_kernel.cc:1165] Resource exhausted: OOM when allocating tensor with shape[1152,1024,4,4] | |
2017-06-15 11:32:50.740655: W tensorflow/core/framework/op_kernel.cc:1165] Resource exhausted: OOM when allocating tensor with shape[1152,1024,4,4] | |
[[Node: ssd_300_vgg/conv6/convolution = Conv2D[T=DT_FLOAT, data_format="NCHW", padding="VALID", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/gpu:0"](ssd_300_vgg/conv6/convolution/SpaceToBatchND, ssd_300_vgg/conv6/weights/read/_223)]] | |
INFO:tensorflow:Error reported to Coordinator: <class 'tensorflow.python.framework.errors_impl.ResourceExhaustedError'>, OOM when allocating tensor with shape[1152,1024,4,4] | |
[[Node: ssd_300_vgg/conv6/convolution = Conv2D[T=DT_FLOAT, data_format="NCHW", padding="VAL |