Operating System - Linux
1756989
Members
2198
Online
108858
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2006 09:32 PM
05-22-2006 09:32 PM
netboot
Hello people,
I am trying to set up a diskless environment using netboot on redhat. After booting, the server got ip address using DHCP.
After showing some output, it ended up with this error:
RAMDISK: compressed image found at block 0
VFS: mounted root (ext2 filesystem) readonly.
freeing unused kernel memory: 176k freed
kernel panic - not syncing: no init found. try passing init= option to kernel.
Here is what I did to set up this netboot environment:
Reference system (linux02)
• Installed Redhat AS 4 update 1 for i386 (all the file systems are ext2)
• Installed busybox-anaconda-1.00.rc1-5 rpm
NFS server (linux01)
• Installed Redhat AS 4 update 1 for i386 (all the file systems are ext2)
• Created a new logical volume with ext2 file system on it for /diskless
• Created the directory /diskless/i386/RHEL4-AS/root
• Copied the OS from the reference system to the NFS server (rsync -a -e ssh linux02:/ /diskless/i386/RHEL4-AS/root/)
• Installed the tftp-server rpm and enabled it in xinetd
• Installed the dhcp rpm and created /etc/dhcpd.conf that contains the following:
##/etc/dhcpd.conf begins here##
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
#Each segment should have a specific subnet section
subnet 192.168.1.0 netmask 255.255.255.0
{
option routers 192.168.1.1; #gateway
option subnet-mask 255.255.255.0; #subnet mask
option domain-name-servers 192.168.1.2; #DNS
range dynamic-bootp 192.168.1.200 192.168.1.200; #IP range to be allocated
default-lease-time 21600;
max-lease-time 43200;
class "pxeclients"
{
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.1.123; #tftp server
filename "linux-install/pxelinux.0";
}
}
##/etc/dhcpd.conf ends here##
• Added the following to /etc/exports and started the service:
/diskless/i386/RHEL4-AS/root/ *(ro,sync,no_root_squash)
/diskless/i386/RHEL4-AS/snapshot/ *(rw,sync,no_root_squash)
• Installed system-config-netboot rpm
• Configured the diskless environment using system-config-netboot. As a result, initrd.img and vmlinuz were created in /tftpboot/linux-install/rhel-4-as-u1-i386-32/. Also, /diskless/i386/RHEL4-AS/snapshot/ directory was created with a file called files in it.
• Added a host using system-config-netboot. As a result, in the existing snapshot/ directory in the diskless directory, a subdirectory was created with the Snapshot name specified as the file name. All of the files listed in snapshot/files were copied copy from the root/ directory to this new directory. Also, a file called C0A801C8 was created in /tftpboot/linux-install/pxelinux.cfg/. It contains the following:
default rhel-4-as-u1-i386-32
label rhel-4-as-u1-i386-32
kernel rhel-4-as-u1-i386-32/vmlinuz
append initrd=rhel-4-as-u1-i386-32/initrd.img root=/dev/ram0 init=disklessrc NFSROOT=192.168.1.123:/diskless/i386/RHEL4-AS ramdisk_size=10000 ETHERNET=eth0 SNAPSHOT=netboot01
That's it.
Does anyone has an idea of what the problem is?
Thanks,
Maxim.
I am trying to set up a diskless environment using netboot on redhat. After booting, the server got ip address using DHCP.
After showing some output, it ended up with this error:
RAMDISK: compressed image found at block 0
VFS: mounted root (ext2 filesystem) readonly.
freeing unused kernel memory: 176k freed
kernel panic - not syncing: no init found. try passing init= option to kernel.
Here is what I did to set up this netboot environment:
Reference system (linux02)
• Installed Redhat AS 4 update 1 for i386 (all the file systems are ext2)
• Installed busybox-anaconda-1.00.rc1-5 rpm
NFS server (linux01)
• Installed Redhat AS 4 update 1 for i386 (all the file systems are ext2)
• Created a new logical volume with ext2 file system on it for /diskless
• Created the directory /diskless/i386/RHEL4-AS/root
• Copied the OS from the reference system to the NFS server (rsync -a -e ssh linux02:/ /diskless/i386/RHEL4-AS/root/)
• Installed the tftp-server rpm and enabled it in xinetd
• Installed the dhcp rpm and created /etc/dhcpd.conf that contains the following:
##/etc/dhcpd.conf begins here##
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
#Each segment should have a specific subnet section
subnet 192.168.1.0 netmask 255.255.255.0
{
option routers 192.168.1.1; #gateway
option subnet-mask 255.255.255.0; #subnet mask
option domain-name-servers 192.168.1.2; #DNS
range dynamic-bootp 192.168.1.200 192.168.1.200; #IP range to be allocated
default-lease-time 21600;
max-lease-time 43200;
class "pxeclients"
{
match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.1.123; #tftp server
filename "linux-install/pxelinux.0";
}
}
##/etc/dhcpd.conf ends here##
• Added the following to /etc/exports and started the service:
/diskless/i386/RHEL4-AS/root/ *(ro,sync,no_root_squash)
/diskless/i386/RHEL4-AS/snapshot/ *(rw,sync,no_root_squash)
• Installed system-config-netboot rpm
• Configured the diskless environment using system-config-netboot. As a result, initrd.img and vmlinuz were created in /tftpboot/linux-install/rhel-4-as-u1-i386-32/. Also, /diskless/i386/RHEL4-AS/snapshot/ directory was created with a file called files in it.
• Added a host using system-config-netboot. As a result, in the existing snapshot/ directory in the diskless directory, a subdirectory was created with the Snapshot name specified as the file name. All of the files listed in snapshot/files were copied copy from the root/ directory to this new directory. Also, a file called C0A801C8 was created in /tftpboot/linux-install/pxelinux.cfg/. It contains the following:
default rhel-4-as-u1-i386-32
label rhel-4-as-u1-i386-32
kernel rhel-4-as-u1-i386-32/vmlinuz
append initrd=rhel-4-as-u1-i386-32/initrd.img root=/dev/ram0 init=disklessrc NFSROOT=192.168.1.123:/diskless/i386/RHEL4-AS ramdisk_size=10000 ETHERNET=eth0 SNAPSHOT=netboot01
That's it.
Does anyone has an idea of what the problem is?
Thanks,
Maxim.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2006 09:47 AM
05-25-2006 09:47 AM
Re: netboot
it is the problem with your initrd.img file.
follow the steps in the below given site
http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/sysadmin-guide/ch-diskless.html
follow the steps in the below given site
http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/sysadmin-guide/ch-diskless.html
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP