Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to start dedicated samba server for qemu virt-machine?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fpemud
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2012
Posts: 123

PostPosted: Wed Jun 26, 2013 5:07 am    Post subject: how to start dedicated samba server for qemu virt-machine? Reply with quote

I'm writing a script to start qemu virt-machine.

I want to share a folder of host with the winxp guest in qemu virt-machine.
My vm uses NAT networking, the ip address of bridge interface is 10.3.232.1.
I'm using a samba server for file sharing between PC, so I want to start a dedicated samba server for my virt-machines.

Problem occured when doing socket binding operation:
The main samba server binds to 0.0.0.0:139, and the dedicated samba server needs to bind to 10.3.232.1:139. The binding of the dedicated samba server failed.
I know this limit, although I don't understand why it's there.

How should I do this? please help!
Back to top
View user's profile Send private message
fpemud
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2012
Posts: 123

PostPosted: Wed Jun 26, 2013 5:13 am    Post subject: Reply with quote

Solution in my head currently:
1. winxp only recoginize port 139, so I can't modify the port number of the dedicated samba server,
2. Can I isolate the bridge interface and other interfaces using cgroup?
3. In my script, I can use the main samba server to share the fodler to virt-machine, but it'll be complicate, needs dynamic samba config modification, netbios alias etc.

How does virtual-box implement its "share-folder" feature?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum