XBMC Community Forum
[LINUX] HOW-TO create a XBMC server for diskless PXE network booting clients - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Announcements, Info, and General Discussion (/forumdisplay.php?fid=85)
+--- Forum: Tips, tricks, and step by step guides (/forumdisplay.php?fid=110)
+--- Thread: [LINUX] HOW-TO create a XBMC server for diskless PXE network booting clients (/showthread.php?tid=83840)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25


- LeWaN - 2011-02-05 20:24

dushmaniac Wrote:there's no easy way to do that with the scripts I provide.

Too bad!

I run this script.

Code:
sudo mount -o bind /dev /var/lib/xbmc-diskless/target/dev
sudo mount -t proc none /var/lib/xbmc-diskless/target/proc
sudo mount -t sysfs none /var/lib/xbmc-diskless/target/sys
sudo mount -t devpts none /var/lib/xbmc-diskless/target/dev/pts
sudo cat << EOF > /var/lib/xbmc-diskless/target/usr/sbin/policy-rc.d
#!/bin/sh
exit 101
EOF
sudo chmod +x /var/lib/xbmc-diskless/target/usr/sbin/policy-rc.d
sudo chroot /var/lib/xbmc-diskless/target

Then I run: apt-get install xorg gdm gnome-core

apt-get wants to delete xbmc-diskless-client

Code:
Removing xbmc-diskless-client ...
No diversion `diversion of /usr/bin/update-notifier by xbmc-diskless', none removed
No diversion `diversion of /usr/bin/nm-applet by xbmc-diskless', none removed
update-rc.d: /etc/init.d/ltsp-client-core: file does not exist
dpkg: error processing xbmc-diskless-client (--remove):
subprocess installed post-removal script returned error exit status 1
Processing triggers for ureadahead ...
Errors were encountered while processing:
xbmc-diskless-client
E: Sub-process /usr/bin/dpkg returned an error code (1)


Can I delete xbmc-diskless-client or must it be there? How to remove if I can..?

Or how do I get the gnome desktop with wine, firefox, spotify and all necessary.


- opdenkamp - 2011-02-06 04:20

if you delete the xbmc-diskless-client, your client won't boot anymore (as diskless client) because it'll delete the initramfs script needed to boot.

if you want to run a full ubuntu client instead of just xbmc, you should be using ltsp or something like that, not this package.


- LeWaN - 2011-02-06 15:44

dushmaniac Wrote:if you delete the xbmc-diskless-client, your client won't boot anymore (as diskless client) because it'll delete the initramfs script needed to boot.

if you want to run a full ubuntu client instead of just xbmc, you should be using ltsp or something like that, not this package.


I can google it ..
Thanks!

Good stuff otherwise, shame is not enough for me. Smile


- spartan711 - 2011-02-07 04:33

I was researching on how to do this with Windows, and it turns out you can boot a windows 7 image using iSCSI? I have experience using nlite/vlite and I think this would be the perfect solution for me (netflix, bitstreaming, etc using ATI hardware). I don't have experience with iSCSI however. Can anyone knowledgeable point me to a good resource? Is there any special hardware required, besides a server?
http://www.thogan.com/site2/archives/10


- spartan711 - 2011-02-10 03:38

bump


- opdenkamp - 2011-02-10 09:55

no special hardware requirements, except for the clients that need network card / bios that supports pxe.

there are lots of manuals around for windows and iscsi. just google it.


- wyild1 - 2011-02-19 21:22

Morning

I seem to be having an issue. I am using a DD-WRT router as the DHCP server and I believe it is working correctly, but when i boot I just get a file not found after the DHCP request. I was digging around trying to figure it out and i saw in your checklist to check a file /var/lib/tftpboot/pxelinux.cfg/default but that file isnt on my system

Code:
root@BITCHTITS:/var/lib/xbmc-diskless# cat /var/lib/tftpboot/pxelinux.cfg/default
cat: /var/lib/tftpboot/pxelinux.cfg/default: No such file or directory
root@BITCHTITS:/var/lib/tftpboot# ls -la /var/lib/tftpboot/
total 13948
drwxr-xr-x  4 root root     4096 2011-02-19 01:04 .
drwxr-xr-x 75 root root     4096 2011-02-18 12:14 ..
-rw-r--r--  1 root root 10203243 2011-02-19 12:47 initrd.img
drwxr-xr-x  2 root root     4096 2010-04-26 02:55 ltsp
-rw-r--r--  1 root root  4037888 2011-02-19 12:47 vmlinuz
drwxr-xr-x  2 root root     4096 2011-02-18 12:14 xbmc-netboot

I can see the tftp service is running:

Code:
root@BITCHTITS:/var/lib/xbmc-diskless# ps waux | grep tftp
root      5833  0.0  0.0  14796   332 ?        Ss   Feb18   0:00 /usr/sbin/in.tftpd --listen --user tftp --address 0.0.0.0:69 --secure /var/lib/tftpboot
root     24890  0.0  0.0   7432   912 pts/8    S+   13:11   0:00 grep tftp

And i dont see a pxelinux.cfg anywhere on my system
Code:
root@BITCHTITS:/var/lib/tftpboot# updatedb
root@BITCHTITS:/var/lib/tftpboot# locate pxelinux
/usr/lib/syslinux/pxelinux.0
/usr/share/doc/syslinux/pxelinux.txt.gz
/var/lib/xbmc-diskless/target/usr/lib/syslinux/pxelinux.0
/var/lib/xbmc-diskless/target/usr/share/doc/syslinux/pxelinux.txt.gz

Any suggestions?

Cheers!


- opdenkamp - 2011-02-19 21:56

create a directory /var/lib/tftpboot/pxelinux.cfg and create a file "default" in that dir.

put this in the file:
Code:
DEFAULT vmlinuz ro initrd=initrd.img nbdroot=x.x.x.x nbdport=2000 xbmcdir=nfs=x.x.x.x:/var/lib/xbmc-diskless/overlay xbmc=autostart quiet splash
replace x.x.x.x by your server's ip


- wyild1 - 2011-02-19 22:14

Cheers mang. That worked. Sooo its a x64 install? I thought it would have been 32bit. Was testing on my eeepc and it wouldnt boot because its a x64 version and that CPU is not.

Anyway to do a 32 bit? All i did was type lucid in the install distro thingy


- wyild1 - 2011-02-19 22:17

Hmmm ok maybe i understand a bit more. The pxelinux file is x64 because the server is x64. So how/where can i get a different pxelinux.0. I didnt see any created when i made the image