Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
howtos:hardware:arm:qemu_support_in_slackware_arm [2018/11/30 22:30 (UTC)] – [QEMU NAT Mode Networking] mralk3 | howtos:hardware:arm:qemu_support_in_slackware_arm [2018/11/30 22:53 (UTC)] – [QEMU Bridged Mode Networking] mralk3 |
---|
===== QEMU Network Settings ===== | ===== QEMU Network Settings ===== |
| |
This section covers the process of setting up QEMU guest networking. Two different processes will be described. //Network Address Translation mode (NAT)// is the first and recommended way to get a functional network in QEMU guests. The second is //bridged mode//. NAT mode does not allow direct access to the Slackware x86 host's physical network and bridged mode does. It is best to use bridged mode if you plan on doing any more advanced network operations that require full access to the host and the host's physical network. Most users will want to use NAT mode. | This section covers the process of setting up QEMU guest networking. Two different processes will be described. //Network Address Translation mode (NAT)// is the first and recommended way to get a functional network in QEMU guests. The second is //bridged mode//. NAT mode does not allow direct access to the Slackware x86 host's physical network and bridged mode does. It is best to use bridged mode if you plan on doing any more advanced network operations that require full access to the host and the host's physical network. **Most users will want to use NAT mode.** |
| |
There are many different ways to configure QEMU guest networking. This document will only cover the QEMU functionality required to boot Slackware ARM. Refer to the QEMU man pages or the [[https://www.qemu.org/documentation/ | QEMU documentation]] if you need further explanation. | There are many different ways to configure QEMU guest networking. This document will only cover the QEMU functionality required to boot Slackware ARM. Refer to the QEMU man pages or the [[https://www.qemu.org/documentation/ | QEMU documentation]] if you need further explanation. |
The following network settings are assumed for the **Slackware x86 host machine**. Adjust these values throughout the remainder of this guide if you use different network settings. | The following network settings are assumed for the **Slackware x86 host machine**. Adjust these values throughout the remainder of this guide if you use different network settings. |
<code> | <code> |
Static IP address: 192.168.1.1 | Default Gateway: 192.168.1.1 |
| Static IP address: 192.168.1.2 |
Network Mask: 255.255.255.0 / 192.168.1.0/24 | Network Mask: 255.255.255.0 / 192.168.1.0/24 |
| Name server: 192.168.1.1 |
</code> | </code> |
| |
At this point it is recommended reboot your Slackware x86 host to assure the settings in rc.local are in use and that NetworkManager is completely disabled. | At this point it is recommended reboot your Slackware x86 host to assure the settings in rc.local are in use and that NetworkManager is completely disabled. |
| |
<note important>You may need to edit the /etc/resolv.conf file on the host. Add in the IP addresses of your preferred primary and secondary nameserver(s) since you are not receiving these IP addresses by other means.</note> | <note important>You may need to edit the /etc/resolv.conf file on the host. Add in the IP addresses of your preferred primary and secondary name server(s) since you are not receiving these IP addresses by other means. The name server is 192.168.1.1 (or the default gateway) in this tutorial</note> |
| |
Modify the launcher helper scripts once you are certain your host has the appropriate network settings. Pay close attention to the **$NETTYPE** variable. Details about how to use this variable are documented in both the **installer_launch** and **disk_launch** helper scripts. Edit the **$MACADDR** variable if you are running more than one Slackware ARM guest in QEMU at once. | Modify the launcher helper scripts once you are certain your host has the appropriate network settings. Pay close attention to the **$NETTYPE** variable. Details about how to use this variable are documented in both the **installer_launch** and **disk_launch** helper scripts. Edit the **$MACADDR** variable for each QEMU instance if you are running more than one Slackware ARM guest at once. |
===== Install Slackware ARM ===== | ===== Install Slackware ARM ===== |
| |
The full path of the NFS share is required: | The full path of the NFS share is required: |
<code> | <code> |
Enter the IP address: 192.168.1.1 # br0 or eth0 IP address | Enter the IP address: 192.168.1.2 # Host machine IP address |
Enter the directory: /export/slackwarearm/$SLACKREL/slackware | Enter the directory: /export/slackwarearm/$SLACKREL/slackware |
</code> | </code> |