Re: [Ltsp-discuss] ubuntu 12.04 ltsp-pnp nbd problem

2012-06-14 Thread Peter D Knight
Thanks Jan
nbd server is runing fine. Removed the line from inetd.conf
I wanted to try and mount the image
root@peter:/etc/nbd-server/conf.d# nbd-client 127.0.0.1 2000 /dev/nbd0
Negotiation: ..size = 240MB
bs=1024, sz=251707392 bytes
So /dev/nbd0 is fine on the server
What file type is it
mount /dev/nbd0 /ltsp
gives wrong file type
Trying to find the mount statement in initramfs. would like to find that on
the server would make lfe easier
Peter

On Wed, Jun 13, 2012 at 10:52 AM, Jan Middelkoop wrote:

>  Hi Peter,
>
> As of 12.04, LTSP in Ubuntu no longer uses /etc/inetd.conf for serving NBD
> mounts.  I'd suggest removing that line.
>
> Also interesting that your /etc/nbd-server/conf.d/ltsp_i386.conf is
> different than mine.  For me the section is called [ltsp_i386] and for you
> it's [/opt/ltsp/i386].  I wonder why that is.
>
> I think you would get a different error if NBD wasn't running at all, but
> it wouldn't hurt to verify that it is.  Type 'pidof nbd-server' in a
> terminal on the server.  If that returns numbers, nbd-server is running.
> If it returns nothing, you can 'sudo service nbd-server start' to start it.
>
> Kindest regards,
>
> Jan Middelkoop
> Recreatie en Zorg Groep B.V.
>
> --
> Website: http://www.recreatie-zorg.nl/
> E-mail: j...@recreatie-zorg.nl
> Telephone: +31 10 714 22 97
>
>
> Op 13-06-12 10:27, Peter D Knight schreef:
>
> client boots into initramfs
> dmesg shows
> unable to read squash super block
>
>  added this to /etc/inetd.conf
>
>  2000stream  tcpnowait  nobody /usr/sbin/tcpd /usr/sbin/nbdrootd
> /opt/ltsp/images/i386.img
>
>  nbd-serve/ltsp_i386.conf   looks good
>  [/opt/ltsp/i386]
> exportname = /opt/ltsp/images/i386.img
> readonly = true
>  Help appreciated
> Peter
>
>  --
> Peter D Knight
> 22 Westfort Rd
> Houtbay
> 7806
> +27(21)7903579
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>   https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
>


-- 
Peter D Knight
22 Westfort Rd
Houtbay
7806
+27(21)7903579
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] ubuntu 12.04 ltsp-pnp nbd problem

2012-06-14 Thread Alkis Georgopoulos
Στις 13/06/2012 11:27 πμ, ο/η Peter D Knight έγραψε:
> client boots into initramfs
> dmesg shows
> unable to read squash super block
>
> added this to /etc/inetd.conf
>
> 2000stream  tcpnowait  nobody /usr/sbin/tcpd /usr/sbin/nbdrootd
> /opt/ltsp/images/i386.img

Remove it, in 12.04 nbd-server is ran as a service instead of from 
openbsd-inetd, and listens in the IANA-assigned port 10809.

Send the output of:
  * cat /proc/cmdline, from the client initramfs
  * cat /var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default, from the server

If you have an /opt/ltsp/i386 chroot from a non ltsp-pnp setup, move it 
to another place, e.g.
   sudo mv /opt/ltsp/i386 /opt/ltsp/i386.older
and run:
   sudo ltsp-update-kernels

because otherwise ltsp-update-kernels copies the older
/opt/ltsp/i386/boot/pxelinux.cfg/default to the TFTP directory,
instead of extracting the correct one from
/opt/ltsp/images/i386.img[loop-mounted]/boot/pxelinux.cfg.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] ubuntu 12.04 ltsp-pnp nbd problem

2012-06-13 Thread Peter D Knight
More info
root@peter:/home/pdk# mount -t squashfs /dev/nbd0 /ltsp
mount: block device /dev/nbd0 is write-protected, mounting read-only
mount: /dev/nbd0: can't read superblock
This maybe the problem
How to solve it
Peter

On Wed, Jun 13, 2012 at 10:52 AM, Jan Middelkoop wrote:

