Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
omv [2015/11/11 15:39] admin [VirtualBox (1.3)] |
omv [2015/11/12 00:33] (current) admin [OpenLDAP (in VirtualBox)] |
||
---|---|---|---|
Line 281: | Line 281: | ||
</code> | </code> | ||
- | ===== TV / Movies Management Plugins ===== | + | ===== Home Theater Plugins ===== |
- | + | ||
- | System > OMV-Extras.org > Activate repos: Download Managers + Plex\\ | + | |
- | Save - Apply | + | |
- | + | ||
- | ==== SABnzbd (1.0.5) ==== | + | |
- | + | ||
- | System > Plugins > Section Downloaders > openmediavault-sabnzbd 1.0.5 > Install | + | |
- | + | ||
- | Services > SABnzb:\\ | + | |
- | > Failed to execute command 'omv-mkconf sabnzbd getsettings': /etc/openmediavault/config.xml:1.1: Document is empty ^ /etc/openmediavault/config.xml:1.1: Start tag expected, '<' not found ^ | + | |
- | + | ||
- | Storage > ZFS\\ | + | |
- | Add Object: | + | |
- | * Type: Filesystem | + | |
- | * Prefix: //Storage// | + | |
- | * Name: OMV | + | |
- | * Mountpoint: | + | |
- | + | ||
- | Add Object: | + | |
- | * Type: Filesystem | + | |
- | * Prefix: //Storage// | + | |
- | * Name: Entertainment | + | |
- | * Mountpoint: | + | |
- | + | ||
- | SABnzbd panel: | + | |
- | * Enabled | + | |
- | * Backup User Settings | + | |
- | * Volume: Storage/OMV | + | |
- | + | ||
- | Create SABnzbd download directories: | + | |
- | <code> | + | |
- | > mkdir -p /Storage/Entertainment/SABnzbd/Downloads | + | |
- | > chmod -r go+rw /Storage/Entertainment/SABnzbd/ | + | |
- | </code> | + | |
- | + | ||
- | Save + Apply\\ | + | |
- | SABnzbd Web Interface > (English) Start Wizard: | + | |
- | * primary usenet provider: | + | |
- | * Host: ssl-eu.astraweb.com | + | |
- | * Port: 443 | + | |
- | * Username: bitbox | + | |
- | * Password: H------5 | + | |
- | * Connections: (20) | + | |
- | * SSL: checked | + | |
- | * Access: | + | |
- | * viewable by any pc on my network | + | |
- | * Password: admin:R----d | + | |
- | * Enable HTTPS | + | |
- | * Indexer: EMPTY | + | |
- | + | ||
- | https://192.168.1.34:9090/ | + | |
- | + | ||
- | Config: | + | |
- | In switches -> check Replace Spaces in Foldername | + | |
- | + | ||
- | {{:omv:sabnzbd-conf-1.png?direct&200|}} {{:omv:sabnzbd-conf-2.png?direct&200|}} {{:omv:sabnzbd-conf-3.png?direct&200|}} {{:omv:sabnzbd-conf-4.png?direct&200|}} | + | |
- | + | ||
- | ==== SickBeard (1.0.10) ==== | + | |
- | + | ||
- | System > Plugins > openmediavault-sickbeard 1.0.10 (check) + Install\\ | + | |
- | Services > Sick Beard > Repo: midgetspy/Sick-Beard.git / Branch: master + Enable | + | |
- | + | ||
- | Sick Beard Web GUI: | + | |
- | + | ||
- | Config: | + | |
- | {{:omv:sickbeard-conf-1.png?direct&200|}} {{:omv:sickbeard-conf-2.png?direct&200|}} {{:omv:sickbeard-conf-3.png?direct&200|}} {{:omv:sickbeard-conf-4.png?direct&200|}} | + | |
- | + | ||
- | <code> | + | |
- | > mkdir -p /Storage/Entertainment/mediatheque/tv | + | |
- | > mkdir -p /Storage/Entertainment/mediatheque/movies | + | |
- | > chmod -R 777 /Storage/Entertainment/mediatheque | + | |
- | </code> | + | |
- | + | ||
- | Use __/Storage/Entertainment/mediatheque/tv__ as parent directory for new shows. | + | |
- | + | ||
- | + | ||
- | ==== Plex Media Server (1.0.12) ==== | + | |
- | + | ||
- | System > Plugins > openmediavault-plexmediaserver 1.0.12 > check + Install | + | |
- | + | ||
- | Settings: | + | |
- | * Database Volume: Storage/Entertainment | + | |
- | * Enable | + | |
- | + | ||
- | + | ||
- | ==== Couch Potato ==== | + | |
- | + | ||
- | System > Plugins > openmediavault-couchpotato 1.0.3 > check + Install | + | |
- | + | ||
- | Repo / Branch / Enable | + | |
- | + | ||
- | <code> | + | |
- | > mkdir -p /Storage/Entertainment/CouchPotato | + | |
- | > chmod -R 777 /Storage/Entertainment/CouchPotato | + | |
- | </code> | + | |
+ | At this stage we'll [[:omv:hometheater|install the SABnzd, Sick Beard, Plex and Coach Potato plugins]]. | ||
===== OpenLDAP (in VirtualBox) ===== | ===== OpenLDAP (in VirtualBox) ===== | ||
- | We aim at deploying an OpenLDAP server to manage authentication mechanism. As our base system is already OMV, we'll install VirtualBox and create an OpenLDAP virtual appliance. | + | We'll first have to [[:omv:virtualbox|install and configure the VirtualBox plugin]] in order to start building our OpenLDAP VM. |
- | + | ||
- | ==== VirtualBox (1.3) ==== | + | |
- | + | ||
- | System > OMV-Extras.org > Virtualbox (activate repository > Save > Apply)\\ | + | |
- | System > Plugin > openmediavault-virtualbox 1.3 (check + Install) | + | |
- | + | ||
- | This will install virtualbox-4.3 (4.3.28-100309~Debian~wheezy_amd64) | + | |
- | + | ||
- | __Services > VirtualBox__ | + | |
- | + | ||
- | Directory: VM-Storage [on Storage/OMV, VirtualBox/VMs] | + | |
- | + | ||
- | Access the PhpVirtualBox at **[[http://192.168.1.34/virtualbox/]]** | + | |
- | + | ||
- | === VMs === | + | |
- | + | ||
- | We need a place to store the .iso files we'll use for various VMs: | + | |
- | <code> | + | |
- | > mkdir -p /Storage/OMV/VirtualBox/ISOs | + | |
- | > chmod -R 777 /Storage/OMV/VirtualBox/ISOs | + | |
- | </code> | + | |
- | + | ||
- | **__Debian Template.__** | + | |
- | + | ||
- | We'll base this on [[vms:debian|the wiki page describing the base Debian template setup]], but using a **Debian 7.9 (wheezy)** install for compatibility with the OMV base kernel. The following will only cover **what differs from the reference Debian template setup**. | + | |
- | + | ||
- | The [[https://www.debian.org/releases/wheezy/debian-installer/index.en.html|Debian Wheezy installation page]] currently refers the following [[http://cdimage.debian.org/cdimage/archive/7.9.0/amd64/iso-cd/debian-7.9.0-amd64-netinst.iso|link to its "netinst.iso" image]] that we'll use for our template VM. | + | |
- | + | ||
- | So we ssh to our OMV system and: | + | |
- | <code> | + | |
- | > cd /Storage/OMV/VirtualBox/ISOs | + | |
- | > wget http://cdimage.debian.org/cdimage/archive/7.9.0/amd64/iso-cd/debian-7.9.0-amd64-netinst.iso | + | |
- | </code> | + | |
- | + | ||
- | Now to the [[http://192.168.1.34/virtualbox/]]: | + | |
- | + | ||
- | * File > Preferences > Network > NAT Networks | + | |
- | * Add NAT Network (1st right icon) | + | |
- | * Select NatNetwork1 > Edit (3rd right icon) | + | |
- | * Check: Enable | + | |
- | * Name: N54L-VB-NAT | + | |
- | * CIDR: 10.10.2.0/24 | + | |
- | * Support DHCP | + | |
- | * Host-only Networks | + | |
- | * Add host-only network (1st right icon) | + | |
- | * Select vboxnet0 > Edit (3rd right icon) | + | |
- | * **Adapter** | + | |
- | * IPv4 Address: 172.30.30.1 | + | |
- | * IPv4 Network Mask: 255.255.255.0 | + | |
- | * **DHCP Server** | + | |
- | * Disabled | + | |
- | + | ||
- | **__New VM__** | + | |
- | + | ||
- | * Name: Debian-7.9-Wheezy | + | |
- | * Type: Linux | + | |
- | * Version: Debian (64 bit) | + | |
- | * 512MB | + | |
- | * Create virtual HD: | + | |
- | * VDI | + | |
- | * Dynamic | + | |
- | * 8GB | + | |
- | * Location: /Storage/OMV/VirtualBox/VMs/Debian-7.9-Wheezy | + | |
- | + | ||
- | CONFIGURE NETWORKS (2 adapters NAT + vboxnet0)\\ | + | |
- | ATTACH DEBIAN NETINST ISO\\ | + | |
- | PROCEED TO DEBIAN INSTALLATION... | + | |
- | + | ||
- | In case one needs to modify phpvirualbox configs, edit: //**/usr/share/phpvirtualbox/config.php**// \\ | + | |
- | AT LEAST set $username and $password | + | |
- | + | ||
- | === Set VB static IP (vboxnet0) === | + | |
- | + | ||
- | To allow access from our OMV host to our VMs, we'll set a static IP for our template; THIS WILL HAVE TO BE UPDATED FOR EACH CLONE. | + | |
- | + | ||
- | What we experimented with the Oracle RDP Web Control (PhpVirtualBox Console) is that it was NOT POSSIBLE TO SEND the "Ctrl" CHARACTER, nor "esc", through the console, making it impossible to edit files this way. Thus we need another way to access the /etc/network/interfaces file. We'll try to **mount the vdi** on our OMV host as [[http://www.aossama.com/mount-virtualbox-vdi-image-debian/|described here]]. | + | |
- | + | ||
- | With the VM **stopped**: | + | |
- | <code> | + | |
- | > apt-get install qemu-utils kpartx | + | |
- | > modprobe nbd | + | |
- | > qemu-nbd -c /dev/nbd0 /path/to/file.vdi | + | |
- | > kpartx -a /dev/nbd0 | + | |
- | > mount /dev/mapper/nbd0p1 /mnt | + | |
- | </code> | + | |
- | + | ||
- | Now we can access files on the vdi: | + | |
- | <code> | + | |
- | > nano /mnt/etc/network/interfaces | + | |
- | + | ||
- | ADD: | + | |
- | # Static private LAN interface | + | |
- | auto eth1 | + | |
- | iface eth1 inet static | + | |
- | address 172.30.30.XXX | + | |
- | netmask 255.255.255.0 | + | |
- | broadcast 172.30.30.255 | + | |
- | network 172.30.30.0 | + | |
- | </code> | + | |
- | + | ||
- | To UNMOUNT the vdi: | + | |
- | <code> | + | |
- | > umount /mnt | + | |
- | > qemu-nbd -d /dev/nbd0 | + | |
- | </code> | + | |
- | + | ||
- | === Register our OMV rsa key === | + | |
- | + | ||
- | Once the template is running, from the OMV system (the ~/.ssh/id_rsa.pub file should already exist): | + | |
- | <code> | + | We aim at deploying an OpenLDAP server to manage authentication mechanism, following [[https://www.howtoforge.com/how-to-install-openldap-server-on-debian-and-ubuntu|this how-to guide on HowToForge]]. The procedure is also described [[:vms:openldap|on this page of the wiki]]. |
- | > ssh-copy-id root@new.vm.ip | + | |
- | </code> | + |