Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 876

Warning: Invalid argument supplied for foreach() in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 877

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 881

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 876

Warning: Invalid argument supplied for foreach() in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 877

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 881

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 876

Warning: Invalid argument supplied for foreach() in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 877

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 881

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 876

Warning: Invalid argument supplied for foreach() in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 877

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 881

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902
Difference between revisions of "VM" - Sit

Difference between revisions of "VM"

From Sit
Jump to: navigation, search
(Expanding disk)
(Image:Download.png Download)
 
Line 21: Line 21:
 
* <code>situpdate</code> - Try out the [[Unreleased|bleeding edge]] version of SiT!. This will update the installation to SVN. If you don't know what SVN is, you shouldn't use this.
 
* <code>situpdate</code> - Try out the [[Unreleased|bleeding edge]] version of SiT!. This will update the installation to SVN. If you don't know what SVN is, you shouldn't use this.
 
* <code>sitaddplugin</code> - This will help you download a plugin from the SVN see the [[Plugins_Directory]] for which you can download
 
* <code>sitaddplugin</code> - This will help you download a plugin from the SVN see the [[Plugins_Directory]] for which you can download
* <code>sitproduction</code> - This will turn your VM into a production ready server. It'll reset the passwords and ask you to enter new ones, change IP etc.
+
* <code>sitproduction</code> - This will turn your VM into a production ready server. It'll reset the passwords and ask you to enter new ones, change IP etc. This will also configure the outbound mailserver.  
  
 
Finally we've added a small man page, just type ''man sit'' in the shell.
 
Finally we've added a small man page, just type ''man sit'' in the shell.
Line 260: Line 260:
 
If the MySQL server doesn't seem to start, try rebooting the VM
 
If the MySQL server doesn't seem to start, try rebooting the VM
  
Hey, good to find someone who aegres with me. GMTA.
+
===Expanding disk===
 +
This is a step by step guide that works with partitions, so be very careful, and keep in mind that though this is a guide and it's been tested, it's not guaranteed that it'll work on your system, (make a backup of your VM just to be safe).
 +
 
 +
This guide will only show how to expand the original 60GB disk where the SiT website + attachments are stored.
 +
 
 +
