public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: kvm@vger.kernel.org
Subject: How is the -smb switch supposed to work?
Date: Mon, 16 Feb 2009 20:25:22 +0100	[thread overview]
Message-ID: <87zlgm89r1.fsf@thinkpad.tsdh.de> (raw)

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


             reply	other threads:[~2009-02-16 19:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16 19:25 Tassilo Horn [this message]
2009-02-18  7:44 ` How is the -smb switch supposed to work? Tassilo Horn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zlgm89r1.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox