Page 1 of 1

Virtualization Station Linux host mounting local filesystem

Posted: Wed Dec 06, 2017 9:40 am
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!

Re: Virtualization Station Linux host mounting local filesystem

Posted: Mon Dec 11, 2017 5:12 am
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.

Re: Virtualization Station Linux host mounting local filesystem

Posted: Mon Dec 11, 2017 5:25 am
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

Re: Virtualization Station Linux host mounting local filesystem

Posted: Wed Dec 13, 2017 9:48 pm
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.

Re: Virtualization Station Linux host mounting local filesystem

Posted: Wed Dec 13, 2017 11:11 pm
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.

Re: Virtualization Station Linux host mounting local filesystem

Posted: Thu Dec 14, 2017 12:54 am
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.