From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: How is the -smb switch supposed to work? Date: Mon, 16 Feb 2009 20:25:22 +0100 Message-ID: <87zlgm89r1.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: kvm@vger.kernel.org Return-path: Received: from main.gmane.org ([80.91.229.2]:47343 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751251AbZBPTpD (ORCPT ); Mon, 16 Feb 2009 14:45:03 -0500 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LZ9Oo-0006cY-Gd for kvm@vger.kernel.org; Mon, 16 Feb 2009 19:45:02 +0000 Received: from p54af2c1a.dip0.t-ipconnect.de ([84.175.44.26]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Feb 2009 19:45:02 +0000 Received: from tassilo by p54af2c1a.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Feb 2009 19:45:02 +0000 Sender: kvm-owner@vger.kernel.org List-ID: Hi all, I've successfully installed KVM (version 83 with 2.6.28 kernel) and windows as guest. I start it with kvm -net nic,macaddr=46:0e:b3:53:9f:3a \ -net user -localtime -smb /home/horn \ ~/kvm/windows.img and basically it works fine. I have network access in the guest, performance is fine and every application I need seems to work well. The only thing which doesn't work is accessing my $HOME on the host from the guest. My $HOME is /home/horn and reading the kvm man page it seems clear that with that I should be able to access the dir using \\smbserver\qemu. I added the line "10.0.2.4 smbserver" in the lmhosts file, too. But the connection always fails. Samba is installed on the host (/usr/sbin/smbd exists), CIFS support is in the kernel. But "ps -e" doesn't show a smbd process when the guest is started. I also tried starting smbd before starting the guest, but still no luck. When on the guest I can ping 10.0.2.2 but not 10.0.2.4. Reading the kvm man page I see that this is the built-in TFTP server, but why is it activated? I didn't specify "-tftp dir" on the command line... Does anyone know what I'm doing wrong? Or does someone know how to debug what's the problem? Thanks a lot for any pointers! Bye, Tassilo