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.
Just checking I am doing this right. To access disk drives other than C: from a Win 7 VM I guess I need to use Samba on the KVM host to share those drives first don't I? There is not some other way using iSCSI or something else that I should be using instead is there.
From what you said it appears that you have got KVM installed on linux host and Windows 7 is a guest OS. You said that if you want to access drives other than C (which is there on your Windows 7 machine) then yes you can use Samba client on host OS. If you want to access other drives on your Windows 7 VM then just make those drives sharable and that will be it. You will be able to access these drive using smb-client. However, if you are thinking of doing vice-versa that is making linux share available to your Windows 7 VM then you have to configure Samba server on linux machine.
I would say that samba is the easiest way to achieve this objective. In short you are on the right track.
can you elaborate on what you want to do? The description is a bit vague...
VM is Win 7, VM Host is Debian. Actually both on the same machine as this is workstation virtualization. There are multiple disks and partitions on this machine which I want to make available to the Win 7 VM.
I have installed Samba on the Debian host but can't seem to find anyway to actually share a drive or directory, using Xfce4 desktop on Debian.
Well got samba installed and I can see the samba server from the Win 7 VMs but as soon as I try to go into it to browse the shares I get error: The network path was not found. Any suggestions.
Yep thanks but tried all the suggested registry hacks and still no access. Not sure this is Win 7 related because I have also tried it from a seperate Win 2003 on tghe same network and that has the same problem.
Can you share your smb.conf file. How you are authenticating to samba via tdsm or ldap? If tdsm then did you setup the password for the user using smbpasswd? It will be good if you also share the commond that you are using to mount samba share.
Can you share your smb.conf file. How you are authenticating to samba via tdsm or ldap? If tdsm then did you setup the password for the user using smbpasswd? It will be good if you also share the commond that you are using to mount samba share.
smb.conf
Quote:
[global]
netbios name = VMHost
server string = Samba file and print server
workgroup = Test1
security = user
hosts allow = 127.192.168.0. 192.168.10.0. 192.168.122.0
interfaces = 127.0.0.1/8 192.168.10.0/24 192.168.122.0/24
bind interfaces only = yes
remote announce = 192.168.0.255
remote browse sync = 192.168.0.255
printcap name = cups
load printers = yes
cups options = raw
printing = cups
guest account = smbguest
log file = /var/log/samba/samba.log
max log size = 1000
null passwords = no
username level = 6
password level = 6
encrypt passwords = yes
unix password sync = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
domain master = no
preferred master = no
domain logons = no
os level = 33
logon drive = m:
logon home = \\%L\homes\%u
logon path = \\%L\profiles\%u
logon script = %G.bat
time server = no
name resolve order = wins lmhosts bcast
wins support = no
wins proxy = no
dns proxy = no
preserve case = yes
short preserve case = yes
client use spnego = no
client signing = no
client schannel = no
server signing = no
server schannel = no
nt pipe support = yes
nt status support = yes
allow trusted domains = no
obey pam restrictions = yes
enable spoolss = yes
client plaintext auth = no
disable netbios = no
follow symlinks = no
update encrypted = yes
pam password change = no
passwd chat timeout = 120
hostname lookups = no
username map = /etc/samba/smbusers
passdb backend = tdbsam
passwd program = /usr/bin/passwd '%u'
passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
add group script = /usr/sbin/groupadd '%g'
delete user script = /usr/sbin/userdel '%u'
delete user from group script = /usr/sbin/userdel '%u' '%g'
delete group script = /usr/sbin/groupdel '%g'
add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
machine password timeout = 120
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /dev/null
winbind use default domain = yes
winbind separator = @
winbind cache time = 360
winbind trusted domains only = yes
winbind nested groups = no
winbind nss info = no
winbind refresh tickets = no
winbind offline logon = no
[homes]
comment = Home Directories
path = /home
read only = no
available = yes
browseable = yes
writable = yes
guest ok = no
public = no
printable = no
locking = no
strict locking = no
[netlogon]
comment = Network Logon Service
path = /home/netlogon
read only = no
available = yes
browseable = yes
writable = no
guest ok = no
public = no
printable = no
locking = no
strict locking = no
[profiles]
comment = User Profiles
path = /var/samba/profiles
read only = no
available = yes
browseable = no
writable = yes
guest ok = no
public = no
printable = no
create mode = 0600
directory mask = 0700
locking = no
strict locking = no
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
writable = no
guest ok = no
public = no
printable = yes
locking = no
strict locking = no
[pdf-documents]
path = /home/pdf-documents
comment = Converted PDF Documents
available = yes
browseable = yes
writeable = yes
guest ok = yes
locking = no
strict locking = no
[pdf-printer]
path = /tmp
comment = PDF Printer Service
printable = yes
guest ok = yes
use client driver = yes
printing = bsd
print command = /usr/bin/gadmin-samba-pdf %s %u
lpq command =
lprm command =
[Data]
path = /media/Data
comment = No comment
valid users = nick libvirt-qemu smbguest
write list = nick libvirt-qemu smbguest
admin users = nick libvirt-qemu smbguest
read only = no
available = yes
browseable = yes
writable = yes
guest ok = yes
public = yes
printable = no
locking = yes
strict locking = no
Extra additions suggested in previous link have been taken out as they didn't make any difference anyway.
Please use code tag instead of quote when you are posting your configuration file as putting it in quote tag makes it difficult to read. As I can see you are using tdbsam. Did you setup password for the users nick libvirt-qemu smbguest? If yes, are you able to see them when you run the command:
Code:
pdbedit -L
If you are able to see the users after running the above command what is the syntax that you are using to mount samba share? If it returns any error paste the error message.
Let us know which are the shares that you want to access and put the configuration file in code tag instead of quote.
Please use code tag instead of quote when you are posting your configuration file as putting it in quote tag makes it difficult to read. As I can see you are using tdbsam. Did you setup password for the users nick libvirt-qemu smbguest? If yes, are you able to see them when you run the command:
Code:
pdbedit -L
If you are able to see the users after running the above command what is the syntax that you are using to mount samba share? If it returns any error paste the error message.
Let us know which are the shares that you want to access and put the configuration file in code tag instead of quote.
I have setup a password for the user nick but not specifically for libvirt-qemu or smbguest, these were both created automatically. pdbedit -L displays the following:
Code:
root@VmHost:/home/nick# pdbedit -L
Ignoring unknown parameter "update encrypted"
smbguest:1001:Samba guest account
smbguest:1001:Samba guest account
win7pro$:1006:No value has been set
root:0:root
win7ult$:1004:No value has been set
nick:1000:Nick Causton
libvirt-qemu:108:Libvirt Qemu
> what is the syntax that you are using to mount samba share
I'm not using any command, just going to 'network' in nautilus.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.