March 26, 2017

Ubuntu 16.04 - Failed to start LXD

root@hostname:~# systemctl status lxd-containers.service
● lxd-containers.service - LXD - container startup/shutdown
   Loaded: loaded (/lib/systemd/system/lxd-containers.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2017-03-21 13:33:45 EDT; 3min 15s ago
     Docs: man:lxd(1)
 Main PID: 852 (code=exited, status=1/FAILURE)

Mar 21 13:33:45 hostname systemd[1]: Starting LXD - container startup/shutdown...
Mar 21 13:33:45 hostname lxd[852]: error: open /var/lib/lxd/containers: no such file or directory
Mar 21 13:33:45 hostname systemd[1]: lxd-containers.service: Main process exited, code=exited, status=1/FAILURE
Mar 21 13:33:45 hostname systemd[1]: Failed to start LXD - container startup/shutdown.
Mar 21 13:33:45 hostname systemd[1]: lxd-containers.service: Unit entered failed state.
Mar 21 13:33:45 hostname systemd[1]: lxd-containers.service: Failed with result 'exit-code'.

March 9, 2017

Exchange - Connect a disabled mailbox

Easy way to restore a mailbox if you accidentally removed it. Simply reconnect it back using steps described here.


But sometime a removed mailbox doesn't show up as a disconnected one. In this case you need to synchronize the mailbox state with its AD account using Update-StoreMailboxState cmdlet.

First of all find a MailboxGuid and Database name of removed mailbox:
Get-MailboxDatabase | Get-MailboxStatistics | Where { $_.DisplayName -eq "Display Name" } | ft DisplayName,Database,MailboxGuid 

Then update the mailbox state:
Update-StoreMailboxState -Database DBNAME -Identity MailboxGUID

Then the mailbox will show up in disconnected mailboxes as well as DisconnectReason attribute will be updated. The mailbox will be ready to reconnect.

March 6, 2017

Installing Hyper-V on ESXi

Validation Results: The validation process found problems on the server to which you want to install features. 
The selected features are not compatible with the current configuration of your selected 
server. Click OK to select different features.

Shutdown the VM.
Add vhv.allow = "TRUE" to vmx file of VM. 
Amend guest operating system string so it looks like - guestOS = "winhyperv"
Upgrade Virtual Hardware. 
Enable Intel VT-x/AMD-V for intrusion set virtualization in VM CPU Options.

Notes: Works with ESXi 5.1, ESXi can be installed as well, Hyper-V can be installed and run even with 1 vCPU.