You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Run this as sudo and run this file from the folder that contains PSC folder.
#
# Make sure that:
# 1) SW_PATH directory exists in the target IMG.
# 2) Make sure that intefaces and boot_script_psa have executable permission (+x).
#
# WARNING: Using this on live virtual machines can be dangerous, potentially causing disk corruption! The virtual machine must be shut down before using this script!
IMG="/var/lib/libvirt/images/anonymityVPN.img"
SW_PATH="/home/psa/pythonScript/"
# Copy python files
echo -n "copy PSA SW... "
virt-copy-in -a $IMG PSA/* $SW_PATH
echo "done."
# Copy interfaces file
echo -n "copy interfaces... "
virt-copy-in -a $IMG PSA/interfaces /etc/network/
echo "done."
# Copy boot script that is executed when interfaces are up
echo -n "copy boot_script_psa... "
virt-copy-in -a $IMG PSA/boot_script_psa /etc/network/if-up.d/