[SOLVED] Allow the default SSH connection / script?

jimmy57000

Member
Feb 21, 2016
23
1
23
28
Hello,

I would like to know if it is possible to run a script once the installation of the CT has been completed?

I use the Proxmox Module whmcs for my test (modulesgarden)


I would like for example once a CT delivered, that a script executes .. (Installation of the server SSH, Authorization of the connections ROOT, As well as the modification of the MOTD).

Thanks you all !
 
I would like for example once a CT delivered, that a script executes .. (Installation of the server SSH, Authorization of the connections ROOT, As well as the modification of the MOTD).

Normally, you would use a standard orchestration tool like ansible, chef, puppet, etc. for this.

I would like to know if it is possible to run a script once the installation of the CT has been completed?
As far as I can see, this is not handled by the new snippets feature, only start and stop. Maybe you can create a start-script that does only do something once by creating a run-file ... please see /usr/share/pve-docs/examples/guest-example-hookscript.pl
 
  • Like
Reactions: jimmy57000
Normally, you would use a standard orchestration tool like ansible, chef, puppet, etc. for this.


As far as I can see, this is not handled by the new snippets feature, only start and stop. Maybe you can create a start-script that does only do something once by creating a run-file ... please see /usr/share/pve-docs/examples/guest-example-hookscript.pl


Hello, Thank you for your answer, yes I want this script to be executed when the VPS and installed!

I have a little trouble understanding the operation, would you have a model or a command and run? thank you so much

From what I see the script must be added manually once the VM creates..

I use WHMCS with ModuleGuarden module ..
 
Last edited:
Hello,

Problem solved!
I installed virtualizor over Proxmox (virtualizor replaces the Proxmox panel)
virtualizor directly activates the SSH connection when Proxmox creates a VM ..