kvm/qemu on this VM (Win XP) (BTW I didn't think I'd need "-smb host_share") -- I thought that kvm-intel and tun and a host smb shared folder would do (but, not yet, though).
(about samba.conf [works on "old"er of my two VM] is further below)
host: 2.6.27.6 smp kernel with/in Slack 12.1
******ICS/firewall******** Interesting (to me anyways), see this tag further down below for ""how the Win XP guest was "seeing" my host's samba share"" even though this guest could not access the share, reporting "no path was found" to the seen share.
I could be wrong -- but my guess, I attribute my problem is due to something with problems associated with path between virtual network (10.0.2.2 etc.) and real network (192.168.1.xxx) (however, the http protocol works, it does: guest <--> internet works fine, http relays (nat's or whatever) through qemu_gateway to real lan and real gateway. But, any that's outside of or other than http protocol doesn't work; it errors, says "no path found."
This is my first bridging attempt (I'm so confused due that the internet web browsing works fine in the XP guest but to do to (real) LAN from XP guest's (virtual LAN) IP is 10.0.2.15 *to* host IP which is 192.168.1.64 (on real LAN) (file share does not work, error say no path found).
guest info: IP is 10.0.2.15 gateway is 10.0.2.2
guest pings OK that gateway (that's the gateway in qemu) the guest web browses to internet fine and has to go through my real physical gateway on my real LAN at 192.168.1.254 to get out on internet.
In guest I ping of/to 192.168.1.254 fails (perhaps qemu gateway disallows ping) (BTW the same ping done from host works) -- maybe I hit on part of it here -- http protocol goes fine from guest through qemu gateway onward to 192.168.x LAN and through (real) internet gateway on said lan. Likely, if I fired up the http server on the host at 192.168.1.64, XP guest would web browse it just fine.
The samba.conf works fine everywhere else on my LAN -- it is only here, this host <--> guest (see below for enclosed smb.conf) that (access/share) problem. Perhaps I should check the samba.conf again though (had pulled a copy of samba.conf over from another box, a Slack 12.0 box -- this VM host box is Slack 12.1 -- can't remember if I put a (physical not virtual) Win LAN box to my Slack 12.1 SMB (it always worked super on the Slack 12.0 box).
******ICS/firewall********
BTW, guest is Win XP Pro. And, in it, I just did "manage -- services", and though I'd earlier turned off the firewall, an "ICS/firewall" service yet runs -- NAT and few others it said -- I stopped it and set it to "disabled".
And, now I cannot any longer see the Samba share on the Slack host O.S. Now the *only* net unit is seeing myself, which is "vmXP_blah_blah" (what I had named this Win XP vm guest) file/printer etc. but no share as I've not yet set/specified a or any file share.
BTW my physical LAN is 192.168.1.whatever
DHCP assigned to Slack 12.1 IP for a very long time has been 192.168.1.64 (host IP of this host/guest issue)
--
A short aside here next.
Ok I already for a long time have had a 100% working (share back and forth via smb and shared folder on host) Windows 2000 SP4 in Qemu/kqemu -- it uses smb and the nat in qemu.
-smb host_share
that is the only LAN thingy in my qemu Win 2K startup command. That one uses NAT and KVM isn't used (qemu/kqemu). But (Win 2K) I had to map a drive letter to the host OS net share in order to get it to work in Win 2K (had error and unable to access until I did the map thing).
--
End of the aside.
So, recently did the Win XP Pro host OS this one is kvm/qemu. Saw where "kvm-intel" (I've a dual core cpu with 64 and virtualization support) and "tun".
So, thought I'd try to bridge this Win_XP/kvm/qemu
Again, in XP host, the internet web browsing works superbly (I just now tried it again).
Things keep revising as to Linux kernel development versus what used to be needed (I create) versus what's now bundled with the kernel (it's already created/bundled).
Forgot until now to say I'm using a 2.6.27.6 smp kernel with Slack 12.1
my udev rules already looked similar to I'd seen some past (and perhaps also now out dated) "you need to add this to your udev rules". (I did not add/change any).
Did not yet manually create a bridge (for the same reason).
(see next) after (479) since XP guest didn't LAN (specifically to shared host files) then (480) I added -smb shared_folder_on_host (just trying things, not knowing what to do really).
479 /usr/bin/qemu-system-x86_64 -hda ~/virtmach/winxp.qcow -m 896 -no-acpi -localtime -net nic -net user
480 /usr/bin/qemu-system-x86_64 -hda ~/virtmach/winxp.qcow -m 896 -no-acpi -localtime -net nic -net user -smb ~/ntp
My smb.conf:
Code:
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: LINUX2
workgroup = WORKGROUP
cups options = raw
map to guest = Bad User
domain master = no
restrict anonymous = no
preferred master = no
max protocol = NT
server signing = Auto
domain logons = no
local master = yes
passdb backend = smbpasswd
netbios name = G33T-M2_SW121_SMB
encrypt passwords = yes
[home_al]
path = /home/al
read only = no
force user = root
force group = root
guest account = root
case sensitive = no
guest only = yes
guest ok = yes
browseable = yes
printable =no
[mnt_dat_sda8]
path = /mnt/dat_sda8
read only = no
force user = root
force group = root
guest account = root
case sensitive = no
guest only = yes
guest ok = yes
browseable = yes
printable =no
Thanks. Alan.