PDA

View Full Version : Problem with NFS after PXE booting (Connection refused)


impossibilechecisiaquesto
September 11th, 2008, 06:21 AM
Hi, i fixed my problem with pxe and tftp.

Now when i boot my client i load the startup logo and with ctrl+alt+f1
i have many time
Error: Connect: Connection refused
then i have


mount:Mounting /rofs of /root/rofs failed: invalid argument
/init/init:14 cannot create /root/etc/resolvconf: Directory Nonexisten
/init/init:14 cannot create /root/etc/resolvconf: Directory Nonexisten
mount/ Mounting /root/dev on /dev/.static/dev failed : No such file or directory
mount/ Mounting /sys on /root/sys failed : No such file or directory
mount/ Mounting /proc on /root/proc : No such file or directory
Target filesystem doesn't have /sbin/init


My /etc/exports is


/home/massabuntu/MULTIMEDIA/ 192.168.0.0/24(rw,no_subtree_check)
/opt/ltsp/ 192.168.0.0/24(rw,no_subtree_check)

/var/cache/mythbuntu-diskless/overlay/ 192.168.0.0/24(rw,no_root_squash,async,no_subtree_check)


I have two network cards, one connected on the web and have a esternal dhcp and my ip is 21.244.123.206 .
The other card is connected witch the switch where are connected the clients and i have a static ip 192.168.0.1.

I saw that mythbuntu auto configure my /etc/ltsp/dhcp.conf assuming my ip was 21.244.123.206 and i had to changed it manually in 192.168.0.1, so for the /etc/exports.

Maybe there's an incorrect setting in the client image.

Can you help me?

Thanks, Martino.

EDIT: Fixed

anonymousdog
September 11th, 2008, 07:31 PM
I had similar issues after some updates on the backend server running the diskless client support. I don't know how much of this is necessary, but here's what I had to do to get it all working again (in the order I tried).
-- delete the overlay cache for the client...no joy
-- recreate the image...no joy
-- remove and reinstall the diskless client support...working diskless client!

Removal/reinstall of the diskless client support changed my NFS exports options a bit, but they look like yours do now. Still, these operations seem like they'd have low danger of impacting anything else. I just recommend backing up your dhcp.conf file if it has any customization (though it wasn't overwritten in my experience).

impossibilechecisiaquesto
September 11th, 2008, 07:43 PM
Fixed , i had problem with the nbd configuration file.

laga
September 12th, 2008, 03:27 AM
What was the problem with that configuration file? It shouldn't be needed at all.

impossibilechecisiaquesto
September 12th, 2008, 05:52 AM
The File was /etc/nbd-server/config

Befare was blank, this is the good one



[generic]
# If you want to run everything as root rather than the nbd user, you
# may either say "root" in the two following lines, or remove them
# altogether. Do not remove the [generic] section, however.
user = nbd
group = nbd

# What follows are export definitions. You may create as much of them as
# you want, but the section header has to be unique.
[export]
exportname = /opt/ltsp/images/i386.img
port = 2000

After changed the file obviously

sudo /etc/init.d/nbd-server restart

Hope may be helpful to someone.

laga
September 12th, 2008, 10:13 AM
Odd. What do you have in /etc/inetd.conf? It should have been set up there.

thomsany
January 28th, 2009, 09:23 PM
I had the same issue and your solution solved it for me!
Thanks so much and all the best.

Teo