summaryrefslogtreecommitdiffstats
path: root/installer/vagrant
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2016-03-17 11:23:31 +0000
committerramon <ramongomez@us.es>2016-03-17 11:23:31 +0000
commit4f19d2598faa8927a624385496dc67999dcbd13f (patch)
tree9be2576daee5a05cf361f9a87f914a4abaca9784 /installer/vagrant
parent7b7d79c3a65476f5c6afab473bebcee1d6843715 (diff)
#739: Usar los parámetros del entorno definido en el curso on-line.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4833 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer/vagrant')
-rw-r--r--installer/vagrant/README.es.txt22
-rw-r--r--installer/vagrant/Vagrantfile-devel-vbox75
-rw-r--r--installer/vagrant/Vagrantfile-trunk-vbox91
3 files changed, 110 insertions, 78 deletions
diff --git a/installer/vagrant/README.es.txt b/installer/vagrant/README.es.txt
index f93511a5..203c8257 100644
--- a/installer/vagrant/README.es.txt
+++ b/installer/vagrant/README.es.txt
@@ -17,9 +17,9 @@ Requisitos previos.
El entorno de trabajo.
- - opengnsys: MV para servidor OpenGnsys basada en Ubuntu 14.04 y 2º disco para repositorio.
- - virt1: MV cliente modelo con Ubuntu 14.04 instalado.
- - virt2: MV cliente para clonar con disco vacío.
+ - ogAdministrator: MV para servidor OpenGnsys basada en Ubuntu 14.04 y 2º disco para repositorio.
+ - ogClient01: MV cliente modelo con Ubuntu 14.04 instalado.
+ - ogClient02 - ogclient0N: MV clientes para restaurar con disco vacío.
Ejecutar el entorno virtual.
@@ -28,6 +28,7 @@ Ejecutar el entorno virtual.
- Copiar el fichero Vagrantfile correspondiente en dicho directorio como Vagrantfile.
- Opcional: editar las variables de configuración del fichero Vagrantfile para el entorno personal.
- LANGUAGE: idioma (se aceptan es_ES, ca_ES y en_GB).
+ - NCLIENTS: nº de clientes a generar (de 2 a 9).
- REPODISK, REPOSIZE: fichero y tamaño (en GB) del disco duro virtual para el repositorio de imágenes.
- SERVERMEM, CLIENTMEM: memoria virtual (en MB) para servidor y clientes.
- NETPREFIX: prefijo para las direcciones IP de la red virtual.
@@ -38,10 +39,15 @@ Ejecutar el entorno virtual.
- Iniciar la MV del servidor:
vagrant up
- Iniciar las MV de los clientes (tras iniciar el servidor):
- vagrant up /virt*/
+ - Cliente modelo:
+ vagrant up ogClient01
+ - Clientes vacíos para restaurar:
+ vagrant up ogClient0X (siendo X de 2 al nº máximo definido)
-Nota: los procesos de inicio pueden tardar varios minutos en la primera ejecución, porque descargan y configuran las máquinas virtuales.
-Nota: antes de iniciar las MV de los clientes, debe accederse a la web de OpenGnsys para crear el aula e incorporar los equipos (o revisar que los datos son correctos).
+Notas:
+ - Los procesos de inicio pueden tardar varios minutos en la primera ejecución, porque descargan y configuran las máquinas virtuales.
+ - Antes de iniciar las MV de los clientes, debe accederse a la web de OpenGnsys para crear el aula e incorporar los equipos (o revisar que los datos son correctos).
+ - Ignorar los errores de conexión de Vagrant con los clientes vacíos.
Descripción de las MV.
@@ -55,9 +61,9 @@ Descripción de las MV.
https://localhost:8443/opengnsys/
- Configurar el DHCP usando las direcciones MAC de los clientes según lo indicado en la definición de la interfaz 2 de cada MV en Virtual Box.
- - Máquinas virtuales para cliente modelo y cliente para clonar.
+ - Máquinas virtuales para cliente modelo y clientes para clonar.
- La interfaz 2 de cada MV VirtualBox está definida en la red privada del entorno.
- Ignorar los posibles errores de conexión de Vagrant.
- - Usar VirtualBox para deshabilitar la interfaz 1 de las MV cliente.
+ - Usar VirtualBox para deshabilitar la interfaz 1 de la MV del cliente modelo.
- Una vez desplegadas las MV deberán ser controladas directamente con VirtaulBox.
diff --git a/installer/vagrant/Vagrantfile-devel-vbox b/installer/vagrant/Vagrantfile-devel-vbox
index c7247684..8b4f50fe 100644
--- a/installer/vagrant/Vagrantfile-devel-vbox
+++ b/installer/vagrant/Vagrantfile-devel-vbox
@@ -3,19 +3,20 @@
VAGRANTFILE_API_VERSION = "2"
# VM provider: Oracle VM VirtualBox.
ENV['VAGRANT_DEFAULT_PROVIDER'] = "virtualbox"
-# Language.
+# Language (accepted values: es_ES, ca_ES, en_GB).
LANGUAGE = "es_ES"
ENV['LC_ALL'] = LANGUAGE + ".UTF-8"
-
+# Number of OpenGnsys clients (accepted values: from 2 to 9).
+NCLIENTS = 4
# Repository virtual disk: file and size (GB).
-REPODISK = "repo.vdi"
+REPODISK = "ogRepo.vdi"
REPOSIZE = 50
# Amount of memory for server and clients (MB)
SERVERMEM = 1024
CLIENTMEM = 512
# Clients MAC address prefix.
MACPREFIX = "08:00:27:0E:65:"
-NETPREFIX = "192.168.50."
+NETPREFIX = "192.168.2."
# Local port to access OpenGnsys Server.
LOCALWEBPORT = 8443
@@ -32,32 +33,38 @@ mount -a
wget -q http://opengnsys.es/svn/branches/version1.1/installer/opengnsys_installer.sh -O - | bash
echo y | sudo /opt/opengnsys/bin/setserveraddr eth1
# Insert DHCP data.
-sed -i '/^}/d' /etc/dhcp/dhcpd.conf
-echo "
- host virt1 { hardware ethernet #{MACPREFIX}01; fixed-address #{NETPREFIX}101; }
- host virt2 { hardware ethernet #{MACPREFIX}02; fixed-address #{NETPREFIX}102; }
-}" >> /etc/dhcp/dhcpd.conf
+for ((i=#{NCLIENTS}; i>0; i--)); do
+ sed -i "/^}$/ i host ogClient0${i} { hardware ethernet #{MACPREFIX}0${i}; fixed-address #{NETPREFIX}1${i}; }" /etc/dhcp/dhcpd.conf
+done
service isc-dhcp-server restart
# Set language.
export LANG="#{LANGUAGE}.UTF-8"
echo "LANG=\"$LANG\"" > /etc/default/locale
locale-gen --lang #{LANGUAGE}
# Unmcomment next lines for automatic data insertion.
-#mysql -u usuog -ppassusuog -D ogAdmBD -e "INSERT INTO aulas (idaula, nombreaula, idcentro, urlfoto, grupoid, ubicacion, puestos, modomul, ipmul, pormul, velmul, router, netmask, ntp, dns, proxy, modp2p, timep2p) VALUES (1, 'Aula virtual', 1, 'aula.jpg', 0, 'Despligue virtual con Vagrant.', 5, 2, '239.194.50.101', 9000, 70, '#{NETPREFIX}1', '255.255.255.0', '', '', '', 'peer', 30); INSERT INTO ordenadores (idordenador, nombreordenador, ip, mac, idaula, idrepositorio, idperfilhard, idmenu, idproautoexec, grupoid, router, mascara, arranque, netiface, netdriver, fotoord) VALUES (1, 'virt1', '#{NETPREFIX}101', REPLACE('#{MACPREFIX}01',':',''), 1, 1, 0, 0, 0, 0, '#{NETPREFIX}1', '255.255.255.0', '00unknown', 'eth0', 'generic', 'fotoordenador.gif'), (2, 'virt2', '#{NETPREFIX}102', REPLACE('#{MACPREFIX}02',':',''), 1, 1, 0, 0, 0, 0, '#{NETPREFIX}1', '255.255.255.0', '00unknown', 'eth0', 'generic', 'fotoordenador.gif');"
-#/opt/opengnsys/bin/setclientmode ogAdmin virt1 1
-#/opt/opengnsys/bin/setclientmode ogClient virt2 1
+#SQL="INSERT INTO aulas (nombreaula, idcentro, urlfoto, grupoid, ubicacion, puestos, modomul, ipmul, pormul, velmul, router, netmask, ntp, dns, proxy, modp2p, timep2p) VALUES ('Aula virtual', 1, 'aula.jpg', 0, 'Despliegue virtual con Vagrant.', 5, 2, '239.194.2.11', 9000, 70, '#{NETPREFIX}1', '255.255.255.0', '', '', '', 'peer', 30); INSERT INTO ordenadores (nombreordenador, ip, mac, idaula, idrepositorio, idperfilhard, idmenu, idproautoexec, grupoid, router, mascara, arranque, netiface, netdriver, fotoord) VALUES"
+#for ((i=1; i<=#{NCLIENTS}; i++)); do
+# SQL="$SQL ('ogClient0$i', '#{NETPREFIX}1$i', REPLACE('#{MACPREFIX}0$i',':',''), 1, 1, 0, 0, 0, 0, '#{NETPREFIX}1', '255.255.255.0', '00unknown', 'eth0', 'generic', 'fotoordenador.gif'),"
+#done
+#mysql -u usuog -ppassusuog -D ogAdmBD -e "${SQL%,}"
+#/opt/opengnsys/bin/setclientmode ogAdmin ogClient01 1
+#for ((i=2; i<=#{NCLIENTS}; i++)); do
+# /opt/opengnsys/bin/setclientmode ogClient ogClient0$i 1
+#done
echo "New OpenGnsys local URL: https://localhost:#{LOCALWEBPORT}/opengnsys/"
EOT
# Client 1 OS provisioning script.
MODELSCRIPT = <<EOT
-# Uncomment next lines to install and configure OGAgent.
+# Uncomment next lines to install and configure OGAgent for Ubuntu.
#apt-get install -y libxss1 policykit-1 python python-requests python-qt4 python-six python-prctl
#wget -q http://opengnsys.es/svn/branches/version1.1-tickets/OGAgent-ticket718/client/shared/lib/ogagent/ogagent_1.0.0_all.deb # temporal
#dpkg -i ogagent_1.0.0_all.deb
-#sed -i "0,/remote=/s,remote=.*,remote=https://#{NETPREFIX}10/opengnsys/rest/," /usr/share/OGAgent/cfg/ogagent.cfg
+#sed -i "0,/remote=/ s,remote=.*,remote=https://#{NETPREFIX}10/opengnsys/rest/," /usr/share/OGAgent/cfg/ogagent.cfg
+# Remove network configuration added by Vagrant.
+sed -i "/VAGRANT/,$ d" /etc/network/interfaces
echo "After now, use VirtualBox GUI to disable network interface 1 and work with this VM."
-# Shutdown VM.
+# Leave VM halted.
sleep 2
poweroff &
EOT
@@ -65,11 +72,11 @@ EOT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# OpenGnsys Server VM definition.
- config.vm.define "opengnsys", primary: true do |og|
+ config.vm.define "ogAdministrator", primary: true do |og|
# Specific VirtualBox configuration.
og.vm.provider "virtualbox" do |vb|
# VM name, memory and CPUs.
- vb.name = "opengnsys"
+ vb.name = "ogAdministrator"
vb.memory = SERVERMEM
vb.cpus = 1
# Get VM disk path
@@ -85,7 +92,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end
# VM base and host name.
og.vm.box = "ubuntu/trusty64"
- og.vm.hostname = "opengnsys"
+ og.vm.hostname = "ogAdministrator"
# Network configuration: forward web port and attach new interface to VMs private network.
og.vm.network "forwarded_port", guest: 443, host: 8443
og.vm.network "private_network", ip: "#{NETPREFIX}10", virtualbox__intnet: true
@@ -96,12 +103,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end
# Client 1 VM definition.
- config.vm.define "virt1", autostart: false do |v1|
+ config.vm.define "ogClient01", autostart: false do |v1|
v1.vm.box = "ubuntu/trusty64"
- v1.vm.hostname = "virt1"
+ v1.vm.hostname = "ogClient01"
v1.vm.network "private_network", mac: "#{MACPREFIX}01".tr(":",""), type: "dhcp", virtualbox__intnet: true
v1.vm.provider "virtualbox" do |vb|
- vb.name = "virt1"
+ vb.name = "ogClient01"
vb.memory = CLIENTMEM
vb.cpus = 1
vb.customize ['modifyvm', :id, '--boot1', 'net', '--boot2', 'disk']
@@ -110,18 +117,20 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v1.vm.provision "shell", inline: MODELSCRIPT
end
- # Client 2 VM definition.
- config.vm.define "virt2", autostart: false do |v2|
- v2.vm.box = "clink15/pxe"
- v2.ssh.insert_key = false
- v2.vm.boot_timeout = 5
- v2.vm.network "private_network", mac: "#{MACPREFIX}02".tr(":",""), type: "dhcp", virtualbox__intnet: true
- v2.vm.provider "virtualbox" do |vb|
- vb.name = "virt2"
- vb.memory = CLIENTMEM
- vb.cpus = 1
- vb.customize ['modifyvm', :id, '--boot1', 'net', '--boot2', 'disk']
- vb.customize ["modifyvm", :id, "--nic1", "none"]
+ # Clonable clients definition.
+ (2..NCLIENTS).each do |i|
+ config.vm.define "ogClient0#{i}", autostart: false do |cl|
+ cl.vm.box = "clink15/pxe"
+ cl.ssh.insert_key = false
+ cl.vm.boot_timeout = 5
+ cl.vm.network "private_network", mac: "#{MACPREFIX}".tr(":","") + "%02d" % "#{i}", type: "dhcp", virtualbox__intnet: true
+ cl.vm.provider "virtualbox" do |vb|
+ vb.name = "ogClient0#{i}"
+ vb.memory = CLIENTMEM
+ vb.cpus = 1
+ vb.customize ['modifyvm', :id, '--boot1', 'net', '--boot2', 'disk']
+ vb.customize ["modifyvm", :id, "--nic1", "none"]
+ end
end
end
diff --git a/installer/vagrant/Vagrantfile-trunk-vbox b/installer/vagrant/Vagrantfile-trunk-vbox
index 7b6922a7..5549a588 100644
--- a/installer/vagrant/Vagrantfile-trunk-vbox
+++ b/installer/vagrant/Vagrantfile-trunk-vbox
@@ -3,60 +3,75 @@
VAGRANTFILE_API_VERSION = "2"
# VM provider: Oracle VM VirtualBox.
ENV['VAGRANT_DEFAULT_PROVIDER'] = "virtualbox"
-# Language.
+# Language (accepted values: es_ES, ca_ES, en_GB).
LANGUAGE = "es_ES"
ENV['LC_ALL'] = LANGUAGE + ".UTF-8"
-
+# Number of OpenGnsys clients (accepted values: from 2 to 9).
+NCLIENTS = 4
# Repository virtual disk: file and size (GB).
-REPODISK = "repo.vdi"
+REPODISK = "ogRepo.vdi"
REPOSIZE = 50
# Amount of memory for server and clients (MB)
SERVERMEM = 1024
CLIENTMEM = 512
# Clients MAC address prefix.
MACPREFIX = "08:00:27:0E:65:"
-NETPREFIX = "192.168.50."
+NETPREFIX = "192.168.2."
# Local port to access OpenGnsys Server.
LOCALWEBPORT = 8443
# OpenGnsys Server provisioning script: prepare repo disk, install OpenGnsys, change default interface, configure DHCP server.
OGSERVERSCRIPT = <<EOT
+# Mount repository disk.
test -n "$(blkid /dev/sdb1 | grep ext4)" && exit
echo -e "o\nn\np\n\n\n\nw" | fdisk /dev/sdb
mkfs -t ext4 /dev/sdb1
mkdir -p /opt/opengnsys/images
echo "/dev/sdb1 /opt/opengnsys/images ext4 defaults 0 0" >> /etc/fstab
mount -a
-wget -q http://opengnsys.es/svn/trunk/installer/opengnsys_installer.sh -O - | bash
-cp /etc/dhcp/dhcpd-eth1.conf /etc/dhcp/dhcpd-eth1-orig.conf # temporal
+# Install OpenGnsys and change server address.
+wget -q http://opengnsys.es/svn/branches/version1.1/installer/opengnsys_installer.sh -O - | bash
echo y | sudo /opt/opengnsys/bin/setserveraddr eth1
-echo "New OpenGnsys local URL: https://localhost:#{LOCALWEBPORT}/opengnsys/"
-sed -e 's/routers /routers #{NETPREFIX}1/' /etc/dhcp/dhcpd-eth1-orig.conf >/etc/dhcp/dhcpd.conf # temporal
-sed -i -e 's#://[^/]*/#://#{NETPREFIX}10/#g' /opt/opengnsys/www/controlacceso.php # temporal
-sed -i -e 's#://[^/]*/#://#{NETPREFIX}10/#g' /opt/opengnsys/client/etc/ogAdmClient.cfg # temporal
-sed -i '/^}/d' /etc/dhcp/dhcpd.conf
-echo "
- host virt1 { hardware ethernet #{MACPREFIX}01; fixed-address #{NETPREFIX}101; }
- host virt2 { hardware ethernet #{MACPREFIX}02; fixed-address #{NETPREFIX}102; }
-}" >> /etc/dhcp/dhcpd.conf
+# Insert DHCP data.
+for ((i=#{NCLIENTS}; i>0; i--)); do
+ sed -i "/^}$/ i host ogClient0${i} { hardware ethernet #{MACPREFIX}0${i}; fixed-address #{NETPREFIX}1${i}; }" /etc/dhcp/dhcpd.conf
+done
service isc-dhcp-server restart
+# Set language.
export LANG="#{LANGUAGE}.UTF-8"
echo "LANG=\"$LANG\"" > /etc/default/locale
locale-gen --lang #{LANGUAGE}
# Unmcomment next lines for automatic data insertion.
-#mysql -u usuog -ppassusuog -D ogAdmBD -e "INSERT INTO aulas (idaula, nombreaula, idcentro, urlfoto, grupoid, ubicacion, puestos, modomul, ipmul, pormul, velmul, router, netmask, dns, proxy, modp2p, timep2p) VALUES (1, 'Aula virtual', 1, 'aula.jpg', 0, 'Desplieuge virtual con Vagrant.', 5, 2, '239.194.50.101', 9000, 70, '#{NETPREFIX}1', '255.255.255.0', '', '', 'peer', 30); INSERT INTO ordenadores (idordenador, nombreordenador, ip, mac, idaula, idrepositorio, idperfilhard, idmenu, idproautoexec, grupoid, router, mascara, arranque, netiface, netdriver, fotoord) VALUES (1, 'virt1', '#{NETPREFIX}101', REPLACE('#{MACPREFIX}01',':',''), 1, 1, 0, 0, 0, 0, '#{NETPREFIX}1', '255.255.255.0', '00unknown', 'eth0', 'generic', 'fotoordenador.gif'), (2, 'virt2', '#{NETPREFIX}102', REPLACE('#{MACPREFIX}02',':',''), 1, 1, 0, 0, 0, 0, '#{NETPREFIX}1', '255.255.255.0', '00unknown', 'eth0', 'generic', 'fotoordenador.gif');"
-#/opt/opengnsys/bin/setclientmode ogAdmin virt1
-#/opt/opengnsys/bin/setclientmode ogClient virt2
+#SQL="INSERT INTO aulas (nombreaula, idcentro, urlfoto, grupoid, ubicacion, puestos, modomul, ipmul, pormul, velmul, router, netmask, dns, proxy, modp2p, timep2p) VALUES ('Aula virtual', 1, 'aula.jpg', 0, 'Despliegue virtual con Vagrant.', 5, 2, '239.194.2.11', 9000, 70, '#{NETPREFIX}1', '255.255.255.0', '', '', 'peer', 30); INSERT INTO ordenadores (nombreordenador, ip, mac, idaula, idrepositorio, idperfilhard, idmenu, idproautoexec, grupoid, router, mascara, arranque, netiface, netdriver, fotoord) VALUES"
+#for ((i=1; i<=#{NCLIENTS}; i++)); do
+# SQL="$SQL ('ogClient0$i', '#{NETPREFIX}1$i', REPLACE('#{MACPREFIX}0$i',':',''), 1, 1, 0, 0, 0, 0, '#{NETPREFIX}1', '255.255.255.0', '00unknown', 'eth0', 'generic', 'fotoordenador.gif'),"
+#done
+#mysql -u usuog -ppassusuog -D ogAdmBD -e "${SQL%,}"
+#/opt/opengnsys/bin/setclientmode ogAdmin ogClient01 1
+#for ((i=2; i<=#{NCLIENTS}; i++)); do
+# /opt/opengnsys/bin/setclientmode ogClient ogClient0$i
+#done
+echo "New OpenGnsys local URL: https://localhost:#{LOCALWEBPORT}/opengnsys/"
+EOT
+
+# Client 1 OS provisioning script.
+MODELSCRIPT = <<EOT
+# Remove network configuration added by Vagrant.
+sed -i "/VAGRANT/,$ d" /etc/network/interfaces
+echo "After now, use VirtualBox GUI to disable network interface 1 and work with this VM."
+# Leave VM halted.
+sleep 2
+poweroff &
EOT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# OpenGnsys Server VM definition.
- config.vm.define "opengnsys", primary: true do |og|
+ config.vm.define "ogAdministrator", primary: true do |og|
# Specific VirtualBox configuration.
og.vm.provider "virtualbox" do |vb|
# VM name, memory and CPUs.
- vb.name = "opengnsys"
+ vb.name = "ogAdministrator"
vb.memory = SERVERMEM
vb.cpus = 1
# Get VM disk path
@@ -72,7 +87,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end
# VM base and host name.
og.vm.box = "ubuntu/trusty64"
- og.vm.hostname = "opengnsys"
+ og.vm.hostname = "ogAdministrator"
# Network configuration: forward web port and attach new interface to VMs private network.
og.vm.network "forwarded_port", guest: 443, host: 8443
og.vm.network "private_network", ip: "#{NETPREFIX}10", virtualbox__intnet: true
@@ -83,32 +98,34 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
end
# Client 1 VM definition.
- config.vm.define "virt1", autostart: false do |v1|
+ config.vm.define "ogClient01", autostart: false do |v1|
v1.vm.box = "ubuntu/trusty64"
- v1.vm.hostname = "virt1"
+ v1.vm.hostname = "ogClient01"
v1.vm.network "private_network", mac: "#{MACPREFIX}01".tr(":",""), type: "dhcp", virtualbox__intnet: true
v1.vm.provider "virtualbox" do |vb|
- vb.name = "virt1"
+ vb.name = "ogClient01"
vb.memory = CLIENTMEM
vb.cpus = 1
vb.customize ['modifyvm', :id, '--boot1', 'net', '--boot2', 'disk']
end
v1.vm.synced_folder ".", "/vagrant", disabled: true
- v1.vm.provision "shell", inline: "echo 'After now, use VirtualBox GUI to shutdown this VM, disable its network interface 1 and work whit it.'"
+ v1.vm.provision "shell", inline: MODELSCRIPT
end
- # Client 2 VM definition.
- config.vm.define "virt2", autostart: false do |v2|
- v2.vm.box = "clink15/pxe"
- v2.ssh.insert_key = false
- v2.vm.boot_timeout = 5
- v2.vm.network "private_network", mac: "#{MACPREFIX}02".tr(":",""), type: "dhcp", virtualbox__intnet: true
- v2.vm.provider "virtualbox" do |vb|
- vb.name = "virt2"
- vb.memory = CLIENTMEM
- vb.cpus = 1
- vb.customize ['modifyvm', :id, '--boot1', 'net', '--boot2', 'disk']
- vb.customize ["modifyvm", :id, "--nic1", "none"]
+ # Clonable clients definition.
+ (2..NCLIENTS).each do |i|
+ config.vm.define "ogClient0#{i}", autostart: false do |cl|
+ cl.vm.box = "clink15/pxe"
+ cl.ssh.insert_key = false
+ cl.vm.boot_timeout = 5
+ cl.vm.network "private_network", mac: "#{MACPREFIX}".tr(":","") + "%02d" % "#{i}", type: "dhcp", virtualbox__intnet: true
+ cl.vm.provider "virtualbox" do |vb|
+ vb.name = "ogClient0#{i}"
+ vb.memory = CLIENTMEM
+ vb.cpus = 1
+ vb.customize ['modifyvm', :id, '--boot1', 'net', '--boot2', 'disk']
+ vb.customize ["modifyvm", :id, "--nic1", "none"]
+ end
end
end