Matchbox - customize initrd to include vmtools

31 views
Skip to first unread message

Michael Champagne

unread,
Jun 21, 2017, 7:20:15 AM6/21/17
to CoreOS User
Hi,

I originally posted on CoreOs Dev but did not get any feedback, was maybe not the right place for this question.

I am using tectonic with matchbox for host provisioning. I have installed a 3 host k8s - tectonic cluster with graphical installer (bare metal) and everything is ok.
My hosts are not real bare metal but rather VMs, so I would like to add vm tools to my container linux hosts.

I iused to do that with PXE boot and it work fine.
initrd ./images/coreos/latest/coreos_production_pxe_image.cpio.gz,./images/coreos/latest/vmtools.cpio.gz

I would like to follow same idea with matchbox but so far I was not successfull
Here is the config file without vmtools
{
        "id": "coreos-install",
        "ignition_id": "coreos-install.yaml.tmpl",
        "boot": {
                "kernel": "/assets/coreos/1353.7.0/coreos_production_pxe.vmlinuz",
                "initrd": [
                        "/assets/coreos/1353.7.0/coreos_production_pxe_image.cpio.gz"
                ],
                "args": [
                        "coreos.config.url=http://matchbox.csnet.me:8080/ignition?uuid=${uuid}\u0026mac=${mac:hexhyp}",
                        "coreos.first_boot=yes",
                        "console=tty0",
                        "console=ttyS0"
                ]
        }
}


Where shall I add the vmtool cpio file in the conf file? As a second element of the initrd array or somewhere else in the args section? 

Thanks

Pan Luo

unread,
Feb 20, 2018, 9:24:31 PM2/20/18
to CoreOS User
Not sure if you have solved this. but I found a solution by adding "-o vmware_raw" in the coreos-install command to install vmtools. 
Reply all
Reply to author
Forward
0 new messages