Closed kevemueller closed 1 month ago
@kevemueller this seems like a duplicate of #311, which was fixed in v0.28.1. Can you confirm what version of the provider you are using and upgrade to v0.28.1 or later to retest?
As for the limitation around providing either cdrom
or installation_method = "network"
, iirc I opted for a simpler implementation since the initial feature request didn't ask for that. I think that's reasonable to change and appreciate you surfacing this use case.
I have copied the provider.tf from your tutorial https://xen-orchestra.com/blog/virtops1-xen-orchestra-terraform-provider/
terraform {
required_providers {
xenorchestra = {
source = "terra-farm/xenorchestra"
version = "~> 0.9"
}
}
}
This installs me:
Terraform v1.8.3
on darwin_amd64
+ provider registry.terraform.io/terra-farm/xenorchestra v0.26.1
I understand that you have moved your registry to vatesfr/xenorchestra
. I suggest you mention this in the above blog entry, as that is where people new to the platform tend to get their authoritative information from.
I can confirm that the version 0.29 does not show this error.
Blog post edited to fix the links :+1:
Hi @olivierlambert, thanks for picking this up. I really appreciate your attitude to fix these small things as well, I agree that they are making a big difference when you are attracting a lot of newcomers. While you are at it, please also check https://xen-orchestra.com/docs/advanced.html#terraform-provider Link goes to the old repo.
Thanks for your feedback, helping us to find all bad links :+1:
PR created: https://github.com/vatesfr/xen-orchestra/pull/7673
In a heterogenous environment PXE based installation is a common denominator. Other TF providers support creation of VMs that boot via PXE, perform installation and then reboot from disk.
Setting
installation_method = "network"
seems to be intended to support exactly this, but does not work as expected. Also it requirescdrom
to be empty, which is in rare cases an unnecessary limitation. You might want to install from network with a kickstart file plugged into local cdrom.Example TF:
fails with the error
The problem is
installation/repository
being empty, whereas in the code it seems to be intended to have the valuePXE
. There is no way to manually override this, hence network booting is not working.