On Thu, 2016-08-11 at 15:33 -0700, Geoff Levand wrote:
> I tested virtfs with the current coreos_production_qemu_uefi.sh,
> which
> sets up cloud-config using a virtfs drive. It works as expected.
>
> For virtfs to work you need the latest CoreOS kernel [1] (that has
> CONFIG_VIRTIO_PCI=m), or use qemu's virtio-9p-device driver.
>
> Check the kernel with:
>
> cat /proc/config.gz | gunzip | egrep '(9P|VIRTIO)'
>
> [1] https://github.com/coreos/coreos-overlay/pull/2112
For arm64-usr/1122.0.0 and earlier releases, here's a patch
that will get the coreos_production_qemu_uefi.sh
cloud-config virtfs mounted.
You should see a console message like:
[ OK ] Started Load cloud-config from /media/configvirtfs.
-Geoff
--- coreos_production_qemu_uefi.sh.orig
+++ coreos_production_qemu_uefi.sh
@@ -152,7 +152,7 @@
if [ -n "${CONFIG_DRIVE}" ]; then
set -- \
-fsdev
local,id=conf,security_model=none,readonly,path="${CONFIG_DRIVE}" \
- -device virtio-9p-pci,fsdev=conf,mount_tag=config-2 "$@"
+ -device virtio-9p-device,fsdev=conf,mount_tag=config-2 "$@"
fi
if [ -n "${CONFIG_IMAGE}" ]; then