ronivay / XenOrchestraInstallerUpdater

Xen Orchestra install/update script
GNU General Public License v3.0
1.24k stars 193 forks source link

Pulled image #88

Closed shortNviolent closed 3 years ago

shortNviolent commented 3 years ago

Hey I followed the guide for delpoying the prebuilt image but it wont get a DHCP address. Any ideas where to look?

ronivay commented 3 years ago

Hi,

Without knowing more about your setup, hard to say. Is this the very first VM you're trying to setup or do you have some already running? Are they using DHCP and is it working already? XCP-ng/XenServer doesn't have any DHCP functionality built-in, so you need to have a separate DHCP server hooked up to the network which you assigned your VM to. Assuming you knew this and have one set up, double check the connectivity between the DHCP server and host physical interface and that the physical interface is assigned to correct network configured on the host.

If you don't have a DHCP server, this option obviously won't work and you need to go with static IP-address.

shortNviolent commented 3 years ago

My router, is doing DHCP. Other VMS that I bring up work with out an issue. it is connected to the pool wide Eth0 network.

When I ran the code: sudo bash -c "$(curl -s https://raw.githubusercontent.com/ronivay/XenOrchestraInstallerUpdater/master/xo-appliance.sh)"

It promted for IP address: I just left it blank, should I have put DHCP there.

ronivay commented 3 years ago

Okay. Sounds like it should work then. Leaving IP-address as blank with the script is correct.

Can you access the VM's console with xcp-ng center or xencenter (whichever you're using)? You should be able to login with credentials mentioned in README. What i'm mostly interested is what does the /etc/network/interfaces config look like and is the eth0 interface up as it's supposed to?

Did the script also say in the end that IP-address of the VM couldn't be fetched?

shortNviolent commented 3 years ago

There is no folder /etc/network/interfaces that was what was confusing me. There is interfaces.d but that is blank.

image

image

ronivay commented 3 years ago

Thank you. I found a bug which i introduced by accident in the latest image. I'll fix that and let you know when new image is available.

ronivay commented 3 years ago

you should actually be able to fix this by just running sudo systemctl start xo-appliance-setup. Can you test? No need to re-deploy with fixed image if that does it.

shortNviolent commented 3 years ago

That worked, It has an IP now :D

ronivay commented 3 years ago

Great. Reason is that the service that does initial configuration was renamed and because of that didn’t start on first boot anymore. Thanks for the report, will be fixed for good in a moment :)

shortNviolent commented 3 years ago

One more Q any reason the updates are disconnected. I assume because its from source and so have to manage it manually?

shortNviolent commented 3 years ago

So do I need to redeploy? or will this be ok now?

ronivay commented 3 years ago

Yeah built-in update feature is for the official Xen Orchestra appliance only and not supported when built from sources.

You can use /opt/XenOrchestraInstallerUpdater/xo-install.sh to update that.

No need to re-deploy the whole appliance as only issue was that one service not starting automatically and running it by hand does the same. Service runs only once and it's not needed anymore.

shortNviolent commented 3 years ago

Ok cool. Thanks for helping out so quickly

ronivay commented 3 years ago

Thanks. I'll close this for now as the fixed image is almost there. Let me know if there's anything more i can help with.