Good Evening,
I'm trying to migrate LXC containers from one cluster ( host running this script) to a stand alone proxmox server.
Keep getting error "401 No ticket"
Can someone help me on this ?
I'm trying to migrate LXC containers from one cluster ( host running this script) to a stand alone proxmox server.
Keep getting error "401 No ticket"
Can someone help me on this ?
Bash:
#!/bin/bash
SRV_02_TOKEN="root@pam!root-srv-02 fc2b2fa6-887a-4e46-b862-c0d6a754bd3a"
SRV_02_HOST="srv-02.phi8.ovh"
SRV_02_FINGERPRINT="DB:43:F3:EC:92:12:EE:E6:49:EA:43:AF:DB:FE:85:47:42:41:6E:A1:D9:0C:C2:8A:1B:42:A3:CD:45:45:86:F3"
SRV_02_ENDPOINT="apitoken=${SRV_02_TOKEN},host=${SRV_02_HOST},fingerprint=${SRV_02_FINGERPRINT}"
SRV_02_STORAGE="storage-1"
SRV_02_BRIDGE="LAN"
VMID=80001
pct remote-migrate $VMID $VMID "$SRV_02_ENDPOINT" \
--target-bridge $SRV_02_BRIDGE \
--target-storage $SRV_02_STORAGE \
--restart
Code:
# bash -x migrate-to.sh
+ SRV_02_TOKEN='root@pam!root-srv-02 fc2b2fa6-887a-4e46-b862-c0d6a754bd3a'
+ SRV_02_HOST=srv-02.phi8.ovh
+ SRV_02_FINGERPRINT=DB:43:F3:EC:92:12:EE:E6:49:EA:43:AF:DB:FE:85:47:42:41:6E:A1:D9:0C:C2:8A:1B:42:A3:CD:45:45:86:F3
+ SRV_02_ENDPOINT='apitoken=root@pam!root-srv-02 fc2b2fa6-887a-4e46-b862-c0d6a754bd3a,host=srv-02.phi8.ovh,fingerprint=DB:43:F3:EC:92:12:EE:E6:49:EA:43:AF:DB:FE:85:47:42:41:6E:A1:D9:0C:C2:8A:1B:42:A3:CD:45:45:86:F3'
+ SRV_02_STORAGE=storage-1
+ SRV_02_BRIDGE=LAN
+ VMID=80001
+ pct remote-migrate 80001 80001 'apitoken=root@pam!root-srv-02 fc2b2fa6-887a-4e46-b862-c0d6a754bd3a,host=srv-02.phi8.ovh,fingerprint=DB:43:F3:EC:92:12:EE:E6:49:EA:43:AF:DB:FE:85:47:42:41:6E:A1:D9:0C:C2:8A:1B:42:A3:CD:45:45:86:F3' --target-bridge LAN --target-storage storage-1 --restart
401 No ticket