Use Case:
You want to use static routing for your Acronis Virtual Appliance.
This article applies to:
- Agent for VMware (Virtual Appliance)
- Agent for Virtuozzo Hybrid Infrastructure (Virtual Appliance)
- Agent for Red Hat Virtualization (oVirt) (Virtual Appliance)
- Agent for Scale Computing (Virtual Appliance)
Solution:
-
Open Appliance command-line shell (Ctrl+Shift+F2 while appliance GUI console is opened) or connect to the Appliance via WinSCP.
- Install the WinSCP utility which you can get from http://winscp.net/eng/download.php. WinSCP (Windows Secure CoPy) is a free and open source SFTP, SCP, and FTP client for Microsoft Windows. Its main function is to secure file transfer between a local and a remote computer. Beyond this, WinSCP offers basic file manager and file synchronization functionality.
- Log in to vSphere Client and open the console of Acronis Virtual Appliance. Write down or remember the IP address of it.
- Press CTRL+SHIFT+F2 in the Virtual Appliance to enter the console.
- In the console please type this command: /bin/sshd
- Launch the WinSCP utility on the machine where you installed it;
- In the host machine field type your Virtual Appliance IP (recorded on Step 2), the same as in the vSphere console. The default login:password is root:root (the password may differ if you changed it via web console at Configure -> Agent Password).
- The protocol should be set to SCP and then click on log in;
- You will get a window with all the directories of the Appliance (Windows Commander-like interface).
- In the /bin directory, create a new file named route_script.sh (either click Files -> New or use the Shift+F4 key combination).
- Add the following lines to the file:
#!/bin/shsleep 15route add –net <network> gw <IP address>
where
<network> is the target network
<IP address> is the gateway IP address
Depending on your setup, you can add multiple route commands.
The sleep command is required to let the /bin/product start and initialize the network before applying the routing. - Save the file and set execution permissions in the file Properties (press F9 to open file properties).
- Modify /bin/autostart file of the Appliance: add the following line right before the last line (this line should be added above "grep -q quiet /proc/cmdline && exec $1" line):
/bin/route_script.sh & - Reboot the Appliance.