Tux's lil' helper
Joined: 30 Nov 2014
|Posted: Thu Apr 09, 2015 11:16 am Post subject: qemu user net and nfs on host
I have a question regarding networking between qemu started with user networking and host networking.
Qemu confuses me because samba does work with host using 192.168.x.x and qemu user networking but nfs doesn't.
I am having troubles understanding how is qemu is able to reach host by using 10.x.x.x.
1- Host is configured with regular 192.168.x.x.
2- Qemu started with user networking that uses 10.x.x.x range.
In the past I used user networking to reach internet quickly. I know that bridge and other methods are better.
But now that I am trying something a bit more involved such as sharing a folder with samba and I would like to have a better grasp how is all connected.
I understand that samba uses a varying types of protocols that are able to jump different ips in this example from 192.168.x.x to 10.x.x.x.
But in the case of NFS the ip has to be specified in /etc/exports like the following:
This is so because host is on that 192.168.x.x range and not 0.x.x.x
Is this the reason why qemu with user networking isn't working with NFS?
The multitude options of networking that uses qemu is confusing to know which one is best for different set ups.
Anyone recommend one flexible networking set up for qemu (aside from bridge)? What about VDE?