-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ignition remote configuration not downloaded from http(s):// in Hyper-V #1859
Comments
I'm not running FCOS on HyperV but on baremetal and I did the upgrade today from PXE with https provisioning and everything did work as expected |
Exactly, I' can't see any attempt to download the ign file from my web server. |
"provider config was empty" means that something went wrong at the Hyper-V level. Can you show the output of /cc @baude who has much more knowledge in KVP internals |
Ill add more after booting into windows momentarily. |
the output is regular: I also checked via PowerShell/CIM/WMI, after booting the VM, and ign is installed in KVP |
If I take a VM checkpoint, with VM configured ad desired but with no ign installed in KVP:
|
can you sanitize an ign file and attach? I'll attach one from |
Not sure to understand. The ign i install in the KVP is the one derived from the butane above: The ign served via http(s) at http://provisioning.portal.mydomain.tld/coreos/default.ign is relevant? It's not even downloaded. Access log of web server (caddy) doesn't even show any attempt and any error. |
That was my guess. With podman-machine, we have to do some network stuff to make things work in usermode iirc. Note the ign file I provided which has:
That's why I asked if you could tell if the networking was working. |
About networking the only things I know:
|
Booting the Hyper-V VM with iPXE and provisioning by an https-serverd ign works. |
I also tried to inject the following ign into the Hyper-V VM to be provisioned.
This was an attempt to set a password to login or setup autologin to better diagnose the issue. There is a way to check, after unsuccessful prvisioning, what happened? To check if the network was online at the suitable moment and so on...? |
It would be nice if we could get some logs from boot of the machine when this happens. @baude or @outofsight, do you know if we can get serial console on Hyper-V? If so a full serial console log of the boot would be great! screenshots, not so great. |
If serial means something related to COM ports, I don't think it's possible in Hyper-V Generation 2 VM because virtual hardware doesn't include COM ports. Other way to save and transfer this log would be nice. |
there is only gui im afraid. |
maybe a screen capture of the VGA console during boot then? at least then we can pause at different points and should be able to see all output |
|
In the case of a remote/replace config I would expect to see something like:
but I'm not seeing that. |
doesn't work in Fedora CoreOS - see #112 I wonder if you can add a merge config without the kernelArgument part (that complicates things since it will cause a reboot to happen and thus Ignition runs twice) that just sets a password and an ssh key but then references a remote config to merge. That should let you still get into the system and get a proper journal log. Maybe without the kernelArgument part you'll have success with the merge config. |
see here from the recorded screen we can confirm the ignition has been embedded and can be read from Hyper-V KVP store? |
right, but that was with a replace and not a merge with ssh and/or password.. can you try with a merge config with ssh key (just an ssh key) and see if at least the key gets set?
|
I tried also this, with a password, with a ssh-key, with both, and I tried again now |
Any other idea to try? Not sure if could explain but I noticed that even in a coreos successfully provisioned with an ignition fully embedded in KVP since beginning, hv_vss_daemon and hypervvssd are not running by default, and hyperv-daemons and hyperv-tools are not installed by default. |
Describe the bug
I'm trying to provision a CoreOS Hyper-V Virtual Machine with a remote ignition file served by http or https.
Apparently ignition file is not downloaded from web server during boot.
CoreOS is not provisioned: no users, no ssh keys, not even when merging a remote configuration with an inline one.
The same ignition configuration inserted directly in VM works fine.
Reproduction steps
Expected behavior
Ignition should be fetched from web server, CoreOS VM should be provisioned.
Actual behavior
CoreOS VM get network configuration from DHCP.
Web Server log doens't show any request for referenced ignition file.
Not even the ssh keys are installed on CoreOS.
Starting VM in single mode and checking journal:
System details
Butane or Ignition config
Additional information
The text was updated successfully, but these errors were encountered: