Setting up osgeo vm
From stgo
>> return Cedeus IDE
Setting up a OSGeo VirtualBox-VM on Lautaro with SuseLinux - but using command line (because creating the VM via the graphical interface vboxgtk did not work properly). The general documentation was taken from here: http://stdioe.blogspot.com/2012/01/creating-virtual-machine-with.html
Steps:
- install virtualbox on server/computer (done by Daniel, needs admin rights of course)
- create a VM based on Ubuntu:
VBoxManage createvm --name osgeo --ostype Ubuntu --register
- check it is there:
VBoxManage showvminfo osgeo
- set the memory/ram:
VBoxManage modifyvm osgeo --memory 8192
(which is 8GB) - check the memory/ram:
VBoxManage showvminfo osgeo | grep "Memory size"
- set the number of cpu's to use (here 4):
VBoxManage modifyvm osgeo --cpus 4
- set the network connection/routing
VBoxManage modifyvm osgeo --nic1 nat
Here we use 'nat'-ing instead of a bridge - create a harddisk of 100GB size:
VBoxManage createhd --filename osgeo.vdi --size 100000
- define the VM's disk controller:
VBoxManage storagectl osgeo --name "SATA Controller" --add sata --controller IntelAhci
- mount the disk:
VBoxManage storageattach "osgeo" --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium osgeo.vdi
- check if everything is there:
VBoxManage showvminfo osgeo
- add DVD device:
VBoxManage storagectl osgeo --name "IDE Controller" --add ide --controller PIIX4
- load the DVD device with the Ubuntu VM/osgeo iso file:
VBoxManage storageattach osgeo --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium yyy/osgeolive7.iso
- starting VM
VBoxHeadless -s osgeo -n -m 7777 &
The -s is for start, 7777 defines the port for conecting with VNC, and the & is for keeping the VM running when I disconnect from the server. Headless actually means, that we have no monitor... - don't forget to install VNC Viewer (e.g. RealVNC), and then connect via the defined port - to "146.155.xx.xxx:7777"
- ... do a real install of the osgeo VM, etc.