Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previaPróxima revisiónAmbos lados, revisión siguiente |
es:howtos:hardware:arm:qemu_support_in_slackware_arm [2019/09/01 16:24 (UTC)] – [QEMU Permissions] rramp | es:howtos:hardware:arm:qemu_support_in_slackware_arm [2019/09/01 21:03 (UTC)] – [QEMU Network Settings] rramp |
---|
==== Permisos para QEMU ==== | ==== Permisos para QEMU ==== |
| |
There are a few permissions that need to be set once you have successfully installed QEMU on your system. The QEMU client will be launched by running the /usr/bin/qemu-system-arm binary. This binary needs root permissions in order to be executed. You can run this binary with sudo by editing /etc/sudoers. Using sudo is the most secure option if you have multiple users on your system. If you are the only user on your system then setting the setuid permission as root is sufficient. Adjusting these permissions will allow a normal user to configure and boot the QEMU guest without logging in as root. | Hay algunos permisos que deben ser establecidos una vez que haya instalado correctamente QEMU en su sistema. El cliente QEMU se iniciará ejecutando el binario /usr/bin/qemu-system-arm. Este binario necesita permisos de root para ser ejecutado. Puede ejecutar este binario con sudo editando /etc/sudoers. Usar sudo es la opción más segura si tiene varios usuarios en su sistema. Si usted es el único usuario de su sistema, es suficiente con configurar el permiso setuid como root. Ajustar estos permisos permitirá a un usuario normal configurar y arrancar el huésped de QEMU sin tener que iniciar sesión como root. |
| |
Setting the setuid root permission requires that you log in as root. As root execute the following commands: | Para establecer el permiso setuid root es necesario que inicie sesión como root. Como root ejecute los siguientes comandos: |
<code> | <code> |
# chmod +s /usr/bin/qemu-system-arm | # chmod +s /usr/bin/qemu-system-arm |
</code> | </code> |
| |
If you plan to configure QEMU to use a network bridge, you also need to set the setuid root permission for /sbin/ifconfig and /sbin/brctl. | Si planeas configurar QEMU para que use una red puente, vas a necesitar configurar los permisos setuid para /sbin/ifconfig y /sbin/brctl. |
<code> | <code> |
# chmod +s /sbin/{ifconfig,brctl} | # chmod +s /sbin/{ifconfig,brctl} |
</code> | </code> |
| |
==== Create QEMU Disk Image ==== | ==== Crear una imagen de disco para QEMU ==== |
| |
Prior to booting the Slackware ARM installer in QEMU, you must create a disk image that acts as an emulated [[https://en.wikipedia.org/wiki/Secure_Digital | SD Card]]. This disk image is used to emulate the MMC controller in Slackware ARM. Earlier you copied the Slackware ARM helper scripts to /export/armhost/. Within this directory there is a script, **makeimg**. This script creates a 15GB disk image automatically in /export/armhost/ when it is executed. Initially all you need to do is run this script. | Antes de arrancar el instalador de Slackware ARM en QEMU, debe crear una imagen de disco que actúe como una emulación de una [[https://en.wikipedia.org/wiki/Secure_Digital | SD Card]]. |
| Este disco de imagen es usado para emular el controlador MMC en Slackware ARM. |
Switch to the directory where you copied the helper scripts and execute **makeimg**: | Anteriormente copió los scripts de ayuda de Slackware ARM en /export/armhost/. |
| Dentro de este directorio hay un script, ** makeimg **. Este script crea una imagen de disco de 15GB automáticamente en /export/armhost/ cuando se ejecuta. Inicialmente, todo lo que necesita hacer es ejecutar este script. |
| Cambia al directorio donde copiaste los scripts de ayuda y ejecuta **makeimg**: |
| |
<code> | <code> |
</code> | </code> |
| |
For reference, this is the **makeimg** script: | Para referencia, este es el script **makeimg**: |
<code> | <code> |
# Create the QEMU disk image - the emulated SD card. | # Create the QEMU disk image - the emulated SD card. |
</code> | </code> |
| |
<note warning>Be aware that once you have installed Slackware ARM onto this disk image you must move it to a different directory for storage, or you risk it being destroyed when **makeimg** is executed at a later time.</note> | <note warning>Tenga en cuenta que una vez que haya instalado Slackware ARM en esta imagen de disco debe moverlo a un directorio diferente para su almacenamiento, o se arriesga a que se destruya cuando **makeimg** se ejecute en un momento posterior.</note> |
| |
| ===== Configuración de red para QEMU ===== |
| |
===== QEMU Network Settings ===== | Esta sección cubre el proceso de configuración de redes de invitados para QEMU. Dos tipos de procesos son descriptos. |
| //Network Address Translation mode (NAT)// es la primera y la forma recomendada para obtener una red red funcional en los huéspedes de QEMU. |
| La segunda forma es el //modo puente//. |
| El modo NAT no permite el acceso directo a la red física del host x86 Slackware y el modo puente sí. |
| |
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.** |