Linux - VirtualizationThis forum is for the discussion of all topics relating to Linux Virtualization. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have two network cards, and tree network interfaces(one of them vbox2 is virtual, added via VBoxAddIF.sh, I don't fully understand the script, I just used it and it worked a little! ) and now I'm curious how can I set up a little LAN between Guest and Host OSs. Should I set up network via NAT or should I configure bridge. I think if NAT is easier.
I just don't know what is better.
If it's trivial matter(for me it's not), just point me into manual or direction
The bridge options means that the Vbox is on a separate lan from your host (diferent ip calss) and your host is configured as gw. If NAT it means that your vbox is in the same lan as your host (same ip class).
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,164
Rep:
sqn you have it backwards. Bridged means it is on the same LAN as the host, NAT means it is natted behind the host, where the VM can see LAN network resources but the host and any other computer on the network cannot see the VM. Host only networking means the host and the VM can see eachoter but the VM does not have any LAN or Internet access, unless you setup a gateway or proxy on the host for the VM, and then you have another option in some VM environments, including VirtualBox and that is a Internal Network option, where VMs can talk to each other but have no way to talk to the host or the LAN, unless you setup a second NIC in the VM or a VM with two NICS acting as a gateway for the other VMs.
I just need to set up LAN and I don't mind which method it would be, I didn't decide.<br>
when I start VM, I get this message:
Code:
Failed to initialize Host Interface Networking.
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED)
VM network is attached to host interface
Maybe I should write something in "Setup Application" and "Terminate Application" areas in VM network settings?
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,164
Rep:
I don't know what that error message is, but did you try another VM attached to the same Virtual HD, it might be a corruption of the Virtual machine. Furthermore, you are confusing me, host only networking won't connect you to any network, except to the host computer, unless you assign a second NIC with a different type of networking option.
Failed to open '/dev/net/tun' for read/write
access. Please check the permissions of that node.
Either run 'chmod 0666 /dev/net/tun' or change the
group of that node and make yourself a member of that
group. Make sure that these changes are permanent,
especially if you are using udev.
VBox status code: -3100 (VERR_HOSTIF_INIT_FAILED).
then I changing owner of /dev/net/tun to user, who is starting the VM and then I receive error, mentioned earlier
Settings of my VM are looking like this VM_settings.png
I receive the above error message from all VMs
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,164
Rep:
Are you using any VPN software? a brief search finds that a similar error message occurs if the tun device or tap device trying to be used is no wexclusive to VB. Additionally did you try setting the tun device back to the original user and chmodding it to 0666? Finally if you are using udev have you made changes int he appropriate places?
Are you using any VPN software? a brief search finds that a similar error message occurs if the tun device or tap device trying to be used is no wexclusive to VB. Additionally did you try setting the tun device back to the original user and chmodding it to 0666? Finally if you are using udev have you made changes int he appropriate places?
No, I'm not using any VPN software, as far as I know
"if the tun device or tap device trying to be used is no wexclusive to VB"
I don't get this expression, can you, please, explain more? Unfortunately, I'm not English native speaker.
About udev. For long time I am looking curiously on it.You are right, it seems good time to learn finally what it is
Maybe you can give me advice on better free program than VirtualBox?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.