Home > general > mhVTL: a linux open source VTL – part 2

mhVTL: a linux open source VTL – part 2

In the first part of this miniserie, we have installed mhVTL. Now it’s time to install it’s web GUI: mhVTL-GUI

NOTE: As mhVTL-GUI is a web gui, I assume that apache is already installed.

  • mhVTL-GUI needs some packages, so let’s install them:
    • yum install php lsscsi mtx mt-st git sysstat sg3_utils

  • Configure sudo:
    • Allow your web server user id to run commands locally as root, adding
    • apache ALL=(ALL) NOPASSWD: ALL
    • in /etc/sudoers file
    • Comment out the line “Defaults requiretty” in /etc/sudoers
    • Disable selinux: set
      in /etc/selinux/config
  • create a directory for mhvtl-gui files:
    • mkdir -p /var/www/html/mhvtlgui
  • download mhvtl-gui:
  • add a directory alias in the apache configuration: I prefer to add a separate apache configuration file under /etc/httpd/conf.d directory
    • create the file mhvtlgui.conf in /etc/httpd/conf.d directory with this content:

Alias /mhvtl “/var/www/html/mhvtlgui”
<Directory “/var/www/html/mhvtl”>
Options None
AllowOverride None
Order allow,deny
Allow from all

  • reload apache configuration:
    • service httpd reload
  • start mhvtl and tgtd:
    • service mhvtl start
    • service tgtd start

Now we can access mhvtlgui via web browser (eg ). The default password is mhvtl.


From here we can configure VTL from a set of preset from Setup-> Add -> Standard


And configure iSCSI target from iSCSI(tgt)  (I suggest to start with the Quick Start configuration)


NOTE: after changing iSCSI configuration from the web gui, check that tgtd service is running and restart it otherwise.

Now we can map the Tape Drives and Changer using an iSCSI initiator: I will map them on a Windows 2012 Server VM.

  • Open Server Manager -> Tool -> iSCSI Initiator -> Discovery -> Discover Portal and insert the mhVTL server ip


  • Now check in Device Manager that everything shows up :)


Enjoy, your VTL is ready ;)

Categories: general Tags: , ,
  1. Domingo Garcia
    13 Mar 2015 at 20:50

    Hi, After installing the mhvtl on a Centos 6.5 server and getting it up and running I attempted to connect it to a VM running windows 2012 R2 VMware 5.5 server but it doesn’t see any of the mhvtl devices. iSCSI recognized the target but nothing shows up in Device Manager.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: