http://www.reddit.com/r/litecoinmining/comments/1qjnya/boot_your_miners_via_pxe_quick_step_by_step_howto/
But they're creating a blank debian distro and it's not quite working as I want it to.
What I"m trying to do is to copy the contents of the litecoin bamt image to the /miners/2/ folder by mounting the litecoin image:
mount -o loop,offset=682698240 litecoinbamt_r9_1.6.2.img /mnt/bamt
cp -ax /mnt/bamt/bamt/ /miners/2/
then using the settings in the tutorial to boot. But rig seems to hang upon booting.
If i just follow the tutorial i get into a command prompt but can't seem to get a desktop environment working or properly installing cgminer, that's why I just want to use the bamt settings..
Anyone have any success?
[edit]
This is what I've done, straight from the above linked tutorial:
Configure the network to have a static ip:
vim /etc/network/interfaces :
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 8.8.8.8
mkdir -p /srv/tftp/pxelinux.cfg
cp /usr/lib/syslinux/pxelinux.0 /srv/tftp/
cp /boot/initrd.img-3.2.0-4-amd64 /srv/tftp/
cp /boot/vmlinuz-3.2.0-4-amd64 /srv/tftp/
vim /srv/tftp/pxelinux.cfg/default :
DEFAULT vmlinuz-3.2.0-4-amd64 root=/dev/nfs initrd=initrd.img-3.2.0-4-amd64 nfsroot=192.168.1.200:/miners/default ip=dhcp rw
allow booting;
allow bootp;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.150;
option broadcast-address 192.168.2.255;
option routers 192.168.1.1;
option domain-name-servers 8.8.8.8;
filename "/pxelinux.0";
}
host miner1 {
hardware ethernet 60:a4:4c:61:55:9f;
fixed-address 192.168.1.101;
}
host miner2 {
hardware ethernet 60:a4:4c:61:53:ee;
fixed-address 192.168.1.102;
}
# more miner hosts comes here
vim /etc/hosts :
192.168.1.101 miner1 # 60:a4:4c:61:55:9f
192.168.1.102 miner2 # 60:a4:4c:61:53:ee
vim /etc/exports :
/miners/1 192.168.1.101(rw,no_root_squash,async,insecure,no_subtree_check)
/miners/2 192.168.1.102(rw,no_root_squash,async,insecure,no_subtree_check)
Please note that the config file always starts with 01- then comes the MAC address
echo DEFAULT vmlinuz-3.2.0-4-amd64 root=/dev/nfs initrd=initrd.img-3.2.0-4-amd64 nfsroot=192.168.1.200:/miners/1 ip=dhcp rw > /srv/tftp/pxelinux.cfg/01-60-a4-4c-61-55-9f
echo DEFAULT vmlinuz-3.2.0-4-amd64 root=/dev/nfs initrd=initrd.img-3.2.0-4-amd64 nfsroot=192.168.1.200:/miners/2 ip=dhcp rw > /srv/tftp/pxelinux.cfg/01-60-a4-4c-61-53-ee
service isc-dhcp-server restart
service nfs-kernel-server restart
we create the bootable linux into the nfs share
debootstrap --arch amd64 wheezy /miners/1/ http://ftp.de.debian.org/debian/ is what it says in the turotiral, i use i368 as --arch
vim /miners/1/etc/fstab :
/proc /proc proc defaults 0 0
/sys /sys sysfs defaults 0 0
chroot /miners/1/
mount /proc
passwd
apt-get install vim linux-image-3.2.0-4-amd64 openssh-server is what it says in the tutorial, i use linux-image-3.2.0-4-686-pae
now we boot miner1 from pxe and hopfully we get a prompt and we can ssh to the box from the pxe server:
ssh 192.168.1.101