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

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
vikjon0 Offline
---
Posts: 2,429
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #11
if you decide to include it, I have now created a auto config of dnsmasq (well, stole most of the code of course)

http://ubuntuforums.org/showpost.php?p=1...ostcount=3

Needs run on start as root..not sure how to do that.
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 1,942
Joined: Feb 2009
Reputation: 24
Location: Heerlen, The Netherlands
Post: #12
I'll look into it before the next release. thanks for the info Smile

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
Anastrophe Offline
Donor
Posts: 236
Joined: Mar 2004
Reputation: 0
Location: Dubai, UAE
Post: #13
Amazing stuff, thanks so much for working on this!
find quote
Anastrophe Offline
Donor
Posts: 236
Joined: Mar 2004
Reputation: 0
Location: Dubai, UAE
Post: #14
are there any log files to check as I get to 25% of compressing image and it stays there for >24hrs?

no PPA selected if that helps
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 1,942
Joined: Feb 2009
Reputation: 24
Location: Heerlen, The Netherlands
Post: #15
you can check a log of the installation in /var/log/xbmc-diskless.log for a complete installation log. the "mksquashfs" itself isn't logged.

if you want to see what the compression does, execute this:
Code:
rm -f /var/lib/xbmc-diskless/images/xbmc.img-new
mksquashfs /var/lib/xbmc-diskless/target /var/lib/xbmc-diskless/images/xbmc.img-new -e cdrom -no-recovery

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
Anastrophe Offline
Donor
Posts: 236
Joined: Mar 2004
Reputation: 0
Location: Dubai, UAE
Post: #16
strange, it get to about 2% and then has hundreds on no file found errors. When I run the script again and choose official PPA it takes me straight back to the main menu, the PVR PPA seems to work though (spoke too soon as after entering additional pacakes and xbmc password screen it downloads something for about 10secs and then bck to main screen again)

The log contains lots of permission errors:
Quote:/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/usb_storage/sections/.bss': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/usb_storage/sections/.symtab': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/usb_storage/sections/.strtab': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/usb_storage/notes/.note.gnu.build-id': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/usb_storage/drivers/usb:usb-storage': Operation not permitted
/bin/rm: cannot remove directory `/var/lib/xbmc-diskless/target/sys/module/jfs/holders': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/srcversion': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/initstate': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/refcnt': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.note.gnu.build-id': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.text': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.exit.text': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.altinstr_replacement': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.init.text': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.rodata': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.altinstructions': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.rodata.str1.1': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.rodata.str1.4': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.smp_locks': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.parainstructions': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/__bug_table': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/__param': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/__mcount_loc': Operation not permitted
/bin/rm: cannot remove `/var/lib/xbmc-diskless/target/sys/module/jfs/sections/.data': Operation not permitted
(This post was last modified: 2010-10-28 19:10 by Anastrophe.)
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 1,942
Joined: Feb 2009
Reputation: 24
Location: Heerlen, The Netherlands
Post: #17
hmm strange, I'll look into that. think the process aborted somewhere while running and didn't umount properly.

could you pastebin the log up till the errors please?

before trying again, do this:
Code:
sudo umount /var/lib/xbmc-diskless/target/sys
sudo umount /var/lib/xbmc-diskless/target/proc
sudo umount /var/lib/xbmc-diskless/target/dev
sudo rm -rf /var/lib/xbmc-diskless/target

thanks for reporting this issue.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
(This post was last modified: 2010-10-28 23:38 by opdenkamp.)
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 1,942
Joined: Feb 2009
Reputation: 24
Location: Heerlen, The Netherlands
Post: #18
found a bug that prevents /target/dev from umounting sometimes. I'll add some more checks in the next version.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 1,942
Joined: Feb 2009
Reputation: 24
Location: Heerlen, The Netherlands
Post: #19
a new version has been published

fixes:
  • added some more checks
  • improved error handling
  • improved logging
  • the "installation gauge" is more precise now
  • fixed mount checks
  • limit rm with --one-filesystem so /dev can't be removed accidently
  • some cleanups

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 1,942
Joined: Feb 2009
Reputation: 24
Location: Heerlen, The Netherlands
Post: #20
@Anastrophe:
please try again with this package and pastebin the log if it still fails.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
Post Reply