Virtualization Station Linux host mounting local filesystem

Discussion about using NAS on Linux and Unix OS.
Post Reply
User avatar
bs98909
Starting out
Posts: 38
Joined: Sun Feb 28, 2016 12:27 am
Location: Planet Earth

Virtualization Station Linux host mounting local filesystem

Post by bs98909 »

I have my QNAP setup to receive syslog files in the /share/Syslog folder. I want to create VMs for LogRhythm and Splunk to parse these files to compare reports with the same log files.

I know in VMware I can mount the local file folders of the VM server onto the VM client. Is this possible in QTS?? If so how?

Forcing an NFS mount to do this seems to add a LOT of overhead.

Hardware is TS-1685 running QTS 4.3.3 VirtStation is 3.0

Cheers!
Cheers!
B-

—————————————--
Details:

Code: Select all

TS-1685 - 64 GB (~62 GB usable) RAM - 25TB RAID6 (4x SanDisk Ultra II 240GB SSD, 8x Seagate ST2000VN004 2TB HHD, 4x Seagate ST8000VN0022 8TB HHD) - 4x 1GB NIC
Firmware version	4.4.1.1146 Build 20191206
CPU	Intel(R) Xeon(R) CPU D-1521 @ 2.40GHz (4 cores, 8 threads)
—-
# cat /etc/os-release 
NAME="QTS"
VERSION="4.4.1 (20191206)"
ID=qts
PRETTY_NAME="QTS 4.4.1 (20191206)"
VERSION_ID="4.4.1"
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Virtualization Station Linux host mounting local filesystem

Post by schumaku »

QTS does (by design) nor allow NFS exporting random folders at all - only defined shared folders are allowed.

Not aware QKVM does allow mounting the virtualisation platform folders direct.
User avatar
Trexx
Ask me anything
Posts: 5393
Joined: Sat Oct 01, 2011 7:50 am
Location: Minnesota

Re: Virtualization Station Linux host mounting local filesystem

Post by Trexx »

To mount ‘local filesystem’ you would want to run Linux Station. For VMs in VS, you would have to connect to a NAS shared folder via smb/nfs/etc. if using bridge vswitch all the traffic would stay inside the box off the external network.


Sent from my iPhone using Tapatalk
Paul

Model: TS-877-1600 FW: 4.5.3.x
QTS (SSD): [RAID-1] 2 x 1TB WD Blue m.2's
Data (HDD): [RAID-5] 6 x 3TB HGST DeskStar
VMs (SSD): [RAID-1] 2 x1TB SK Hynix Gold
Ext. (HDD): TR-004 [Raid-5] 4 x 4TB HGST Ultastor
RAM: Kingston HyperX Fury 64GB DDR4-2666
UPS: CP AVR1350

Model:TVS-673 32GB & TS-228a Offline[/color]
-----------------------------------------------------------------------------------------------------------------------------------------
2018 Plex NAS Compatibility Guide | QNAP Plex FAQ | Moogle's QNAP Faq
User avatar
bs98909
Starting out
Posts: 38
Joined: Sun Feb 28, 2016 12:27 am
Location: Planet Earth

Re: Virtualization Station Linux host mounting local filesystem

Post by bs98909 »

so locally mounting is not an option! NFS or SMB is the only means then.

So I am assuming that I would do this via the /etc/fstab file. I created an entry :

Code: Select all

//qnap1685/Syslog       /share/Syslog     cifs  defaults,rw,dir_mode=0777,file_mode=0777
then I create the mount point:

Code: Select all

$ ls -la /share/Syslog/
total 8
drwxr-xr-x. 2 root root 4096 Dec  5 14:24 .
drwxr-xr-x. 3 root root 4096 Dec  5 14:24 ..
and then I try and mount the file system and receive the following "error":

Code: Select all

$ sudo mount /share/Syslog/
mount: wrong fs type, bad option, bad superblock on //qnap1685/Syslog,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

and on the Liux host I receive this error on all my NAS shares. I can mount them on OSX and Windows10 systems though.
Cheers!
B-

—————————————--
Details:

Code: Select all

TS-1685 - 64 GB (~62 GB usable) RAM - 25TB RAID6 (4x SanDisk Ultra II 240GB SSD, 8x Seagate ST2000VN004 2TB HHD, 4x Seagate ST8000VN0022 8TB HHD) - 4x 1GB NIC
Firmware version	4.4.1.1146 Build 20191206
CPU	Intel(R) Xeon(R) CPU D-1521 @ 2.40GHz (4 cores, 8 threads)
—-
# cat /etc/os-release 
NAME="QTS"
VERSION="4.4.1 (20191206)"
ID=qts
PRETTY_NAME="QTS 4.4.1 (20191206)"
VERSION_ID="4.4.1"
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: Virtualization Station Linux host mounting local filesystem

Post by schumaku »

By rule of thumb you must either specify the guest mode or supply credentials, ideally in a protected credentials file in the user environment.

Hint: Try a manual mount form the shell first, use verbose -v or -vv or -vvv ... for troubleshooting.
User avatar
bs98909
Starting out
Posts: 38
Joined: Sun Feb 28, 2016 12:27 am
Location: Planet Earth

Re: Virtualization Station Linux host mounting local filesystem

Post by bs98909 »

Silly me the CIFS and NFS libraries are not installed as standard any more.

after running

yum -y install nfs-utils libnfsidmap
yum -y install samba-client samba-common cifs-utils

my mounts are now working... I guess the error message "wrong fs type" should have been a clue.
Cheers!
B-

—————————————--
Details:

Code: Select all

TS-1685 - 64 GB (~62 GB usable) RAM - 25TB RAID6 (4x SanDisk Ultra II 240GB SSD, 8x Seagate ST2000VN004 2TB HHD, 4x Seagate ST8000VN0022 8TB HHD) - 4x 1GB NIC
Firmware version	4.4.1.1146 Build 20191206
CPU	Intel(R) Xeon(R) CPU D-1521 @ 2.40GHz (4 cores, 8 threads)
—-
# cat /etc/os-release 
NAME="QTS"
VERSION="4.4.1 (20191206)"
ID=qts
PRETTY_NAME="QTS 4.4.1 (20191206)"
VERSION_ID="4.4.1"
Post Reply

Return to “Linux & Unix (NFS)”