Using Alpine Linux on QEMU

Eric Semeniuc

September 13, 2019

  1. Get QEMU

    sudo pacman -S qemu
    
  2. Get Alpine Linux

    wget http://dl-cdn.alpinelinux.org/alpine/v3.10/releases/x86_64/alpine-standard-3.10.2-x86_64.iso
    
  3. Run QEMU

    qemu-system-x86_64 -boot d -cdrom alpine-standard-3.10.2-x86_64.iso -m 512 -enable-kvm -nic user,ipv6=off
    

    Flags: -boot d: boot from CDROM -cdrom: load iso image -m 512: allocate 512MB RAM -enable-kvm: speeds up emulation on Linux hosts -nic user,ipv6=off: uses the “user” network interface, disables ipv6

  4. Enable the network adapter

    ifconfig eth0 up
    udhcpc
    
  5. Test network connection

    nslookup google.com
    

    Note: ICMP ping doesn’t work in QEMU

Alpine QEMU screenshot