1

Is there a way to load fw_cfg file in virt-manager (v1.4.1)?

On the plain QEMU command line I can do it like so:

-fw_cfg name=opt/com.coreos/config,file=some/file.json

I cannot find equivalent option in the virt-manager.

2

I was informed in the mailing list that:

...this will never be implemented into the virt-manager GUI.

Fortunately there's a workaround, as it's possible to set this via virt-xml/virt-install.

Eg.: you have created a virtual machine in virt-manager GUI and named it VM-1.

Now you can attach fw_cfg file to your virtual machine by using virt-xml:

virt-xml VM-1 --edit --qemu-commandline="-fw_cfg name=opt/com.coreos/config,file=/full/path/to/file.json"

However note, this is just an experimental feature in libvirt, more info here.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.