############################################################## # Script: installer_launch # Purpose: Boot the Slackware ARM installer inside QEMU # Author: Stuart Winter # Date: 30-Nov-2013 # Version: 1.02 ############################################################## # If you want a VNC server instead of displaying to your # vconsole/X, uncomment this - but note that the setting below # offers no security - not even a password! # #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Linux 3.12.x does not have a graphics driver for the emulated # graphics chip, so you cannot use VNC. #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # #VISUALOUTPUT="-vnc :1" ## Uncomment this if you want a VNC Server # # If you'd like to output the boot process to your terminal window # on the host machine, uncomment the two lines below: VISUALOUTPUT="-nographic" KAPPEND="console=ttyAMA0,115200n8" # Select your keyboard - this gets overridden by the OS when you # choose your keymap, so it's not prudent to change it unless you # have a non-standard keyboard such as a Mac (according to qemu(1)). # If you're using the installer as a rescue environment, it may also # be worth setting your keyboard. # # The best advise is that if you find that your keyboard is going # crazy in QEMU, please set it to one in the list below ;-) # # The available keyboard options are: # # ar de-ch es fo fr-ca hu ja mk no pt-br sv # da en-gb et fr fr-ch is lt nl pl ru th # de en-us fi fr-be hr it lv nl-be pt sl tr # KEYBOARD="en-gb" # Load the 'tunnel' interface module: modprobe tun # Start the system using NAT through your localhost: # # * Note: with the NAT option, you will not get a response from a ping # request inside the guest OS. * # qemu-system-arm $VISUALOUTPUT \ -m 1024 \ -M vexpress-a9 \ -k $KEYBOARD \ -net nic,vlan=0 \ -net user,vlan=0,restrict=n \ -localtime \ -no-reboot \ -sd sdcard.img \ -initrd initrd-armv7.img \ -kernel zImage-armv7 \ -dtb dtb/vexpress-v2p-ca9.dtb \ -append "TERM=xterm-256color vmalloc=256MB $KAPPEND nofont nic=auto:eth0:dhcp root=/dev/ram rw" # If you don't want to use DHCP, you should use this line instead of # the one above. # -append "vmalloc=256MB $KAPPEND nofont nodhcp root=/dev/ram rw" \ # Play notes: # n -net nic ,macaddr=52:54:00:12:34:57 # -redir tcp:22::2222 \ # EOF