Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:guide-user:virtualization:virtualbox-advanced [2020/01/16 11:39] – old revision restored (2020/01/16 10:17) someothertime | docs:guide-user:virtualization:virtualbox-advanced [2020/08/15 16:11] (current) – [Resources] add flink re: 80211 bridging issues someothertime | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| This guide extends the basic VirtualBox HowTo with broader setup recommendations, | This guide extends the basic VirtualBox HowTo with broader setup recommendations, | ||
| + | NOTE: Use a wired virtualbox host (unless you are really confident with virtualbox i.e. 80211 bridging issues ). | ||
| ===== Prerequisite Concepts ===== | ===== Prerequisite Concepts ===== | ||
| ==== x86_64 Basics ==== | ==== x86_64 Basics ==== | ||
| Line 140: | Line 141: | ||
| VMNAME=" | VMNAME=" | ||
| - | lannicspeed=" | + | lannicspeed=" |
| - | wannicspeed=" | + | wannicspeed=" |
| VBoxManage bandwidthctl " | VBoxManage bandwidthctl " | ||
| Line 147: | Line 148: | ||
| VBoxManage modifyvm " | VBoxManage modifyvm " | ||
| VBoxManage modifyvm " | VBoxManage modifyvm " | ||
| + | </ | ||
| + | |||
| + | |||
| + | === Tagging for VM' | ||
| + | |||
| + | Note: example ip link is non-permanent... see your distro for appropriate place to configure your host nic for a vlan. | ||
| + | |||
| + | You can use a single cable as a " | ||
| + | |||
| + | This can be used for clients... with openwrt on a "real router" | ||
| + | |||
| + | |||
| + | This example shows clientVM' | ||
| + | <code bash> | ||
| + | |||
| + | ######################################################### | ||
| + | NIC=" | ||
| + | ip link add link $NIC name $NIC.50 type vlan id 50 | ||
| + | ip link set dev $NIC.50 up | ||
| + | |||
| + | ######################################################### | ||
| + | In VirtualBox change bridge for a VM to interface NIC.50 | ||
| + | |||
| + | ######################################################### | ||
| + | #-Go to switch... add vlan 50 tagged on same port as pc/server + cpu1 | ||
| + | #-Go to interfaces... add interface... NAME + INTERFACE: | ||
| + | |||
| + | |||
| + | ################################## | ||
| + | #ip -d link show $NIC.50 | ||
| + | #ip link delete $NIC.50 | ||
| + | #tcpdump -nnei $NIC -vvv | ||
| + | |||
| </ | </ | ||
| Line 163: | Line 197: | ||
| {{: | {{: | ||
| + | |||
| As show in the diagram; | As show in the diagram; | ||
| Line 171: | Line 206: | ||
| You now have a powerful internal router for VPN and any other service you wish. Leaving the edge router to do simple routing, nat and firewalling tasks. Give some clients your normal LAN gateway and some clients the OpenWrt VM, and presto! poor mans PBR ;). | You now have a powerful internal router for VPN and any other service you wish. Leaving the edge router to do simple routing, nat and firewalling tasks. Give some clients your normal LAN gateway and some clients the OpenWrt VM, and presto! poor mans PBR ;). | ||
| + | |||
| + | === CLI Basic Network Access Setup (vi dhcp) === | ||
| + | * use gateway and dns options for static ip | ||
| + | |||
| + | {{: | ||
| + | |||
| + | |||
| + | === CLI Install LUCI on snapshot === | ||
| + | {{: | ||
| + | |||
| + | |||
| + | |||
| ==== Buildroot Export ==== | ==== Buildroot Export ==== | ||
| Line 219: | Line 266: | ||
| Then change the correct VM> | Then change the correct VM> | ||
| + | |||
| + | NOTE: You may need to set the vbox-nic promiscous mode to Allow if bridging to a host bridge | ||
| + | https:// | ||
| + | |||
| ==== ToDo Serial and SSH console examples ==== | ==== ToDo Serial and SSH console examples ==== | ||
| Line 271: | Line 322: | ||
| [5] Image filesystems and alteration in detail | [5] Image filesystems and alteration in detail | ||
| [[https:// | [[https:// | ||
| + | |||
| + | [7] forum re: macos 80211 bridging issues | ||
| + | [[https:// | ||
| + | |||