Ubuntu Diskless 16.04.3 LTS (Xenial Xerus)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am following this HowTo on setting up a diskless ubuntu client.
- I am using 2 virtualbox VMs one server and one client.
- I am trying to boot the client using pxe but I get a kernel panic error like
THIS
- I am using Ubuntu 16.04.3 LTS (Xenial Xerus) on both server and client.
- The server is a FULL install while client is minimal install.
The client connects to the server, gets an IP and the boot process starts but then i get a kernel panic error. Please tell me what I am doing wrong here. I have followed the tutorial word by word.
Here is my setup:
Ubuntu Server has dhcp server configured for pxe boot.
I ran the following commands on minimal ubuntu client:
- sudo cp /boot/vmlinuz-
uname -r
~ - Changed the BOOT flag in /etc/initramfs-tools/initramfs.conf to BOOT=nfs
- Changed the MODULES flag in /etc/initramfs-tools/initramfs.conf to MODULES=netboot
- Put modules needed for network adapters into /etc/initramfs-tools/modules
- Ran mkinitramfs mkinitramfs -o ~/initrd.img-
uname -r
- Copied OS files to Ubuntu server (192.168.2.3/nfsroot/):
mount -t nfs -onolock 192.168.2.3:/nfsroot /mnt
cp -ax /. /mnt/.
cp -ax /dev/. /mnt/dev/. (This command didn't work)
- Copied kernel and initrd to tftp root.
- /tftpboot/ now contains vmlinuz and initrd image made in step 5
- Configured fstab on /nfsroot/etc/fstab. It contains the information the client will use to mount file systems on boot.
/nfsroot/etc/fstab
proc /proc proc defaults 0 0
/dev/nfs / nfs defaults 1 1
none /tmp tmpfs defaults 0 0
none /var/run tmpfs defaults 0 0
none /var/lock tmpfs defaults 0 0
none /var/tmp tmpfs defaults 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/tftpboot/pxelinux.cfg/default
LABEL linux
DEFAULT vmlinuz-4.10.0-28-generic
INITRD initrd.img-4.4.0-87-generic
APPEND root=/dev/nfs nfsroot=192.168.2.3:/nfsroot ip=dhcp rw
/etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"
/etc/default/dhcp/dhcpd.conf
allow booting;
allow bootp;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.5 192.168.2.250;
option broadcast-address 192.168.2.255;
option routers 192.168.2.10;
option domain-name-servers 192.168.2.11;
filename "pxelinux.0";
}
# force the client to this ip for pxe.
# This is only necessary assuming you want to send different images to differen$
host pxe_client {
hardware ethernet 00:00:00:00:12:34;
fixed-address 192.168.2.7;
}
PLEASE HELP!!!
boot server kernel pxe
add a comment |
I am following this HowTo on setting up a diskless ubuntu client.
- I am using 2 virtualbox VMs one server and one client.
- I am trying to boot the client using pxe but I get a kernel panic error like
THIS
- I am using Ubuntu 16.04.3 LTS (Xenial Xerus) on both server and client.
- The server is a FULL install while client is minimal install.
The client connects to the server, gets an IP and the boot process starts but then i get a kernel panic error. Please tell me what I am doing wrong here. I have followed the tutorial word by word.
Here is my setup:
Ubuntu Server has dhcp server configured for pxe boot.
I ran the following commands on minimal ubuntu client:
- sudo cp /boot/vmlinuz-
uname -r
~ - Changed the BOOT flag in /etc/initramfs-tools/initramfs.conf to BOOT=nfs
- Changed the MODULES flag in /etc/initramfs-tools/initramfs.conf to MODULES=netboot
- Put modules needed for network adapters into /etc/initramfs-tools/modules
- Ran mkinitramfs mkinitramfs -o ~/initrd.img-
uname -r
- Copied OS files to Ubuntu server (192.168.2.3/nfsroot/):
mount -t nfs -onolock 192.168.2.3:/nfsroot /mnt
cp -ax /. /mnt/.
cp -ax /dev/. /mnt/dev/. (This command didn't work)
- Copied kernel and initrd to tftp root.
- /tftpboot/ now contains vmlinuz and initrd image made in step 5
- Configured fstab on /nfsroot/etc/fstab. It contains the information the client will use to mount file systems on boot.
/nfsroot/etc/fstab
proc /proc proc defaults 0 0
/dev/nfs / nfs defaults 1 1
none /tmp tmpfs defaults 0 0
none /var/run tmpfs defaults 0 0
none /var/lock tmpfs defaults 0 0
none /var/tmp tmpfs defaults 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/tftpboot/pxelinux.cfg/default
LABEL linux
DEFAULT vmlinuz-4.10.0-28-generic
INITRD initrd.img-4.4.0-87-generic
APPEND root=/dev/nfs nfsroot=192.168.2.3:/nfsroot ip=dhcp rw
/etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"
/etc/default/dhcp/dhcpd.conf
allow booting;
allow bootp;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.5 192.168.2.250;
option broadcast-address 192.168.2.255;
option routers 192.168.2.10;
option domain-name-servers 192.168.2.11;
filename "pxelinux.0";
}
# force the client to this ip for pxe.
# This is only necessary assuming you want to send different images to differen$
host pxe_client {
hardware ethernet 00:00:00:00:12:34;
fixed-address 192.168.2.7;
}
PLEASE HELP!!!
boot server kernel pxe
add a comment |
I am following this HowTo on setting up a diskless ubuntu client.
- I am using 2 virtualbox VMs one server and one client.
- I am trying to boot the client using pxe but I get a kernel panic error like
THIS
- I am using Ubuntu 16.04.3 LTS (Xenial Xerus) on both server and client.
- The server is a FULL install while client is minimal install.
The client connects to the server, gets an IP and the boot process starts but then i get a kernel panic error. Please tell me what I am doing wrong here. I have followed the tutorial word by word.
Here is my setup:
Ubuntu Server has dhcp server configured for pxe boot.
I ran the following commands on minimal ubuntu client:
- sudo cp /boot/vmlinuz-
uname -r
~ - Changed the BOOT flag in /etc/initramfs-tools/initramfs.conf to BOOT=nfs
- Changed the MODULES flag in /etc/initramfs-tools/initramfs.conf to MODULES=netboot
- Put modules needed for network adapters into /etc/initramfs-tools/modules
- Ran mkinitramfs mkinitramfs -o ~/initrd.img-
uname -r
- Copied OS files to Ubuntu server (192.168.2.3/nfsroot/):
mount -t nfs -onolock 192.168.2.3:/nfsroot /mnt
cp -ax /. /mnt/.
cp -ax /dev/. /mnt/dev/. (This command didn't work)
- Copied kernel and initrd to tftp root.
- /tftpboot/ now contains vmlinuz and initrd image made in step 5
- Configured fstab on /nfsroot/etc/fstab. It contains the information the client will use to mount file systems on boot.
/nfsroot/etc/fstab
proc /proc proc defaults 0 0
/dev/nfs / nfs defaults 1 1
none /tmp tmpfs defaults 0 0
none /var/run tmpfs defaults 0 0
none /var/lock tmpfs defaults 0 0
none /var/tmp tmpfs defaults 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/tftpboot/pxelinux.cfg/default
LABEL linux
DEFAULT vmlinuz-4.10.0-28-generic
INITRD initrd.img-4.4.0-87-generic
APPEND root=/dev/nfs nfsroot=192.168.2.3:/nfsroot ip=dhcp rw
/etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"
/etc/default/dhcp/dhcpd.conf
allow booting;
allow bootp;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.5 192.168.2.250;
option broadcast-address 192.168.2.255;
option routers 192.168.2.10;
option domain-name-servers 192.168.2.11;
filename "pxelinux.0";
}
# force the client to this ip for pxe.
# This is only necessary assuming you want to send different images to differen$
host pxe_client {
hardware ethernet 00:00:00:00:12:34;
fixed-address 192.168.2.7;
}
PLEASE HELP!!!
boot server kernel pxe
I am following this HowTo on setting up a diskless ubuntu client.
- I am using 2 virtualbox VMs one server and one client.
- I am trying to boot the client using pxe but I get a kernel panic error like
THIS
- I am using Ubuntu 16.04.3 LTS (Xenial Xerus) on both server and client.
- The server is a FULL install while client is minimal install.
The client connects to the server, gets an IP and the boot process starts but then i get a kernel panic error. Please tell me what I am doing wrong here. I have followed the tutorial word by word.
Here is my setup:
Ubuntu Server has dhcp server configured for pxe boot.
I ran the following commands on minimal ubuntu client:
- sudo cp /boot/vmlinuz-
uname -r
~ - Changed the BOOT flag in /etc/initramfs-tools/initramfs.conf to BOOT=nfs
- Changed the MODULES flag in /etc/initramfs-tools/initramfs.conf to MODULES=netboot
- Put modules needed for network adapters into /etc/initramfs-tools/modules
- Ran mkinitramfs mkinitramfs -o ~/initrd.img-
uname -r
- Copied OS files to Ubuntu server (192.168.2.3/nfsroot/):
mount -t nfs -onolock 192.168.2.3:/nfsroot /mnt
cp -ax /. /mnt/.
cp -ax /dev/. /mnt/dev/. (This command didn't work)
- Copied kernel and initrd to tftp root.
- /tftpboot/ now contains vmlinuz and initrd image made in step 5
- Configured fstab on /nfsroot/etc/fstab. It contains the information the client will use to mount file systems on boot.
/nfsroot/etc/fstab
proc /proc proc defaults 0 0
/dev/nfs / nfs defaults 1 1
none /tmp tmpfs defaults 0 0
none /var/run tmpfs defaults 0 0
none /var/lock tmpfs defaults 0 0
none /var/tmp tmpfs defaults 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/tftpboot/pxelinux.cfg/default
LABEL linux
DEFAULT vmlinuz-4.10.0-28-generic
INITRD initrd.img-4.4.0-87-generic
APPEND root=/dev/nfs nfsroot=192.168.2.3:/nfsroot ip=dhcp rw
/etc/default/tftpd-hpa
TFTP_USERNAME="tftp"
TFTP_DIRECTORY="/tftpboot"
TFTP_ADDRESS=":69"
TFTP_OPTIONS="--secure"
/etc/default/dhcp/dhcpd.conf
allow booting;
allow bootp;
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.5 192.168.2.250;
option broadcast-address 192.168.2.255;
option routers 192.168.2.10;
option domain-name-servers 192.168.2.11;
filename "pxelinux.0";
}
# force the client to this ip for pxe.
# This is only necessary assuming you want to send different images to differen$
host pxe_client {
hardware ethernet 00:00:00:00:12:34;
fixed-address 192.168.2.7;
}
PLEASE HELP!!!
boot server kernel pxe
boot server kernel pxe
edited Jan 7 '18 at 18:39
umar14
asked Jan 7 '18 at 18:31
umar14umar14
215
215
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Your /tftpboot/pxelinux.cfg/default file is wrong.
It must be something like this: (just example, but kernel and initrd versions must be the same and the initrd is those, that was generated with mkinitramfs)
LABEL linux
KERNEL vmlinuz-2.6.15-23-686
APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f993305%2fubuntu-diskless-16-04-3-lts-xenial-xerus%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your /tftpboot/pxelinux.cfg/default file is wrong.
It must be something like this: (just example, but kernel and initrd versions must be the same and the initrd is those, that was generated with mkinitramfs)
LABEL linux
KERNEL vmlinuz-2.6.15-23-686
APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw
add a comment |
Your /tftpboot/pxelinux.cfg/default file is wrong.
It must be something like this: (just example, but kernel and initrd versions must be the same and the initrd is those, that was generated with mkinitramfs)
LABEL linux
KERNEL vmlinuz-2.6.15-23-686
APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw
add a comment |
Your /tftpboot/pxelinux.cfg/default file is wrong.
It must be something like this: (just example, but kernel and initrd versions must be the same and the initrd is those, that was generated with mkinitramfs)
LABEL linux
KERNEL vmlinuz-2.6.15-23-686
APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw
Your /tftpboot/pxelinux.cfg/default file is wrong.
It must be something like this: (just example, but kernel and initrd versions must be the same and the initrd is those, that was generated with mkinitramfs)
LABEL linux
KERNEL vmlinuz-2.6.15-23-686
APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw
answered Feb 13 at 6:01
SamuilSamuil
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f993305%2fubuntu-diskless-16-04-3-lts-xenial-xerus%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown