Lenovo ix4-300d SSH, root home directory and cronjobs

Couple of weeks ago I got my hands on 3 Lenovo ix4-300d storage boxes. These boxes are no longer produced and sometimes you can get them really cheap. First I had plans to use them as iSCSI storage for my home lab but the performance is not good enough. Therefore I decided to play around with one of the boxes to see what is possible.

I started searching in google about SSH access. Outcome was great blog post which contained a how to enable SSH.

Steven Breuls SSH access ix4-300d

In short just access this page http://[NAS IP]/manage/diagnostics.html and you can enable SSH and set a password for root.


Username : root
Password : soho + password (if password = VMware ==> sohoVMware )

As soon as you have successfully logged in you can change the password by simply running passwd like on any other linux. Afterwards the soho part in the beginning of the password is no longer required.

Next step is to create a home directory for the root user. You have to login to the web interface and go to shares. Now create a new share called root.

Attention: This way ensures that the folder is persistent. If you create it using ssh and mkdir it will be lost after reboot.

In your SSH session you can go to /nfs there you will find all your shares.

cd /nfs

Next step is to change the home directory of the root user to /nfs/root.

vi /etc/passwd

You have to adjust the first line like on the screenshot below.

Save the file and reboot the NAS.


Restart using the Web interface.

Now login using SSH and check that root has now /nfs/root as home directory.


Limitation: SSH key authentication is not working due to the wrong permissions of the home directory.

In the new home directory you can now create folders and file on commandline they will be persistent only the main folder of the nfs has to be created using the web interface.

If you would like to run schedules jobs (cronjobs) you can edit the crontab file in /etc. It is also persistent.

I’m using the Lenovo 1×4-300d as backup system for my vServers.

Get all guest IPs of all your Virtual Machines using Powershell

This is a small powershell script to get all Guest IPs from all virtual machines

Connect-VIServer -Server $VCENTER

$vms = Get-VM | Sort

$file = "c:\ip_list.txt"

foreach ($vm in $vms){
	foreach($ip in $vm.Guest.IpAddress){
		Write-Host "$vm $ip"
		"$vm $ip" | Out-File -FilePath $file -Append



Disconnect-VIServer -Server $VCENTER -Confirm:$false -Force:$true

Belkin Thunderbolt 2 Express-HD-Dock and SD card adapter for my MacBook Mid 2014

I own a MacBook 13 Retina (Mid 2014) which I use for all my activities around my VMware Homelab. Now it was time to extend and improve the usability.
Therefore I bought a Belkin Thunderbolt 2 Express-HD-Dock. This dock reduce the amount of cable which I have to plugin into my MacBook from 5 to 2. So only the power and one thunderbolt cable. I have attached 2 Samsung 27″ LED Full HD screens.

The Belkin dock has massively improved the usability of my complete setup due to the change from the small 13″ Retina screen to 2x Full HD screens.

Additionally I have added a SD card adapter which fit’s perfectly into the SD card slot. This adapter can be used with Micro SD cards up to 128 GB, I use a 64GB SANDisk Class 10. On the SD card I have stored most of my ISO images and some of my virtual appliance images.

Shopping card:

Micro SD Storage Speicherung Aluminium Adapter für A1425 A1502 MacBook Pro Retina 13″ 8MOBILITY iSlice MicroSD

SanDisk Ultra Android microSDXC 64GB bis zu 80 MB/Sek, Class 10 Speicherkarte + SD-Adapter FFP

Belkin Thunderbolt 2 Express-HD-Dock (1x Gigabit LAN, 3x USB 3.0, 20Gbit/s Datenübertragungsrate und 4K Auflösung, incl. Thunderbolt-Kabel (1m)) silber/schwarz

Alternative Setup of a VMware Homelab

My planed new Homelab requires a lot of space due to the fact of the size of the components. But what if someone would like to have a Homelab but does not have the space in the office. One option would be to run a fully virtualized Homelab but this is limited to the resources of the computer/laptop. A more costly option would be to use multiple INTEL NUC and a storage system.

Shopping list:

2x Intel NUC i5: Intel NUC6i5SYH
2x Samsung 32GB Memory: SAMSUNG 32GB Dual Channel Kit 2 x 16 GB 260 pin DDR4 2133 SO-DIMM (2133Mhz, PC4-17000, CL15) passend für alle Intel “Skylake” Notebooks mit DDR4 Standard
2x Samsung M2 SSD 250GB: Samsung MZ-N5E250BW 850 EVO interne SSD 250GB (SATA) grün
1x QNAP NAS 4 Bay: QNAP TS-453A-8G-NAS 4-Bay Intel Celeron Braswell N
4x WD Red 3TB: WD 3TB Red interne NAS-Festplatte (8,9 cm (3,5 Zoll) SATA) WD30EFRX
1x Netgear Managed Switch 8 port: Netgear ProSafe GS108T (8-Port Gigabit Smart Managed Switch 8 x 10/100/1000 – desktop)

You can use the standard ESXi (5.5 or 6) images provided from the VMware web site and install it using a USB stick.

As soon as I have all hardware available I’m going to document the complete setup on my web site.

Homelab upgrade and Options to install a SSD into the HP Microserver Gen8

I started to plan the upgrade my current homelab from 1x HP Microserver Gen8, 2x HP Microserver N40L and a Netgear 24 port switch. The only part which I will keep is the HP Microserver Gen8 it has already 16GB of memory and a HP SmartArray P410 with 512MB Cache module incl. battery. This machine will run my infrastructure machines like a tiny vCenter. As work horses I plan to use HP ML10v2 due to the fact that they are cost efficient and they support up to 32GB of memory.

Parts list which I will use in my future homelab:

1x Server HP Microserver Gen8: HP ProLiant MicroServer (Gen8, G1610T, 1P, 4 GB-U, B120i, SATA-Server)
2x Server HP ML10 v2: HP ProLiant ML10 v2 G3240-Server (nicht Hot-Plug-fähig, 4 GB-U, B120i, 4 LFF, 350-W-Netzteil)
2x SSDs per Server: Mushkin MKNSSDRE1TB Reactor 7mm SSD, 1TB
2x SSD adapter per Server: Kingston SNA-DC2/35 SATA DriveCarrier Einbaurahmen für 6,4 cm (2,5 Zoll) bis 8,9 cm (3,5 Zoll) schwarz
2x Disks per Server: HGST Deskstar NAS 3TB 6Gb/s SATA 7200rpm 24×7 RV S
Switch: TP-Link TL-SG3424 Pure-Gigabit L2 Managed Switch (24x 10/100/1000Mbps RJ45-Ports inkl. 4 kombinierter SFP-Anschlüsse, lüfterloses Passivkühlkonzept)
Memory: Samsung 8GB (1x 8GB) DDR3 1600MHz (PC3 12800E) 2Rx8 ECC Unbuffered Dimm Server Workstation Arbeitsspeicher RAM Memory

There are at least 2 options to install SSDs into the HP Microserver Gen8.

Option 1 is to connect a single SSD to the SATA port on the mainboard an place it where normally the DVD drive should be installed. That’s the cheapest method and might be not the best one.

Option 2 will use a adapter to map the 2.5″ SSD into a 3.5″ tray. I personally would use the Kingston SNA-DC2/35 adapter.

vCenter Appliance Webclient HTML5 consoles

I use the vCenter appliance as console proxy to access virtual machine consoles using HTML5 without a direct connection to the ESXi hosts. In vSphere 5.1 this was possible with a hidden configuration in the webclient.properties file. This configuration has changed in vSphere 5.5 and is now official available.


html.console.enabled = TRUE
html.console.port.ssl = 7331
html.console.port = 7343

/etc/init.d/vsphere-client restart

Again long time no post …

Sorry for long time not posting new stuff. I was extremely busy at work which ended in a long phase of sickness. But now it starts changing got new tasks and responsibilities in the companies cloud area. It’s the management of an internal Amazon like cloud. Real interesting topics with a lot of new challenges.

Additionally now the hot phase of our club event starts. The Classic Days (1st weekend in August) on Castle Dyck in Germany near Düsseldorf. If you are based in Germany and you are interested in Oldtimers then this is definitely something you should visit.


Memory leak in VDR 2.0

Yes there is a memory leak in the current Version of VDR 2.0. After some days the VDR crash’s with the Message “Out of Memory”.

Get PID of datarecovery process

ps -ef | grep datarecovery

Check with pmap to display information about the address space of a process

pmap -x PID

Search for “anon” messages. Anon messages are blocked Memory spaces.

Current workaround is to schedule an maintenace of the destinations and then restart the VDR Appliance on a daily base. It should be possible to use scheduled tasks for the automated restart.

60% back online …

After a long night round about 60% of my environment is back online. I’m still facing issues especially with my homepage, because the backup of my appliance was defect. That is the reason why I have now a new design. The new look and feel will be slightly changed in some days to better re-present xmsoft.