Welcome Guest. Please Login or Register  


You are here: Index > Virtualizor - Virtual Server Control Panel > General Support > Topic : KVM AfterCreate()



Normal Mode | Print  

KVM AfterCreate()
netheld
Group: Member
Post Group: Newbie
Posts: 4
Status:
Quote From : asim_shaikh September 12, 2016, 12:44 pm
Quote
You didnt answer my question sir...

I need to GET the VPS details like IP assign in order to change the network. How can I pass that info to the RECEIPT?
       


Hi,

As the recipe is running inside the VPS and it is static script added in virtualizor the resources (like ip, hostname) assigned to the VPS will be dyncamic and cannot be added to the recipe, so i suggested you to add shell script commands to get these details, for example if you want the IP assigned to the VPS you can use the following shell script:

ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1  -d'/'


Hi again,

I don't think you're following me.

I dont want to assign an IP because Virtualizor does that.

I want to run the receipt in order to change the network of the VPS.

My FreeBSD template DOESN'T AUTO CONFIGURE, so I need to insert in the NEW VPS /etc/rc.conf file some lines so the NETWORK Works.

I understood that Receipt will run inside the VPS the bash script BUT that doesnt work unless i can pass to the SCRIPT the IP ASSIGN TO THE VPS by Virtualizor.

I can't be much more explicit sir..
IP: --   


Threads
 netheld   KVM AfterCreate(), Edit VM file before start (7 Replies, Read 3808 times)
    |--  asim_shaikh   Hi there guys,...   on September 9, 2016, 6:22 am
    |--  netheld   Ok I did...   on September 9, 2016, 11:44 pm
    |--  asim_shaikh   Ok I did...   on September 12, 2016, 5:47 am
    |--  netheld   Ok I did...   on September 12, 2016, 11:38 am
    |--  asim_shaikh   You didnt answer...   on September 12, 2016, 12:44 pm
    |--  netheld   You didnt answer...   on September 12, 2016, 1:09 pm
    |--  asim_shaikh   Hi again, I...   on September 14, 2016, 7:01 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is May 11, 2025, 12:56 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.028