Issue when using fw_cfg string=

alebeta

Well-Known Member
Mar 20, 2018
45
3
48
33
gonkar.com
Hi all,

Proxmox 6.1-5

I'm deploying a Fedora CoreOS VM on Proxmox.

Basically I use the follow syntax

Code:
-fw_cfg name="opt/com.coreos/config",file="/directory.ignition.file"

but to improve deployment I want to use the string option -fw_cfg name=foo,string=foo

this is how it looks like when I try to start the vm using string

Code:
-fw_cfg name="opt/com.coreos/config",string="{"ignition":{"config":{"replace":{"source":null,"verification":{}}},"security":{"tls":{}},"timeouts":{},"version":"3.0.0"},"passwd":{"users":[{"name":"core","sshAuthorizedKeys":["ssh-rsa AAAAB3NzaC1yc"]}]},"storage":{},"systemd":{}}"


and proxmox error

Code:
kvm: -fw_cfg name=opt/com.coreos/config,string={"ignition":{"config":{"replace":{"source":null,"verification":{}}},"security":{"tls":{}},"timeouts":{},"version":"3.0.0"},"passwd":{"users":[{"name":"core","sshAuthorizedKeys":["ssh-rsa AAAAB3NzaC1yc"]}]},"storage":{},"systemd":{}}: Invalid parameter '"verification":{}}}'

TASK ERROR: start failed: QEMU exited with code 1

I checked the json string and everything to be fine, and it seems to be related in how proxmox is parsing the data?

thanks
 
Did not really looked into it but you probably want to quote the json string with single quotes for the parameter:
-fw_cfg name="opt/com.coreos/config",string='"{"ignition"....'
 
Did not really looked into it but you probably want to quote the json string with single quotes for the parameter:
-fw_cfg name="opt/com.coreos/config",string='"{"ignition"....'


Hi Thomas

thanks for your reply, the problem is the same after adding the single quotes
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!