LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 01-22-2013, 12:17 PM   #1
kesi
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Rep: Reputation: Disabled
Filesystem passthrough "Not supported for this hypervisor/libvirt combination'


I'm trying to share files between my native RHEL install and my KVM running Ubuntu 12.04. The Windows VM shares nicely. I get the above error when I attempt to create the filesystem passthrough. Is there anything that I can do? Treat me as a bit of a newb although I've been playing for awhile.
 
Old 01-22-2013, 01:01 PM   #2
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
What do you mean by "Windows VM sharing nicely"? You have a VM that runs Windoze and that works?

Last edited by gradinaruvasile; 01-22-2013 at 01:02 PM.
 
Old 01-22-2013, 01:50 PM   #3
kesi
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
I do have a KVM running Win7 as well and I'm able to do a driveshare with that one. I don't think it's relevant but I thought I'd mention it.
 
Old 01-22-2013, 05:47 PM   #4
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by kesi View Post
I do have a KVM running Win7 as well and I'm able to do a driveshare with that one. I don't think it's relevant but I thought I'd mention it.
This means that in fact the sharing works. Maybe the error message is misleading. Since both hypervisor and libvirt are on the host side, so if it works for one guest, why not for the other? Did you try booting a live Ubuntu on the Win7 VM to see if you get the same result?

PS. How did you do the drivershare? Did you need any 3rd party drivers? I tried it with Windows xp and i only got a "PCI Device" that i couldnt find drivers for (i have both the virtio network and scsi drivers installed).
 
Old 01-23-2013, 08:29 AM   #5
kesi
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
I think maybe I'm confusing things. I am running RHEL.
I use KVM to create VM's for Ubuntu and for Win7.
In my Win7 KVM client, I have access to a shared linux folder. This appears to be accomplished by the following script:

Code:
:: OpenClient for Linux automounter
:: This script will mount the Linux shared folder on startup
:: <author>
:: 06/10/2010

@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
SET FREE=
SET USED=
SET MOUNTED=
SET TMOUNTED=0
SET COUNT=0
SET DRVUNIQ=8

ECHO Mounting share folder

GOTO CHECK

::
:: Check if the server can be reached, also check if the samba
:: is available and is we have any shared folder to map
::
:CHECK
::
ECHO Checking if shared machine is online
PING SMBHOST -n 1 -w 128 > NUL 2>&1
IF ERRORLEVEL 1 GOTO PINGERROR

ECHO Checking if shared server is available
NET VIEW \\SMBHOST > NUL 2>&1
IF ERRORLEVEL 1 GOTO SHAREERROR

ECHO Checking if there are shared folders available
NET VIEW \\SMBHOST | FINDSTR /V "Disk|Disque|Platte" > NUL 2>&1
IF ERRORLEVEL 1 GOTO NOSHARES


FOR /F "tokens=1,2 delims=\ " %%A IN ('FSUTIL FSINFO DRIVES ^| MORE /E /T0') DO (

  IF "%%B"=="" (
    SET USED=!USED! %%A
  ) ELSE (
    SET USED=!USED! %%B
  )
)
::ECHO "Drivers already in use %USED%


FOR %%A IN (F G H I J K L M N O P Q R S T U V W X Y Z) DO (
  ECHO.%USED% | FIND "%%A:" > NUL 2>&1
  IF ERRORLEVEL 1 (
    SET DRVUNIQ=%%A
    GOTO ENDLOOP
  )
)
:ENDLOOP


IF "%DRVUNIQ%"=="8" (
  GOTO ERRORDRIVE
)

GOTO CHECKMAPPED

::GOTO GOAHEAD
::
:: Check End
::


::
:PINGERROR
::
ECHO Unable to connect to \\smbhost. Please check your hosts file
GOTO END


::
:SHAREERROR
::
ECHO Unable to obtain share folder list
GOTO END


::
:NOSHARES
::
ECHO Unable to find a valid shared folder to map. Exiting
GOTO END


::
:ERRORDRIVE
::
ECHO There are no available letters to map the shared folders. Exiting
GOTO END


::
:CHECKMAPPED
::
FOR /F "eol=@ tokens=1,2,3,4 delims=\ " %%A IN ('NET USE ^| FINDSTR "OK"') DO (
  ::ECHO %%A %%B %%D
  IF "!MOUNTED!"=="" (
    SET MOUNTED=%%D
    SET TMOUNTED=1
    %SYSTEMROOT%\EXPLORER.EXE \\SMBHOST\%%D
  ) ELSE (
    SET MOUNTED=!MOUNTED! %%D
    SET TMOUNTED=1
    %SYSTEMROOT%\EXPLORER.EXE \\SMBHOST\%%D 
  )
)
IF !TMOUNTED! == 1 (
  ECHO Already mounted drives = "!MOUNTED!"
)
GOTO GOAHEAD


