On Jun 13, 2012 09:59 "Rick Miles" <frmr...@aapt.net.au> wrote:
> On Tue, 2012-06-12 at 14:40 +1000, Rick Miles wrote: > > > > Qemu-install.txt just says > > Choose '3 - Install from NFS (Network Filesystem)' > > > I plan on eventually running this on a raspberrypi :<) > > Cheers > > Hi, > the Qemu-install.txt is quite old and you may save yourself some > headaches by using VDE. > see: > alien.slackbook.org/dokuwiki/doku.php?id=slackware:vde > This is how I Installed armed slack on qemu. > compile and install vde > use a script like this to set up networking: (As root) > > #!/bin/bash > modprobe tun > echo "1" > /proc/sys/net/ipv4/ip_forward > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE > vde_switch -tap tap0 -daemon > chmod -R a+rwx /var/run/vde.ctl > ifconfig tap0 192.168.2.1 broadcast 192.168.2.255 netmask > 255.255.255.0 > > This give me a subnet 192.168.2.?? for virtual machines, My router is > 192.168.0.1 and my host machine is on 192.168.0.3. here is the host > routing table after executing the above script (man route) > > Destination Gateway Genmask Flags Metric Ref Use Iface > 192.168.2.0 * 255.255.255.0 U 0 0 0 tap0 > localnet * 255.255.255.0 U 0 0 0 eth0 > loopback * 255.0.0.0 U 0 0 0 lo > default 192.168.0.1 0.0.0.0 UG 1 0 0 eth0 > > To install armedslack on qemu I do this: > make a directory for your VM, and in that directory make some subdirs, > HardDrive, CDROM, Images. > create a raw disk image in HardDrive using dd. > copy needed initrd's to images and create an iso of the armedslack > distro with mkisofs (no need to be bootable). > then run an install script like this one: > > #!/bin/bash > # install armed slack > qemu-system-arm -M versatilepb -m 256 -kernel Images/zImage-versatile > -hda HardDrive/harddisk.img -cdrom CDROM/armedslack.iso -initrd > Images/initrd-versatile.img -append "root=/dev/ram rw" > > Now sit back and install, the installer will find the cdrom and > install the packages from it. > to run the installed VM use a script like this one.( adjusting per > your needs :)) > > #!/bin/bash > # Start armed slack > qemu-system-arm -M versatilepb -m 256 -net vde,vlan=0 -net > nic,vlan=0,macaddr=52:54:41:53:13:37 -kernel Images/zImage-versatile > -hda HardDrive/harddisk.img -cdrom CDROM/armedslack.iso -localtime > -usb -no-reboot -initrd Images/initrd-versatile.gz -append > "root=/dev/sda2 rootfs=ext4" > > After configuring the network with netconf ( I like static ips for my > VM's ) the VM's routing table looks like this: > > ___________________________________ > Destination Gateway Genmask Flags Metric Ref Use Iface > localnet * 255.255.255.0 U 0 0 0 eth0 > loopback * 255.0.0.0 U 0 0 0 lo > default 192.168.2.1 0.0.0.0 UG 1 0 0 eth0 > > Good luck getting it to work on a slackberry pi, I have done just > that. you will need to compile a stock Raspberry pi kernel, (good luck > on back porting 2.6.37 to broadcom chip, would be cool though, let me > know if you do.) > get your .config from a running kernel, arch is good. > copy your /root from qemu to your sd card (boot needs to be empty) > linux partion and your uncompresseed kernel to the boot vfat partion > as kernel.img, don't forget to copy the kernel modules to /lib/module, > edit your fstab and cmdline.txt, phew! reboot and voila! > > Minor niggles: ntpd wont set the clock, however ntpdate will, you go > figure? rootfs always loads as rw, perhaps a quirk of the pi boot > loader? > if you need alpha audio modprobe snd-bbcm2835 > X will require building xf86-video-fbdev, and you will need to get an > xorg.conf from a running pi. > > all the best. > Stanley > > > I hope that helps > ARMedslack mailing list > <ARMedslack@lists.armedslack.org> > <http://lists.armedslack.org/mailman/listinfo/armedslack> >
_______________________________________________ ARMedslack mailing list ARMedslack@lists.armedslack.org http://lists.armedslack.org/mailman/listinfo/armedslack