Version | FreeNAS-9.10.2-U1 (86c7ef5) |
CPU | Intel(R) Xeon(R) CPU E5620 @ 2.40GHz |
Motherboard | Intel S5500HCV |
RAM | 24482MB (6 x 4GB ECC Registered) |
HBA | HP/LSI 8 Port 6Gb/s External SAS HBA Controller SAS9200-8e-HP |
Boot Drive | 1 x Samsung SSD |
Storage Pool 1 (Media / backups) | 4 x 6TB WD Red NAS drives in 2 vdevs. Each vdev consists of 2 drives mirrored |
Storage Pool 2 (Surveillance) | 1 x 1TB HDD |
iohyve setup pool = MacJones_pool1 kmod = 1 net = lagg0
Variable | Value | Type |
iohyve_enable | YES | rc.conf |
iohyve_flags | kmod =1 net=lagg0 | rc.conf |
iohyve fetch /mnt/MacJones_pool1/ISOImages/debian-8.6.0-amd64-netinst.iso
iohyve fetch http://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-8.7.1-amd64-netinst.iso
iohyve create deb64vm003 32G
iohyve set deb64vm003 ram=4096 cpu=2 os=debian loader=grub-bhyve description= jRiver_Media_Center
iohyve install deb64vm003 debian-8.6.0-amd64-netinst.iso
iohyve console deb64vm003
iohyve set deb64vm003 boot=1
iohyve start deb64vm003
[root@freenas] ~# iohyve list
Guest VMM? Running rcboot? Description
deb64vm003 YES YES YES jRiver_Media_Center
deb64vm004 YES YES NO Wed Jan 25 08:37:29 AEDT 2017
[root@freenas] ~#
[root@freenas] ~# iohyve getall deb64vm003
Getting deb64vm003 iohyve properties...
20160122 20160122
bargs -A_-H_-P
boot 1
con nmdm0
cpu 2
description jRiver_Media_Center
install no
loader grub-bhyve
name deb64vm003
os debian
persist 1
ram 4096
size 32G
tap tap0
template NO
vnc NO
vnc_h 600
vnc_ip 127.0.0.1
vnc_tablet NO
vnc_w 800
vnc_wait NO
[root@freenas] ~#
root@deb64vm003:/home/jriver# apt-get install sudo xserver-xorg-video-dummy x11vnc
usermod -a -G adm,sudo jriver
jriver@deb64vm003:~$ cat /etc/X11/xorg.conf
# This xorg configuration file is meant to be used
# to start a dummy X11 server.
# For details, please see:
# https://www.xpra.org/xorg.conf
# obtained from http://cosmolinux.no-ip.org/raconetlinux2/dummy_radeon_nvidia.html
# Here we setup a Virtual Display of 1600x900 pixels
Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
#VideoRam 4096000
VideoRam 256000
#VideoRam 16384
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 5.0 - 1000.0
VertRefresh 5.0 - 200.0
#Modeline "1600x900" 33.92 1600 1632 1760 1792 900 921 924 946
#1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz
Modeline "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync
#1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
#Modeline "1920x1080_60.00" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 1600 900
EndSubSection
EndSection
jriver@deb64vm003:~$
jriver@deb64vm003:~$ cat /etc/lightdm/lightdm.conf
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-load-seats = True to automatically set up multi-seat configuration from logind
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-load-seats=false
#logind-check-graphical=false
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=/usr/share/lightdm/greeters:/usr/share/xgreeters
#
# Seat defaults
#
# type = Seat type (xlocal, xremote)
# xdg-seat = Seat name to set pam_systemd XDG_SEAT variable and name to pass to X server
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xserver-layout = Layout to pass to X server
# xserver-config = Config file to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
# unity-compositor-timeout = Number of seconds to wait for compositor to start
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[SeatDefaults]
#type=xlocal
#xdg-seat=seat0
#pam-service=lightdm
pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-command=X
#xserver-layout=
#xserver-config=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
#greeter-session=example-gtk-gnome
#greeter-hide-users=false
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=default
#allow-user-switching=true
#allow-guest=true
#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
autologin-user=jriver
autologin-user-timeout=0
#autologin-in-background=false
#autologin-session=UNIMPLEMENTED
#exit-on-failure=false
#
# Seat configuration
#
# Each seat must start with "Seat:".
# Uses settings from [SeatDefaults], any of these can be overriden by setting them in this section.
#
#[Seat:0]
#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#key=
#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#width=1024
#height=768
#depth=8
jriver@deb64vm003:~$
jriver@deb64vm003:/etc/systemd/system$ cat x11vnc.service
[Unit]
Description=x11vnc
After=display-manager.service
[Service]
Type=forking
Environment=DISPLAY=:0
User=jriver
ExecStart=/usr/bin/x11vnc -rfbauth /home/jriver/.vnc/passwd -display :0 -geometry 1920x1080 -auth guess -forever -bg
Restart=always
RestartSec=10
[Install]
WantedBy=graphical.target
jriver@deb64vm003:/etc/systemd/system$
sudo systemctl enable x11vnc.service
sudo systemctl start x11vnc.service
root@deb64vm003:/etc/systemd/system# cat jriver.service
[Unit]
Description=JRiver
After=x11vnc.service
[Service]
Type=simple
Environment=DISPLAY=:0
User=jriver
ExecStart=/usr/bin/mediacenter22 /MediaServer
Restart=always
RestartSec=10
KillSignal=SIGHUP
TimeoutStopSec=45
[Install]
WantedBy=graphical.target
root@deb64vm003:/etc/systemd/system#
Systemctl enable jriver.service
Thanks for doing this.
Finally got round to checking the server's power consumption. At 240VAC 50Hz it is idling along between 130 and 140 watts. That's with the following
- 5 x mechanical HDD
- 1 x SSD
- 2 x HBAs (via PCI-e slots)
- 2 x VMs running (but not doing much)
One of the HBAs will be removed the next time I have the case open - so it might decrease a little
Serving a MKV file via DLNA to a Samsung TV did not change the consumption
I'll report back again after loading up the CPU and disk activity
Looking at FreeNAS builds on new hardware - users are reporting 72 - 80 watts at idle.
regards,
Steve