Xen Orchestra on Ubuntu 15.10 - Complete installation instructions
-
@DustinB3403 said:
@Dashrender said:
@DustinB3403 said:
@Dashrender NAUBackup, yes it's a viable solution that works from XenServer.
It could certainly work, but it's at a separate host, not sure how you'd script that....
NAUBackup just runs from crontab (or manually if you run it).
I'd just use XC to snapshot what's there for XO, update and test. If all is good, delete the Snapshot.
There has to be a way to script that. Make it all part of your XO update script.
Not that I'm not interested. But how?
NAUBackup literally runs on Xen, no VM.
XO runs in a VM.
If you could make outward calls from a VM to the Hypervisor you'd be risking the security of the system as a whole.
I definitely understand where you are going with that, but I'm assuming that you could create dedicated accounts for these types of tasks, and those accounts would be able to accomplish these goals through remote triggers.
You can update whole server farms remotely in a secure fashion, no reason you can't do these processes the same.
-
Directly from the Hypervisor's crontab job
Or the cli to do it directly.
-
@DustinB3403 said:
Directly from the Hypervisor's crontab job
Or the cli to do it directly.
You can get to the CLI from the VM the same as from wherever you are getting to it from.
-
@scottalanmiller said:
@DustinB3403 said:
Directly from the Hypervisor's crontab job
Or the cli to do it directly.
You can get to the CLI from the VM the same as from wherever you are getting to it from.
Putty and XC.
-
@DustinB3403 said:
@scottalanmiller said:
@DustinB3403 said:
Directly from the Hypervisor's crontab job
Or the cli to do it directly.
You can get to the CLI from the VM the same as from wherever you are getting to it from.
Putty and XC.
So SSH.
The script can use SSH just like Putty can.
-
is there any reason that this whole script couldn't be run from the XC server itself? Everything done over SSH, etc?
-
@Dashrender do you mean run XO from Xen directly?
Rather than in it's own VM?
-
@DustinB3403 said:
@Dashrender do you mean run XO from Xen directly?
Rather than in it's own VM?
No, run the scripts that update XO, and kick off the backup/snap/etc of XO from XC/Xen directly.
-
@Dashrender said:
@DustinB3403 said:
@Dashrender do you mean run XO from Xen directly?
Rather than in it's own VM?
No, run the scripts that update XO, and kick off the backup/snap/etc of XO from XC/Xen directly.
But why?
You can run a scheduled backup from within XO to backup your XO VM on any schedule you set. Once that completes run the xo-update.sh script and confirm all is functional.
This would also allow you to take advantage of the Continuous delta capabilities. Rather than having to build a full every time you want to update.
It would be much easier to set a backup to run weekly for just the XO VM, stop the services, run the update, reboot XO VM, and restart the services.
-
You could use xo-cli to make the backup or create a snapshot.
-
Just so everyone is aware, this installation runs from an Active SSH Connection.
I'm still trying to figure out how to get it to run at boot, without needing an Active Connection.
-
@DustinB3403 said:
Just so everyone is aware, this installation runs from an Active SSH Connection.
I'm still trying to figure out how to get it to run at boot, without needing an Active Connection.
make a cron job with @restart for the "when to run" fields.
-
@travisdh1 Already tried it.
Doesn't appear to work.
-
@DustinB3403 said:
@Dashrender said:
@DustinB3403 said:
@Dashrender do you mean run XO from Xen directly?
Rather than in it's own VM?
No, run the scripts that update XO, and kick off the backup/snap/etc of XO from XC/Xen directly.
But why?
You can run a scheduled backup from within XO to backup your XO VM on any schedule you set. Once that completes run the xo-update.sh script and confirm all is functional.
This would also allow you to take advantage of the Continuous delta capabilities. Rather than having to build a full every time you want to update.
It would be much easier to set a backup to run weekly for just the XO VM, stop the services, run the update, reboot XO VM, and restart the services.
The problem on relying on the delta from within XO is what if the update breaks XO? How do you now roll the delta back?
-
@Dashrender said:
@DustinB3403 said:
@Dashrender said:
@DustinB3403 said:
@Dashrender do you mean run XO from Xen directly?
Rather than in it's own VM?
No, run the scripts that update XO, and kick off the backup/snap/etc of XO from XC/Xen directly.
But why?
You can run a scheduled backup from within XO to backup your XO VM on any schedule you set. Once that completes run the xo-update.sh script and confirm all is functional.
This would also allow you to take advantage of the Continuous delta capabilities. Rather than having to build a full every time you want to update.
It would be much easier to set a backup to run weekly for just the XO VM, stop the services, run the update, reboot XO VM, and restart the services.
The problem on relying on the delta from within XO is what if the update breaks XO? How do you now roll the delta back?
You don't backup to the XO vDisk you backup to a separate NFS target
-
@DustinB3403 said:
@Dashrender said:
@DustinB3403 said:
@Dashrender said:
@DustinB3403 said:
@Dashrender do you mean run XO from Xen directly?
Rather than in it's own VM?
No, run the scripts that update XO, and kick off the backup/snap/etc of XO from XC/Xen directly.
But why?
You can run a scheduled backup from within XO to backup your XO VM on any schedule you set. Once that completes run the xo-update.sh script and confirm all is functional.
This would also allow you to take advantage of the Continuous delta capabilities. Rather than having to build a full every time you want to update.
It would be much easier to set a backup to run weekly for just the XO VM, stop the services, run the update, reboot XO VM, and restart the services.
The problem on relying on the delta from within XO is what if the update breaks XO? How do you now roll the delta back?
You don't backup to the XO vDisk you backup to a separate NFS target
Sure, but what does the restoration? it's XO, right? So if XO is broken you can't run the store, right?
-
You can export from the NFS Share using WinSCP and import directly into XenCenter if things are horribly broken.
-
@DustinB3403 said:
Already tried it.
Doesn't appear to work.
Post your cron entry here.
Also may want to review these options:
https://www.npmjs.com/package/node-crontab
https://www.npmjs.com/package/forever -
Ok So here is what I've done to get XO to run at boot.
I made a script in /etc/ named "xo-start.sh" marked it as executable.
cd /etc nano xo-start.sh #!/bin/sh cd /opt/xo-server sudo npm start ctrl+o ctrl+x sudo nano /etc/crontab # shit ton of comments # @reboot cd /etc && ./xo-start.sh ctrl+o ctrl+x sudo reboot now
-
That should be all you need to get XO to run at startup of your XO VM.
I've reboot several times to confirm.