2016-10-08 18:30:05 +02:00
|
|
|
# qvm - Trivial management of 64 bit virtual machines with qemu.
|
|
|
|
#
|
2018-12-27 19:57:01 +01:00
|
|
|
# Written in 2016-2018 by Franco Masotti/frnmst <franco.masotti@live.com>
|
2016-10-08 18:30:05 +02:00
|
|
|
#
|
|
|
|
# To the extent possible under law, the author(s) have dedicated all
|
|
|
|
# copyright and related and neighboring rights to this software to the public
|
|
|
|
# domain worldwide. This software is distributed without any warranty.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the CC0 Public Domain Dedication along
|
|
|
|
# with this software. If not, see
|
|
|
|
# <http://creativecommons.org/publicdomain/zero/1.0/>.
|
|
|
|
|
2018-12-27 16:50:33 +01:00
|
|
|
# The path of the OS ISO.
|
|
|
|
IMG_NAME='parabola-mate-2016.07.27-dual.iso'
|
2016-10-08 18:30:05 +02:00
|
|
|
|
2018-12-27 16:50:33 +01:00
|
|
|
#
|
|
|
|
# Virtual Hard Disk (VHD).
|
|
|
|
#
|
2018-12-27 13:05:08 +01:00
|
|
|
|
|
|
|
# You should leave the following as-is.
|
2018-12-27 16:50:33 +01:00
|
|
|
VHD_NAME=""${IMG_NAME}".qcow2"
|
|
|
|
|
|
|
|
# Size assigned to the vm's HDD.
|
|
|
|
VHD_SIZE='16G'
|
2018-01-11 20:15:51 +01:00
|
|
|
|
2018-12-27 16:50:33 +01:00
|
|
|
#
|
|
|
|
# RAM and Processor.
|
|
|
|
#
|
2018-11-06 17:23:45 +01:00
|
|
|
|
2018-01-11 20:15:51 +01:00
|
|
|
# Total RAM assigned to the vm.
|
2018-12-28 19:19:38 +01:00
|
|
|
MEMORY='4G'
|
2018-12-27 16:50:33 +01:00
|
|
|
|
|
|
|
# Total number of processor cores assigned to the vm.
|
2018-12-28 19:19:38 +01:00
|
|
|
NUMBER_OF_CORES=1
|
2018-12-27 16:50:33 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Ports.
|
|
|
|
#
|
2016-10-08 18:30:05 +02:00
|
|
|
|
|
|
|
# Shared port.
|
2018-12-27 16:50:33 +01:00
|
|
|
HOST_PORT_1=5555
|
|
|
|
|
|
|
|
# A vm port.
|
|
|
|
GUEST_PORT_1=3050
|
2018-12-27 13:05:08 +01:00
|
|
|
|
|
|
|
# Another shared port.
|
2018-12-27 16:50:33 +01:00
|
|
|
HOST_PORT_2=5556
|
|
|
|
|
|
|
|
# Another vm port.
|
|
|
|
GUEST_PORT_2=3051
|
|
|
|
|
|
|
|
#
|
|
|
|
# SSH.
|
|
|
|
#
|
2018-01-11 20:15:51 +01:00
|
|
|
|
2016-10-08 18:30:05 +02:00
|
|
|
# Shared port.
|
2018-12-27 16:50:33 +01:00
|
|
|
SSH_HOST_PORT=2222
|
|
|
|
|
2016-10-08 18:30:05 +02:00
|
|
|
# vm port.
|
2018-12-27 16:50:33 +01:00
|
|
|
SSH_GUEST_PORT=22
|
2018-01-11 20:15:51 +01:00
|
|
|
|
2018-12-27 13:05:08 +01:00
|
|
|
# guest user name useful to connect with ssh.
|
2018-12-27 16:50:33 +01:00
|
|
|
SSH_GUEST_USERNAME='vm'
|
|
|
|
|
|
|
|
#
|
|
|
|
# Shared directory.
|
|
|
|
#
|
2016-10-08 18:30:05 +02:00
|
|
|
|
2018-12-28 19:35:40 +01:00
|
|
|
# The path that holds the shared files in the guest machine.
|
2018-12-27 16:50:33 +01:00
|
|
|
SHARED_DATA_PATH='/home/user/qvm/shared_host_guest'
|
|
|
|
|
2018-12-28 19:35:40 +01:00
|
|
|
# See the relevant readme section.
|
2018-12-27 16:50:33 +01:00
|
|
|
MOUNT_TAG='host_share'
|
2017-10-18 11:41:15 +02:00
|
|
|
|
2018-01-11 20:15:51 +01:00
|
|
|
#
|
2018-12-27 16:50:33 +01:00
|
|
|
# VNC stuff and automatic remote startup stuff
|
2018-01-11 20:15:51 +01:00
|
|
|
#
|
2018-12-27 16:50:33 +01:00
|
|
|
|
2018-12-28 19:35:40 +01:00
|
|
|
# The ip address of the host machine. Useful for the attach action
|
|
|
|
# or for starting up the vm from a different computer.
|
2018-12-27 16:50:33 +01:00
|
|
|
HOST_IP_ADDRESS='192.168.1.1'
|
|
|
|
|
2018-12-28 19:35:40 +01:00
|
|
|
# See the previous comment.
|
2018-12-27 16:50:33 +01:00
|
|
|
HOST_USERNAME='parabola'
|
2017-10-18 11:41:15 +02:00
|
|
|
|
2018-01-11 20:15:51 +01:00
|
|
|
#
|
2018-12-27 16:50:33 +01:00
|
|
|
# Automatic remote startup stuff only.
|
2018-01-11 20:15:51 +01:00
|
|
|
#
|
2018-12-27 16:50:33 +01:00
|
|
|
|
2018-01-11 20:15:51 +01:00
|
|
|
# The port used to connecting directly to the host computer.
|
2018-12-28 19:35:40 +01:00
|
|
|
# This may differ from SSH_HOST_PORT.
|
2018-12-27 16:50:33 +01:00
|
|
|
SSH_EXPOSED_PORT=22
|
|
|
|
|
2018-12-27 19:57:01 +01:00
|
|
|
# The directory where the qvm script lies.
|
2018-12-27 16:50:33 +01:00
|
|
|
HOST_QVM_SCRIPT_DIRECTORY='/home/remote/qvm'
|
|
|
|
|
2018-12-27 19:57:01 +01:00
|
|
|
# Seconds to wait before connecting via SSH or VNC.
|
2018-12-27 16:50:33 +01:00
|
|
|
SECONDS_BEFORE_CONNECTION_ATTEMPT=25
|