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(), Edit VM file before start (7 Replies, Read 3765 times)
netheld
Group: Member
Post Group: Newbie
Posts: 4
Status:
Hi there guys,

So I am trying to deliver a special configuration after a VM creating before it is started.

I have been searching and I really cant find any way to edit the VM.

So far, I have made a PHP hook where I get all data needed to change and boot the VPS in order the client can access it right away.

I need to edit the following file: /etc/rc.conf

And add the following code to the end:

Code
ifconfig_em0="inet IP.FAIL.OVER netmask 255.255.255.255 broadcast IP.FAIL.OVER"
static_routes="net1 net2"
route_net1="-net GATEWAY_VM/32 IP.FAIL.OVER"
route_net2="default GATEWAY_VM"


Can anybody help me out please?
IP: --   


Threads
 netheld   KVM AfterCreate(), Edit VM file before start (7 Replies, Read 3765 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 3, 2025, 11:43 pm.

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