Filesystem passthrough "Not supported for this hypervisor/libvirt combination'
Linux - Virtualization and CloudThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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).
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.
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).
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 .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.