Changes between Version 4 and Version 5 of NetworkBridging
- Timestamp:
- 2012-04-20T14:48:50Z (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NetworkBridging
v4 v5 1 1 == HelenOS on a physical LAN/Internet from QEMU/KVM == 2 2 3 This is a simple DIY checklist for running HelenOS in QEMU/KVM and connecting its TCP/IP networking stack to a real physical ethernet LAN and possibly to the public Internet via this LAN. Please note that the functionality of the HelenOS TCP/IP stack is still severely limited (especially concerning the actual usability of the UDP and TCP protocols), but the situation should improve soon.3 This is a simple DIY checklist for running HelenOS in QEMU/KVM and connecting its TCP/IP networking stack to a real physical ethernet LAN and possibly to the public Internet via this LAN. 4 4 5 5 This checklist should work reasonably well with any recent GNU/Linux (2.6) distribution and QEMU/KVM 0.13.x on a IA-32 or AMD64 host system with a physical ethernet network card. Without any special arrangements you also need to have a root access on the host machine. If you have a substantially different software or hardware configuration than assumed by this checklist, you have to do the proper adjustments to the checklist. … … 184 184 == Configuring HelenOS networking == 185 185 186 HelenOS does not support dynamic network configuration (e.g. via DHCP) so far. Thus, you need to configure the IP parameters for HelenOS manually prior to running it in QEMU/KVM. Just go to the ''uspace/srv/net/cfg'' directory in the HelenOS source tree and edit the ''ne2k'' configuration file according to your network parameters (you need to reserve an IP address statically for your HelenOS virtual machine, perhaps by asking your network administration to do so). For example, in my case I have to change the configuration to the following values: 187 188 {{{ 189 IP_ADDR=192.168.254.254 190 IP_NETMASK=255.255.255.0 191 IP_BROADCAST=192.168.254.255 192 IP_GATEWAY=192.168.254.1 193 }}} 194 195 Compile HelenOS for IA-32 in the usual way. 186 HelenOS does not support dynamic network configuration (e.g. via DHCP) so far. Thus, you need to configure the IP parameters for HelenOS manually. After HelenOS boots up, use the `inetcfg` to configure the networking stack. For example: 187 188 {{{ 189 / # inetcfg create 192.168.254.254/24 net/eth1 myaddr 190 / # inetcfg add-sr 0.0.0.0/0 192.168.254.1 default 191 }}} 192 193 See the [wiki:UsersGuide/Networking User's Guide] for more information on how to use networking in HelenOS. 196 194 197 195 == Running HelenOS in QEMU/KVM == 198 196 199 Finally, after all has been successfully configured and HelenOS is compiled, you can run itwith a command line similar to this one:197 Start HelenOS with a command line similar to this one: 200 198 201 199 {{{ … … 213 211 '''Note 2:''' The ''-device ne2k_isa,irq=5,vlan=0'' and ''-net tap'' options are essential for the correct functionality of the networking, you probably should not mess with them. Also please take note that the networking won't currently work in SMP virtual machines (with more than one CPU). 214 212 215 == Starting up networking in HelenOS ==216 217 After HelenOS boots up, just run the following command from ''bdsh'':218 219 {{{220 net221 }}}222 223 You should see some output indicating whether the initialization of the whole networking stack went OK and if it is the case then HelenOS should be ''visible'' on the network.224 225 213 == More Info == 226 214