In this example I'll upgrade the drive to 80GB. I've typed in 80GB in the VM player editing the Hard Disk 2, see how [[VM#Expanding_the_logical_disk_in_VM|below]]
 +
 
 +
====Expanding the logical disk in VM====
 +
First you need to make the logical disk larger through the VM, this is done like this (guide from VMWare Player).
 +
* Start VMware Player
 +
* Right click the SiT VM '''SiT_V3.62'''  and click ''Virtual Machine Settings''
 +
* Left click ''Hard Disk 2'' and you'll see some options to the right side of the window.
 +
* Click the button ''Utilities'' and click ''Expand...''
 +
* Enter the new size and click ''Expand'' (I've written 80GB for this example)
 +
* Click ''OK'' and start the SiT VM
 +
 
 +
====Expanding the drive in Ubuntu====
 +
First of all, ''Make sure that you've backed up all the data from /var/www''
 +
 
 +
Start by checking that the OS actually sees the new size.
 +
<code><pre>
 +
sudo fdisk -l
 +
</pre></code>
 +
 
 +
Alot of text is output, but I see on one of the lines
 +
 
 +
<code>
 +
Disk /dev/sdb 85.9 GB, 85899345920 bytes
 +
</code>
 +
 
 +
Start by unmounting the extended drive
 +
<code><pre>
 +
sudo umount /var/www
 +
</pre></code>
 +
 
 +
Delete the partition and remake it again (all data should still be there when done)
 +
<code><pre>
 +
sudo fdisk /dev/sdb
 +
</pre></code>
 +
 
 +
* d  # This will delete the partition
 +
* n  # Create new partition
 +
* p  # Create primary partition
 +
* 1  # Choose partition number 1
 +
* <nowiki><enter></nowiki>  # Select first cylinder (default) 1
 +
* <nowiki><enter></nowiki>  # Select last cylinder (default) 10443 (this size might differ depending on your choice of size)
 +
* t  # Change the type of partition
 +
* 8e # Choose the Linux LVM
 +
* p  # Display the chosen settings
 +
* w  # Write changes to disk
 +
 
 +
If you get an error that there device is busy, reboot the VM.
 +
<code><pre>
 +
sudo reboot
 +
</pre></code>
 +
 
 +
Resize the physical volume, to its maximum (other options are available but not explained here)
 +
<code><pre>
 +
sudo pvresize /dev/sdb1
 +
</pre></code>
 +
 
 +
Resize the LVM drive (choosing 80GB you'll need 1 extend, which is why I've chosen 79.99GB, another option is to ''sudo lvextend -L+20GB /dev/webroot/www''
 +
<code><pre>
 +
sudo lvextend -L79.99GB /dev/webroot/www
 +
</pre></code>
 +
 
 +
Now the last thing we need to do is resize the filesystem
 +
<code><pre>
 +
sudo resize2fs /dev/webroot/www
 +
</pre></code>
 +
 
 +
Now we can see if it's actually the chosen size
 +
<code><pre>
 +
sudo df -h
 +
</pre></code>
 +
 
 +
This is how my system looks like after resize
 +
 
 +
<pre>
 +
Filesystem            Size  Used Avail Use% Mounted on
 +
/dev/mapper/sit-root  14G  1.2G  13G  9% /
 +
none                  244M  184K  244M  1% /dev
 +
none                  249M    0  249M  0% /dev/shm
 +
none                  249M  48K  249M  1% /var/run
 +
none                  249M    0  249M  0% /var/lock
 +
none                  249M    0  249M  0% /lib/init/rw
 +
/dev/sda1            228M  34M  182M  16% /boot
 +
/dev/mapper/webroot-www
 +
                      79G  200M  75G  1% /var/www
 +
</pre>
  
 
==Pros and Cons==
 
==Pros and Cons==
Line 339: Line 428:
 
</pre></code>
 
</pre></code>
 
Follow the guide (you should probably choose "Internet" when asked)
 
Follow the guide (you should probably choose "Internet" when asked)
 +
 +
=== I have network problems ===
 +
I don't get an IP address or it doesn't show.  My networking is broken.
 +
 +
When moving the VM from the VMware player to VMware server there might be some network problems, i.e. no IP address.
 +
We've made a small script that fixes that.
 +
<code><pre>
 +
sudo fixnetwork
 +
</pre></code>
  
 
== Bugs ==
 
== Bugs ==
Line 347: Line 445:
  
 
and report a bug there.
 
and report a bug there.
 +
 +
== Disclaimer ==
 +
The VM represents two products, SiT! and Ubuntu. If you have problems with anything other than SiT!, you should look at the Ubuntu forums for answer.
 +
We only  support the SiT! software on the VM, Ubuntu is supported elsewhere.
 +
You can ask for Ubuntu help in the SiT! forums, but chances are that you get better answers regarding Ubuntu in their forums.
  
 
== [[Image:Download.png]] Download ==
 
== [[Image:Download.png]] Download ==
* [http://sourceforge.net/projects/sitracker/files/stable/3.63/VMware_SiT_3.63p1.7z/download Download SiT! VMware image v3.63] 350MiB [http://sourceforge.net/projects/sitracker/files/stable/3.63/VMware_SiT_3.63p1.7z.md5/download md5] <small>([http://sitracker.org/vm/VMware_SiT_3.63p1.7z mirror] [http://sitracker.org/vm/VMware_SiT_3.63p1.7z.md5 md5])</small> ([[ReleaseNotes363|Release notes]])
+
 
 +
Release version
 +
* [http://sourceforge.net/projects/sitracker/files/stable/3.66/VMware_SiT_v3.66.7z/download Download SiT! VMware image v3.66] 530MiB [http://sourceforge.net/projects/sitracker/files/stable/3.66/VMware_SiT_3.66.7z.md5/download md5] <small>([http://sitracker.org/vm/VMware_SiT_3.67p1.7z mirror] [http://sitracker.org/vm/VMware_SiT_3.67p1.7z.md5 md5])</small> ([[ReleaseNotes367|Release notes]])
 +
 
 +
 
 +
Old Version that has split files in max 2GB for legacy filesystems (FAT32) - To use latest SiT with this version, run '''sitreset''' from the shell
 +
* [http://sourceforge.net/projects/sitracker/files/stable/3.63/VMware_SiT_v3.63p1.7z/download Download SiT! VMware image v3.63] 350MiB [http://sourceforge.net/projects/sitracker/files/stable/3.63/VMware_SiT_3.63p1.7z.md5/download md5] <small>([http://sitracker.org/vm/VMware_SiT_3.63p1.7z mirror] [http://sitracker.org/vm/VMware_SiT_3.63p1.7z.md5 md5])</small> ([[ReleaseNotes363|Release notes]])
  
 
''Compressed using [http://www.7-zip.org/ 7-zip] for a smaller download.''
 
''Compressed using [http://www.7-zip.org/ 7-zip] for a smaller download.''
  
 
* <small>[http://cdimage.ubuntu.com/releases/10.04/release/source/ubuntu-10.04-src-1.iso Download ubuntu source 10.04 DVD]  2.6gb [http://sitracker.org/vm/ubuntu-10.04-src-1.iso mirror] ''Not required unless you want to compile the operating system source yourself!''</small>
 
* <small>[http://cdimage.ubuntu.com/releases/10.04/release/source/ubuntu-10.04-src-1.iso Download ubuntu source 10.04 DVD]  2.6gb [http://sitracker.org/vm/ubuntu-10.04-src-1.iso mirror] ''Not required unless you want to compile the operating system source yourself!''</small>
 +
 +
 +
* Virtualbox Image [http://sitracker.org/vm/SiT_v3.63p1.ova.7z Virtualbox] 733MB [http://sitracker.org/vm/SiT_v3.63p1.ova.7z.md5 Virtualbox MD5]
  
 
== See Also ==
 
== See Also ==
 
* [http://www.vmware.com/appliances/directory/473453 VMware Virtual Appliance Marketplace listing]
 
* [http://www.vmware.com/appliances/directory/473453 VMware Virtual Appliance Marketplace listing]
 
* [http://www.youtube.com/watch?v=jsuddwelGUo video tutorial]
 
* [http://www.youtube.com/watch?v=jsuddwelGUo video tutorial]

Latest revision as of 16:50, 10 November 2013

Personal tools
project