Skip to contentSkip to conversation

the problem of booting linux kernel from NFS

Qemu-devel new bee 2 participants 3 messages Jan 3, 2008

lore
Share & tools
lore

new bee

author
#0 lore raw

Hi,All:

I want to boot kernel from NFS, so I compile a kernel supported NFS & TUN/TAP device
and change the /etc/qemu-ifup like this:

#!/bin/sh
sudo -p "Password for $0:" /sbin/ifconfig $1 192.168.15.1

when I boot the new kernel, there is the message :
IP-Config: No network device available Looking up port of RPC 100003/2 on 192.168.15.1

and the kernel cannot mount the root fs.but the kernel has the network device driver.

What is the reason? and What should I solve it?

the command is :
qemu -net nic -net tap -kernel /usr/src/linux/arch/i386/boot/bzImage -hda /dev/zero -append "ip=192.168.15.110 root=/dev/nfs nfsroot= 192.168.15.1:/scratchbox/users/newbee/targets/ambition"

Thanks

Regards,
HanLiang

Signature · 3 lines
Mail:[email protected]
MSN:[email protected]
Keep Contact^_^
#1 lore raw

Hello¸

new bee wrote:
...

Quoted 7 lines

when I boot the new kernel, there is the message :
IP-Config: No network device available
Looking up port of RPC 100003/2 on 192.168.15.1 <http://192.168.15.1>

and the kernel cannot mount the root fs.but the kernel has the network device driver.

What is the reason? and What should I solve it?

The reason that you kernel didn't contain right driver module for your network card.

Rgds,
Anton

author
#2 lore raw

Yes, I just know the reason:
The kernel cannot find the default netcard ne2k_pci although I have selected the driver module, when I use other card like rtl8139 or ne2k_isa, it works well.

By the way, I use ubuntu 7.10 and the kernel is 2.6.22.

Thank you very much

Regards,
Hanliang

2008/1/3, Anton D Kachalov <[email protected]>:

Quoted 21 lines

Hello¸

new bee wrote:
...

Quoted 8 lines

when I boot the new kernel, there is the message :
IP-Config: No network device available
Looking up port of RPC 100003/2 on 192.168.15.1 <http://192.168.15.1>

and the kernel cannot mount the root fs.but the kernel has the network device driver.

What is the reason? and What should I solve it?

The reason that you kernel didn't contain right driver module for your network card.

Rgds,
Anton

Signature · 3 lines
Mail:[email protected]
MSN:[email protected]
Keep Contact^_^