NAT and AFP (Apple Fling Protocol)

This is for discussing general topics about how to use VirtualBox.
Post Reply
pensak
Posts: 4
Joined: 9. Apr 2009, 05:04
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows xp

NAT and AFP (Apple Fling Protocol)

Post by pensak »

I am running a 64 bit Windows 7 "server". I need for it to talk "Apple Filing Protocol" to other machines on the LAN. There are no free or reasonably priced way for Windows to do that directly. I've installed Vbox (4.0.4) and added an Ubuntu guest. I've installed netatalk on that guest. Apple's documentation "suggests" that it only requires TCP port 548 (but I'm sure there are ancillary services which are also involved for the Mac's on the network to detect the AFP server). I need help in setting up Vbox's NAT so I can write to disks on the Windows server for Time Machine (which will not work with SMB disks).

If I had a spare machine around to run FreeNAS on, I would do so in a heartbeat, but I don't.

Does what I am proposing have a chance of working ? Is there a better way to do it ?

Thanks
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: NAT and AFP (Apple Fling Protocol)

Post by Sasquatch »

I can tell you that this will not work. You would have to forward the port to the Guest 1-on-1, this means that the Host will not be able to use AFP. Not only that, but the port number is below 1024, which means that VB needs to run with administrative (root) privileges and that is discouraged.
If you really want to get a chance of getting it to work, use Bridged instead. Then you can dive into the documentation to get a non-Mac OS work with the protocol. The actual way to get that working is not in the scope of this forum.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
pensak
Posts: 4
Joined: 9. Apr 2009, 05:04
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows xp

Re: NAT and AFP (Apple Fling Protocol)

Post by pensak »

Thank you. By using the bridged network I am able to see the disks on the guest machine with no trouble. I just had to supply the IP of the guest as the Mac couldn't find it on its own. I haven't solved the problem of getting Time Machine to write to it but, as you correctly pointed out, that is outside the scope of this forum.
Post Reply