|
...
|
...
|
@@ -63,9 +63,13 @@ function configure_nova_hypervisor {
|
|
63
|
63
|
local ssh_dom0
|
|
64
|
64
|
ssh_dom0="sudo -u $DOMZERO_USER ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@$dom0_ip"
|
|
65
|
65
|
|
|
|
66
|
+ # Find where the plugins should go in dom0
|
|
|
67
|
+ xen_functions=`cat $TOP_DIR/tools/xen/functions`
|
|
|
68
|
+ PLUGIN_DIR=`$ssh_dom0 "$xen_functions; set -eux; xapi_plugin_location"`
|
|
|
69
|
+
|
|
66
|
70
|
# install nova plugins to dom0
|
|
67
|
71
|
tar -czf - -C $NOVA_DIR/plugins/xenserver/xenapi/etc/xapi.d/plugins/ ./ |
|
|
68
|
|
- $ssh_dom0 'tar -xzf - -C /etc/xapi.d/plugins/ && chmod a+x /etc/xapi.d/plugins/*'
|
|
|
72
|
+ $ssh_dom0 "tar -xzf - -C $PLUGIN_DIR && chmod a+x $PLUGIN_DIR/*"
|
|
69
|
73
|
|
|
70
|
74
|
# install console logrotate script
|
|
71
|
75
|
tar -czf - -C $NOVA_DIR/tools/xenserver/ rotate_xen_guest_logs.sh |
|