Difference between revisions of "Setting up Elgg VM on CedeusGeoNode"

From stgo
Jump to: navigation, search
(Created page with ">> return to Cedeus_IDE ---- steps performed: # copying basicubunutu1404.vdi file and renaming to elgg.vdi # creating the tilestream VM on CedeusDB (ip.18): #* <code>VBo...")
 
Line 5: Line 5:
  
 
# copying basicubunutu1404.vdi file and renaming to elgg.vdi
 
# copying basicubunutu1404.vdi file and renaming to elgg.vdi
 +
== Elgg VM setup ==
 +
 
# creating the tilestream VM on CedeusDB (ip.18):
 
# creating the tilestream VM on CedeusDB (ip.18):
 
#* <code>VBoxManage createvm --name elgg --ostype Ubuntu_64 --register</code>
 
#* <code>VBoxManage createvm --name elgg --ostype Ubuntu_64 --register</code>
Line 14: Line 16:
 
#*: <code>VBoxManage internalcommands sethduuid elgg.vdi</code>
 
#*: <code>VBoxManage internalcommands sethduuid elgg.vdi</code>
 
#* attach the (old) disk image:
 
#* attach the (old) disk image:
#*: <code> VBoxManage storageattach "tilestream" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium tilestream.vdi</code>
+
#*: <code> VBoxManage storageattach "elgg" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium elgg.vdi</code>
#* <code> VBoxManage storagectl tilestream --name "IDE Controller" --add ide --controller PIIX4</code>
+
#* <code> VBoxManage storagectl elgg --name "IDE Controller" --add ide --controller PIIX4</code>
 
#* set the nat rules (ports):
 
#* set the nat rules (ports):
#*: <code> VBoxManage modifyvm tilestream --natpf1 "ssh,tcp,,16022,,22"</code>
+
#*: <code> VBoxManage modifyvm elgg --natpf1 "ssh,tcp,,15022,,22"</code>
#*: <code> VBoxManage modifyvm tilestream --natpf1 "apache,tcp,,16080,,80"</code>
+
#*: <code> VBoxManage modifyvm elgg --natpf1 "apache,tcp,,15080,,80"</code>
#*: <code> VBoxManage modifyvm tilestream --natpf1 "tilestream,tcp,,16088,,8888"</code>
+
 
# optional - set VRDE port:
 
# optional - set VRDE port:
#* <code>VBoxManage modifyvm mediawiki --vrdeport 3389</code> (Note: 3389 is the default port anyway)
+
#* <code>VBoxManage modifyvm elgg --vrdeport 3389</code> (Note: 3389 is the default port anyway)
 
# start the VM
 
# start the VM
#: <code>VBoxHeadless -s tilestream --vrde on &</code>  
+
#: <code>VBoxHeadless -s elgg --vrde on &</code>  
 
#: the VM will listen on port 3389
 
#: the VM will listen on port 3389
 
# The following step do not seem to be necessary with Ubuntu 14.04 and new VirtualBox - however, are necesary for 12.04. But if so: connect with VRD and adjust network card settings (remember the existing VM have an old password)
 
# The following step do not seem to be necessary with Ubuntu 14.04 and new VirtualBox - however, are necesary for 12.04. But if so: connect with VRD and adjust network card settings (remember the existing VM have an old password)
Line 29: Line 30:
 
#* reboot
 
#* reboot
 
#* check if ssh connection works
 
#* check if ssh connection works
# restart TileStream from within the home folder with defining the tileset location:
+
 
#: <code>./tilestream/index.js start --host 146.155.17.18 --tiles=/usr/share/tilestream &</code>
+
== Elgg Setup ==
#* to check with what PID tilestream is running use:
+
#*: <code> ps -A | grep tilestream </code>
+

Revision as of 13:54, 5 September 2014

>> return to Cedeus_IDE


steps performed:

  1. copying basicubunutu1404.vdi file and renaming to elgg.vdi

Elgg VM setup

  1. creating the tilestream VM on CedeusDB (ip.18):
    • VBoxManage createvm --name elgg --ostype Ubuntu_64 --register
    • VBoxManage modifyvm elgg --memory 4096
    • VBoxManage modifyvm elgg --cpus 4
    • VBoxManage modifyvm elgg --nic1 nat
    • VBoxManage storagectl elgg --name "SATA Controller" --add sata --controller IntelAhci
    • assign the (old) disk image a new uuid
      VBoxManage internalcommands sethduuid elgg.vdi
    • attach the (old) disk image:
      VBoxManage storageattach "elgg" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium elgg.vdi
    • VBoxManage storagectl elgg --name "IDE Controller" --add ide --controller PIIX4
    • set the nat rules (ports):
      VBoxManage modifyvm elgg --natpf1 "ssh,tcp,,15022,,22"
      VBoxManage modifyvm elgg --natpf1 "apache,tcp,,15080,,80"
  2. optional - set VRDE port:
    • VBoxManage modifyvm elgg --vrdeport 3389 (Note: 3389 is the default port anyway)
  3. start the VM
    VBoxHeadless -s elgg --vrde on &
    the VM will listen on port 3389
  4. The following step do not seem to be necessary with Ubuntu 14.04 and new VirtualBox - however, are necesary for 12.04. But if so: connect with VRD and adjust network card settings (remember the existing VM have an old password)
    • open /etc/udev/rules.d/70-persistent-net.rules and comment out existing network adapters
    • reboot
    • check if ssh connection works

Elgg Setup