[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) |
- ivanmacx - 2011-03-19 ...also, here's the relevant output of glxinfo: Code: name of display: :0.0 Client vendor string is showing as Nvidia. Is this the problem? If so, can anyone tell me what to do to change this? UPDATE: Pretty sure it's the Nvidia issue that's the problem because on the client I did an Code: apt-get remove nvidia* and it has solved the problem but broken the xbmc-diskless package. I did this on the client not the server so I am presuming it will break again on reboot, and I don't want to apply this fix to the target because of it breaking the package dependencies. Is there anything I can put in the overlay to stop it using the Nvidia glx client? Thanks. - opdenkamp - 2011-03-20 did you install the drivers in the image? because you can't do that on a running client. changes to anything except /etc and /home/xbmc will be gone after a reboot, so your drivers that are installed to /usr/something are gone then. - ivanmacx - 2011-03-20 When I originally changed the drivers I did it by chrooting into the target on the server, installing the packages and then re-packing and installing the image. With my latest change of removing the nvidia drivers I did that on a running client because I didn't want to permanently break the xbmc-diskless package. I know that the changes will be gone when I reboot so I'm not rebooting! Can you tell me what package or module provides the glx client? I have the feeling this will work if I can get that back from the Nvidia version to the x.org one? I also don't understand why the xbmc live image isn't correctly detecting the Intel graphics chip and using the correct modules. - opdenkamp - 2011-03-20 I think I made the nvidia package a dependency of the xbmc-diskless-client package so it installs automatically. you could customise the debian/control file so it installs the intel package instead. you can find the sources in my sig. - ToKy - 2011-03-27 How can I edit the image that gets loaded every time? Is the only/best way to go about this is to create the provisioning part? I want to load the same image to all my xbmc clients and would like to include all the config files I have already created in my current setup (with disk). So it uses my nvidia onboard card to its full potential and so I can use different themes other than the default one. Currently testing on a Zotac Zbox HD-ID11 w/ 4GB of RAM Thanks for this great setup ;-) - ivanmacx - 2011-03-27 If it's just a case of adding files then you can add them in the target directory on your server which will normally be /var/lib/xbmc-diskless/target and then run Code: sudo xbmc-diskless.sh and choose 'pack' then 'install'. If you need to install packages then you need to chroot into the target directory, install the packages then leave the chroot and pack and install as above. I have two scripts 'xbmcchroot' and 'xbmcumount' to chroot into the target and to unmount the relevant filesystems on leaving the chroot. They look like this: xbmcchroot: Code: #!/bin/bash xbmcumount Code: echo 'unmounting chroot filesystems' So to install packages I do: Code: ./xbmcchroot Select 'pack' then 'install' then you're done. - ToKy - 2011-03-27 Thanks for the prompt reply! I will try this once I've "normalized" my network, got too many things running in multiple places AND i'm about to setup openfiller to help me with disk-space and central sharing. [FIXED] Foxconn NT-330i working! - Wag3Slav3 - 2011-03-29 To get this to work I had to do an install using maverick instead of lucid. Run the script as usual, after it fails giving a goofy error about a repository go into the target dir. Modify this file /target/usr/share/initramfs-tools/hooks/xbmc_diskless change this line copy_exec /usr/sbin/ethtool /sbin to read copy_exec /sbin/ethtool /sbin Then run the upgrade step, it should repair the initramfs. You now have a working image with maverick, with has a working atl1c.ko module for the Foxconn NT-330i! dushmaniac: You might want to make a change to your xbmc_diskless package to verify the location of ethtool for that hook. static Wrote:I have a Foxconn NT-330i flashed with the latest BIOS. I followed your instructions on the first page and I end up with a kernel panic: - opdenkamp - 2011-03-29 I'll fix it as soon as I got time. You could also send me a pull request for this on github. thanks - Wag3Slav3 - 2011-03-30 If your changes are all within the /home/xbmc or /etc/ directories what I would suggest you do is set up one the way you want it, then compress the /overlay/[macaddress] folder into the default.tgz provision file. Anything else that needs to be done you would have to do under the chroot /target/ folder and re-squash the image. The changes made to the /target/ files will not be client specific, they will be made to all. Only the changes to /overlay/ are client specific. I don't think there is anything you can do for the nvidia card outside of the newest drivers and some /etc/X11/ config file tweaks so you'd be covered by the provisioning. ToKy Wrote:How can I edit the image that gets loaded every time? - ToKy - 2011-03-31 So, I created a new VBox and installed Maverick, installed the diskless-xbmc package, everything seemed fine... BUT its not populating the /var/lib/tftpboot path. Its leaving the initrd and the vmlinuz files there instead of xbmc-netboot and its not creating the pxeboot file either.. This is the content of /var/lib/tftpboot : Code: toky@xbmcMaster:/var/lib/tftpboot$ ls I've removed the diskless package and reinstalled it but I keep getting the same output...not enough files. #####Update##### I thought I had found the problem, most of the entries in /etc/default/xbmc-diskless-server.conf but it didn't make a difference after uncommenting them. Ideas? - opdenkamp - 2011-03-31 what's the output of "xbmc-diskless.sh check"? are you using a 64 bit server? I know others had problems with this too and posted the solution in this thread. Just can't find it now - ToKy - 2011-03-31 Everything seems fine when I run the check. System is not x64. I saw messages about vmlinuz and initrd files being 1directory higher and that was the case for me too but I don't remember reading about the pxeboot directory not being created at all. - MegaX - 2011-04-01 Hello Sorry for my english, its not so good. I install xbmc-diskless-server on Ubuntu 10.04 and create an image by select lucid, xbmc-pvr (ppa: opdenkamp), no packages and password. Then follow ivanmacx instruction to install my ATI HD4200 (driver is fglrx 8.732): ivanmacx Wrote:... At next I pack and install my image, boot from network and xbmc starts. Then I go to System Info and see HD 4200 and OpenGL is installed. When reboot xbmc a get an error message: "XBMC needs hardware accelerated OpenGL rendering. Install an appropirate graphic driver" My xorg.conf: Code: Section "ServerLayout" I dont no what I must do and hope anyone can help me that my ATI HD4200 works in xbmc-diskless. - opdenkamp - 2011-04-01 @ToKy think the pxe stuff is part of the syslinux package. not entirely sure and I can't check it right now. try installing that package. @MegaX try removing the nvidia-glx package(s). |