>  Hi Peter,
>
> As of 12.04, LTSP in Ubuntu no longer uses /etc/inetd.conf for serving NBD
> mounts.  I'd suggest removing that line.
>
> Also interesting that your /etc/nbd-server/conf.d/ltsp_i386.conf is
> different than mine.  For me the section is called [ltsp_i386] and for you
> it's [/opt/ltsp/i386].  I wonder why that is.
>
> I think you would get a different error if NBD wasn't running at all, but
> it wouldn't hurt to verify that it is.  Type 'pidof nbd-server' in a
> terminal on the server.  If that returns numbers, nbd-server is running.
> If it returns nothing, you can 'sudo service nbd-server start' to start it.
>
> Kindest regards,
>
> Jan Middelkoop
> Recreatie en Zorg Groep B.V.
>
> --
> Website: http://www.recreatie-zorg.nl/
> E-mail: j...@recreatie-zorg.nl
> Telephone: +31 10 714 22 97
>
>
> Op 13-06-12 10:27, Peter D Knight schreef:
>
> client boots into initramfs
> dmesg shows
> unable to read squash super block
>
>  added this to /etc/inetd.conf
>
>  2000stream  tcpnowait  nobody /usr/sbin/tcpd /usr/sbin/nbdrootd
> /opt/ltsp/images/i386.img
>
>  nbd-serve/ltsp_i386.conf   looks good
>  [/opt/ltsp/i386]
> exportname = /opt/ltsp/images/i386.img
> readonly = true
>  Help appreciated
> Peter
>
>  --
> Peter D Knight
> 22 Westfort Rd
> Houtbay
> 7806
> +27(21)7903579
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>   https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
>
>
> --
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _
> Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
>  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
> For additional LTSP help,   try #ltsp channel on irc.freenode.net
>
>


-- 
Peter D Knight
22 Westfort Rd
Houtbay
7806
+27(21)7903579
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] ubuntu 12.04 ltsp-pnp nbd problem

2012-06-13 Thread Alkis Georgopoulos
Στις 13/06/2012 11:52 πμ, ο/η Jan Middelkoop έγραψε:
>
> Also interesting that your /etc/nbd-server/conf.d/ltsp_i386.conf is
> different than mine.  For me the section is called [ltsp_i386] and for
> you it's [/opt/ltsp/i386].  I wonder why that is.


I added that part in upstream LTSP after 12.04 was released.
The reasoning was that it's now possible to control the NBD path from 
the DHCP root-path option, same as it always was with NFS.

So now one can e.g. create an additional chroot in 
/opt/ltsp/i386-nvidia-clients and control with DHCP which clients get 
that instead of plain i386, with no other configuration changes at all.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net


Re: [Ltsp-discuss] ubuntu 12.04 ltsp-pnp nbd problem

2012-06-13 Thread Jan Middelkoop

Hi Peter,

As of 12.04, LTSP in Ubuntu no longer uses /etc/inetd.conf for serving 
NBD mounts.  I'd suggest removing that line.


Also interesting that your /etc/nbd-server/conf.d/ltsp_i386.conf is 
different than mine.  For me the section is called [ltsp_i386] and for 
you it's [/opt/ltsp/i386].  I wonder why that is.


I think you would get a different error if NBD wasn't running at all, 
but it wouldn't hurt to verify that it is.  Type 'pidof nbd-server' in a 
terminal on the server.  If that returns numbers, nbd-server is 
running.  If it returns nothing, you can 'sudo service nbd-server start' 
to start it.


Kindest regards,

Jan Middelkoop
Recreatie en Zorg Groep B.V.

--
Website: http://www.recreatie-zorg.nl/
E-mail: j...@recreatie-zorg.nl
Telephone: +31 10 714 22 97


Op 13-06-12 10:27, Peter D Knight schreef:

client boots into initramfs
dmesg shows
unable to read squash super block

added this to /etc/inetd.conf

2000stream  tcpnowait  nobody /usr/sbin/tcpd 
/usr/sbin/nbdrootd /opt/ltsp/images/i386.img


nbd-serve/ltsp_i386.conf   looks good
[/opt/ltsp/i386]
exportname = /opt/ltsp/images/i386.img
readonly = true
Help appreciated
Peter

--
Peter D Knight
22 Westfort Rd
Houtbay
7806
+27(21)7903579


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
   https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
  https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net