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


- wyild1 - 2011-02-20 02:11

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 04:39

nope, not possible (yet).


- wyild1 - 2011-02-20 04:46

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 04:51

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 23:31

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`?


- opdenkamp - 2011-02-23 23:49

you made a typo. it's lars-opdenkamp, not lars-odenkamp


- Terriblez - 2011-02-24 10:02

Frown failed copy/paste
tnx Smile


- HeinrichHarrer - 2011-02-26 00:17

dushmaniac Wrote: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

At the moment I have installed xbmc-diskless-server package and configured Ubuntu's dhcp server as described in this thread. After copying the files (pxelinux.0, initrd.img and vmlinuz), I tried to boot my asrock 330 from LAN. At the start up sequence it tries to load several files, including pxelinux.cfg/default, but gives the following error message:

Quote: Unable to locate configuration file

Having read some of the posts, I checked whether /var/lib/tftpboot/pxelinux.cfg/default had been created properly, which is the case.

What can I do to fix this? Confused


- ToKy - 2011-03-03 15:05

Thanks for putting time in getting this done.

I'm having some problems running this script, (/bin/grep: /var/lib/xbmc-diskless/target/etc/apt/sources.list.d/*: No such file or directory) I'll look at the code later, just some suggestions for now:

1. you should allow users to point to a pre-downloaded iso
2. should provide paths of where stuff is being placed


- opdenkamp - 2011-03-03 15:15

I haven't spent time on this lately (pvr development is taking most of my time).

@HeinrichHarrer:
sounds like pxelinux.0 is loaded but it can't find it's config files. the pxelinux.cfg directory has to be in the same directory as pxelinux.0 if you're using the suggested configuration.

@ToKy:
the script isn't checking for return codes properly at some places. something probably went wrong when the ppa entries were added to sources.list
1) what do you mean by pre-downloaded image? a prebuilt squashfs image? in that case you shouldn't be using the first three options ("create", "pack" or "upgrade").
2) you can change the paths in the config files. not sure if I documented that, but there's a default config in /etc/default/xbmc-diskless.conf that will be overridden by /etc/xbmc-diskless.conf if it's present. you can configure all paths there.