Coreos ignition with remote config fails because of the network

464 views
Skip to first unread message

Jorge Sevilla Cedillo

unread,
Jun 18, 2018, 5:33:56 AM6/18/18
to CoreOS User

Hi!

I'm trying to boot my coreOS ova image in VSphere by using customize ignition data which is allocated in a remote file (in S3 amazon). Unfortunatelly I get always the same error:

GET error: Get https://s3-use-west-2.amazonaws.com/...ignition.json: dial tcp: lookup s3-us-west-2.amazonaws.com on [::1]:53: read udp [::1]47112->[::1]:53: read: connection refused

My ignition file has the following data:

{
   
"networkd": {
     
"units": [
       
{
         
"contents": "[Match]\nName=eth0\n\n[Network]\nDNS=192.168.1.1\nAddress=192.168.1.1/24\nGateway=192.168.1.1",
         
"name": "eth0.network"
 
}
 
]
   
},
   
"ignition": {
       
"version": "2.1.0",
       
"config": {
           
"replace": {
               
"source": "https://s3-us-west-2.amazonaws.com/.../ignition.json"
           
}
       
}
   
}
}


Could anyone help me??


Many thanks!
Jorge

David Michael

unread,
Jun 18, 2018, 9:45:53 AM6/18/18
to Jorge Sevilla Cedillo, CoreOS User
On Mon, Jun 18, 2018 at 5:33 AM, Jorge Sevilla Cedillo
<jorg...@gmail.com> wrote:
> Hi!
>
> I'm trying to boot my coreOS ova image in VSphere by using customize
> ignition data which is allocated in a remote file (in S3 amazon).
> Unfortunatelly I get always the same error:
>
> GET error: Get https://s3-use-west-2.amazonaws.com/...ignition.json: dial
> tcp: lookup s3-us-west-2.amazonaws.com on [::1]:53: read udp
> [::1]47112->[::1]:53: read: connection refused
>
> My ignition file has the following data:
>
> {
> "networkd": {
> "units": [
> {
> "contents":
> "[Match]\nName=eth0\n\n[Network]\nDNS=192.168.1.1\nAddress=192.168.1.1/24\nGateway=192.168.1.1",

When Ignition requires a static network configuration to download
files, kernel command-line options are used:

https://coreos.com/ignition/docs/latest/network-configuration.html#using-static-ip-addresses-with-ignition

This should allow you to include your networkd configuration in the
remote JSON file.

Thanks.

David

Jorge Sevilla Cedillo

unread,
Jun 18, 2018, 11:06:09 AM6/18/18
to CoreOS User
Hi David,

First of all, thank you for your fast answer.

But I do not know how to apply kernel command-line to the coreos ova image for VSphere. Could you help me with it? I would like to do it automatically, without keyboard interaction.

Many thanks,

Jorge

--

*-* Jorge Sevilla Cedillo *-*

David Michael

unread,
Jun 25, 2018, 4:24:37 PM6/25/18
to Jorge Sevilla Cedillo, CoreOS User
On Mon, Jun 18, 2018 at 11:06 AM, Jorge Sevilla Cedillo
<jorg...@gmail.com> wrote:
> Hi David,
>
> First of all, thank you for your fast answer.
>
> But I do not know how to apply kernel command-line to the coreos ova image
> for VSphere. Could you help me with it? I would like to do it automatically,
> without keyboard interaction.

I am not familiar with vsphere, so I don't know what kind of interface
it has for changing these settings. The general solution would be to
modify the image's OEM partition to add a grub.cfg flie containing the
line:

set linux_append="$linux_append ip=..."

Thanks.

David
Reply all
Reply to author
Forward
0 new messages