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

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/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


- LeWaN - 2011-02-05

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

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

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

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

bump


- opdenkamp - 2011-02-10

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

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

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

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

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


- wyild1 - 2011-02-20

Ok lol im wrong! I used a different laptop and was able to boot and it is a 64bit install. Why is that? was that because the server it was made of is 64bit? Anyway to make a 32bit image on a 64bit server?

Cheers!


- opdenkamp - 2011-02-20

nope, not possible (yet).


- wyild1 - 2011-02-20

OK, well is it possible then to create the image in lets say OpenBox running 32bit Ubuntu, and just copy it back over to said server?


- opdenkamp - 2011-02-20

sure. the image can be copied to any server you like. you just can't create an image for another arch yet.


- Terriblez - 2011-02-23

Quote:xbmc@ubuntu:~$ sudo apt-get update
Ign http://ppa.launchpad.net maverick Release.gpg
Ign http://ppa.launchpad.net/lars-odenkamp/xbmc-diskless/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/lars-odenkamp/xbmc-diskless/ubuntu/ maverick/main Translation-en_US
Ign http://ppa.launchpad.net maverick Release.gpg
Ign http://ppa.launchpad.net/lars-opdenkamp/xbmc-diskles/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/lars-opdenkamp/xbmc-diskles/ubuntu/ maverick/main Translation-en_US
Hit http://ppa.launchpad.net maverick Release.gpg
Ign http://ppa.launchpad.net/lars-opdenkamp/xbmc-diskless/ubuntu/ maverick/main Translation-en
Ign http://ppa.launchpad.net/lars-opdenkamp/xbmc-diskless/ubuntu/ maverick/main Translation-en_US
Ign http://ppa.launchpad.net maverick Release
Ign http://ppa.launchpad.net maverick Release
Hit http://ppa.launchpad.net maverick Release
Hit http://us.archive.ubuntu.com maverick Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Ign http://ppa.launchpad.net maverick/main Sources
Ign http://ppa.launchpad.net maverick/main i386 Packages
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_US
Ign http://ppa.launchpad.net maverick/main Sources
Ign http://ppa.launchpad.net maverick/main i386 Packages
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick-updates Release.gpg
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/main Translation-en_US
Ign http://ppa.launchpad.net maverick/main Sources
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/multiverse Translation-en_US
Ign http://ppa.launchpad.net maverick/main i386 Packages
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en
Hit http://ppa.launchpad.net maverick/main Sources
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en
Ign http://us.archive.ubuntu.com/ubuntu/ maverick-updates/universe Translation-en_US
Hit http://us.archive.ubuntu.com maverick Release
Hit http://security.ubuntu.com maverick-security Release.gpg
Hit http://ppa.launchpad.net maverick/main i386 Packages
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en
Ign http://ppa.launchpad.net maverick/main Sources
Ign http://security.ubuntu.com/ubuntu/ maverick-security/main Translation-en_US
Ign http://ppa.launchpad.net maverick/main i386 Packages
Hit http://us.archive.ubuntu.com maverick-updates Release
Err http://ppa.launchpad.net maverick/main Sources
404 Not Found
Err http://ppa.launchpad.net maverick/main i386 Packages
404 Not Found
Err http://ppa.launchpad.net maverick/main Sources
404 Not Found
Hit http://us.archive.ubuntu.com maverick/main Sources
Hit http://us.archive.ubuntu.com maverick/restricted Sources
Hit http://us.archive.ubuntu.com maverick/universe Sources
Hit http://us.archive.ubuntu.com maverick/multiverse Sources
Hit http://us.archive.ubuntu.com maverick/main i386 Packages
Hit http://us.archive.ubuntu.com maverick/restricted i386 Packages
Hit http://us.archive.ubuntu.com maverick/universe i386 Packages
Hit http://us.archive.ubuntu.com maverick/multiverse i386 Packages
Err http://ppa.launchpad.net maverick/main i386 Packages
404 Not Found
Hit http://extras.ubuntu.com maverick Release.gpg
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en
Hit http://us.archive.ubuntu.com maverick-updates/main Sources
Hit http://us.archive.ubuntu.com maverick-updates/restricted Sources
Hit http://us.archive.ubuntu.com maverick-updates/universe Sources
Hit http://us.archive.ubuntu.com maverick-updates/multiverse Sources
Hit http://us.archive.ubuntu.com maverick-updates/main i386 Packages
Hit http://us.archive.ubuntu.com maverick-updates/restricted i386 Packages
Hit http://us.archive.ubuntu.com maverick-updates/universe i386 Packages
Hit http://us.archive.ubuntu.com maverick-updates/multiverse i386 Packages
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/multiverse Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/restricted Translation-en_US
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en
Ign http://security.ubuntu.com/ubuntu/ maverick-security/universe Translation-en_US
Hit http://security.ubuntu.com maverick-security Release
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_US
Hit http://extras.ubuntu.com maverick Release
Hit http://security.ubuntu.com maverick-security/main Sources
Hit http://extras.ubuntu.com maverick/main Sources
Hit http://extras.ubuntu.com maverick/main i386 Packages
Hit http://security.ubuntu.com maverick-security/restricted Sources
Hit http://security.ubuntu.com maverick-security/universe Sources
Hit http://security.ubuntu.com maverick-security/multiverse Sources
Hit http://security.ubuntu.com maverick-security/main i386 Packages
Hit http://security.ubuntu.com maverick-security/restricted i386 Packages
Hit http://security.ubuntu.com maverick-security/universe i386 Packages
Hit http://security.ubuntu.com maverick-security/multiverse i386 Packages
W: Failed to fetch http://ppa.launchpad.net/lars-odenkamp/xbmc-diskless/ubuntu/dists/maverick/main/source/Sources.gz 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/lars-odenkamp/xbmc-diskless/ubuntu/dists/maverick/main/binary-i386/Packages.gz 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/lars-opdenkamp/xbmc-diskles/ubuntu/dists/maverick/main/source/Sources.gz 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/lars-opdenkamp/xbmc-diskles/ubuntu/dists/maverick/main/binary-i386/Packages.gz 404 Not Found

E: Some index files failed to download, they have been ignored, or old ones used instead.

I believe my problem starts here, because it cant download all the files?
and creating an image fails...

Anything i can do to fix it`?