::
:GOAHEAD
::

  FOR /F "tokens=1 delims= " %%A in ('NET VIEW \\SMBHOST ^| FINDSTR "Disk"') do (   
       
    ECHO %MOUNTED% | FIND "%%A" > NUL 2>&1

    IF ERRORLEVEL 1 (
      NET USE * \\SMBHOST\%%A /P:NO > NUL 2>&1
      IF ERRORLEVEL 0 (
        ECHO %%A succesfully mounted
        %SYSTEMROOT%\EXPLORER.EXE \\SMBHOST\%%A
      ) ELSE (
        ECHO Unable to mount shared folder. You must do it manually
      )
    )
  )

 FOR /F "tokens=1 delims= " %%A in ('NET VIEW \\SMBHOST ^| FINDSTR "Disque"') do (

    ECHO %MOUNTED% | FIND "%%A" > NUL 2>&1

    IF ERRORLEVEL 1 (
      NET USE * \\SMBHOST\%%A /P:NO > NUL 2>&1
      IF ERRORLEVEL 0 (
        ECHO %%A succesfully mounted
        %SYSTEMROOT%\EXPLORER.EXE \\SMBHOST\%%A
      ) ELSE (
        ECHO Unable to mount shared folder. You must do it manually
      )
    )
  )

 FOR /F "tokens=1 delims= " %%A in ('NET VIEW \\SMBHOST ^| FINDSTR "Platte"') do (

    ECHO %MOUNTED% | FIND "%%A" > NUL 2>&1

    IF ERRORLEVEL 1 (
      NET USE * \\SMBHOST\%%A /P:NO > NUL 2>&1
      IF ERRORLEVEL 0 (
        ECHO %%A succesfully mounted
        %SYSTEMROOT%\EXPLORER.EXE \\SMBHOST\%%A
      ) ELSE (
        ECHO Unable to mount shared folder. You must do it manually
      )
    )
  )

  GOTO END

::
:END
::
  ECHO "Finished"
I would like to somehow have access to this folder from my Ubuntu VM but I'm having no luck.
 
Old 01-23-2013, 08:31 AM   #6
kesi
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
The error occurs when I go to KVM and try to select Filesystem. Maybe there is another way like they are doing with the Windows KVM for me.
 
Old 01-23-2013, 11:42 AM   #7
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
I understood what runs where, im just a bit confused by this driveshare thing.
Driveshare=sharing a filesystem in kvm means that the host shares a folder or whatever that will show up in the guest's file system directly via some mechanism named 9p or something (needs a loaded driver and probably some kvm/libvirt combination it seems).
Whereas in that script it seems the sharing is done via samba (windows file sharing).
 
Old 01-24-2013, 09:33 AM   #8
kesi
LQ Newbie
 
Registered: Dec 2011
Posts: 21

Original Poster
Rep: Reputation: Disabled
I still haven't found a way to do this but I've discovered that I can use a thumbdrive to transfer files between OS and VM.
 
Old 01-24-2013, 03:25 PM   #9
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
It looks like the script is accessing a samba share. You can use smbclient in a Linux machine to do the same thing
 
Old 07-29-2013, 09:12 AM   #10
mgrivas
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 1
Post

As dyasny mentioned, your script uses the clasical windows network share (as if you had two windows computers on a physical LAN). There is nothing about KVM and shared filesystem in it.
You likely do not have what's needed to share a filesystem in KVM, in any guest. It's irrelevant.

However, in the same fashion as with Win guest, you can share the same directory / folder in host with all guests.
Obviously, your host folder has been exported to the virtual network using Samba, and it has a name that includes one of the:
Disk or Disque or Platte (for disk in english, french and german)
So, you only have to open your nautilus (file browser) in your Ubuntu guest, target it to network and find the Host (I can't know its name, but might be SMBHOST) and one of those folders in it.
There you are.

Otherwise, you have to find your Host's virtual network IP (most probably 192.168.122.1 or something similar) and then on your guest's nautilus' Location bar put : smb://192.168.122.1/ (your host's address) .
That should show you all shared folders in host, including the Disk or Disque or Platte .

Good luck.
Michael

Last edited by mgrivas; 07-29-2013 at 09:15 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Filesystem passthrough Nick_C Linux - Virtualization and Cloud 1 10-27-2012 05:56 PM
BSOD xp client on libvirt USB passthrough Sydney Linux - Virtualization and Cloud 2 08-01-2012 11:41 AM
[SOLVED] some problemS about developing with libvirt onXCP,can not connect to xen hypervisor code penguin Linux - Virtualization and Cloud 0 05-23-2012 11:00 PM
LXer: Hot Hypervisor upgrade up to 3.4.2 on Xen 3.4.1 & Libvirt 0.7.1-15 Dom0 on top LXer Syndicated Linux News 0 11-28-2009 05:20 PM
"libvirt.libvirtError: virDomainCreateLinux() failed" when virt-install sailer_sh Red Hat 0 06-15-2007 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration