Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Centos 7 and RHEL 7 PXE Installing fail #1477

Closed
christiangda opened this issue May 21, 2015 · 35 comments
Closed

Centos 7 and RHEL 7 PXE Installing fail #1477

christiangda opened this issue May 21, 2015 · 35 comments
Assignees
Labels
Bug Report Reporting a bug

Comments

@christiangda
Copy link

When PXEing RHEL 7 from Cobbler 2.6.7 my host would load all the way to dracut, at which point I got the dreaded /dev/root error.

[   84.985068] dracut Warning: Unable to process initqueue
dracut Warning: Unable to process initqueue  
[   84.985892] dracut Warning: /dev/root does not exist
dracut Warning: /dev/root does not exist

Dropping to debug shell.

dracut:/# _  

Cobbler Tested:

Name        : cobbler
Arch        : noarch
Version     : 2.6.8
  and
Name        : cobbler
Arch        : noarch
Version     : 2.6.7

I have the problem described here and used his solution and this do the work!

Here is describe the problem and solution: https://blog.vladionescu.com/pxe-installing-rhel-7-from-cobbler-2-6/

Thanks to Vlad Ionescu for his job and his blog!.

@robert-xiong
Copy link

can give the capture of the boot option detail? here is my option
capture1
capture
It still not work , can anyone help me to figure this out.really appreciate.

@christiangda
Copy link
Author

Taken from: https://blog.vladionescu.com/pxe-installing-rhel-7-from-cobbler-2-6/

Adding the following to my RHEL 7 Distro's Kernel Options (kopts) allowed RHEL 7 to successfully PXE! The blank ksdevice= overrides Cobbler's blunder, and inst.repo makes the rest of dracut happy.

ksdevice= inst.repo=http://11.11.11.11/cblr/ks_mirror/RHEL-7-Workstation-x86_64  

Replace 11.11.11.11 with you Cobbler server's IP address, and the rest of the path should point to where you imported your Distro.

and taken from my cobbler server:

[root@osprovisioner ~]# cobbler distro report

Name                           : CentOS-7.0-1406-x86_64-NetInstall-x86_64
Architecture                   : x86_64
TFTP Boot Files                : {}
Breed                          : redhat
Comment                        : 
Fetchable Files                : {}
Initrd                         : /var/www/cobbler/ks_mirror/CentOS-7.0-1406-x86_64-NetInstall-x86_64/images/pxeboot/initrd.img
Kernel                         : /var/www/cobbler/ks_mirror/CentOS-7.0-1406-x86_64-NetInstall-x86_64/images/pxeboot/vmlinuz
Kernel Options                 : {'ksdevice': '', 'inst.repo': 'http://10.9.11.210/cblr/ks_mirror/CentOS-7.0-1406-x86_64-NetInstall-x86_64/'}
Kernel Options (Post Install)  : {}
Kickstart Metadata             : {'tree': 'http://@@http_server@@/cblr/links/CentOS-7.0-1406-x86_64-NetInstall-x86_64'}
Management Classes             : []
OS Version                     : rhel7
Owners                         : ['admin']
Red Hat Management Key         : <<inherit>>
Red Hat Management Server      : <<inherit>>
Template Files                 : {}

@robert-xiong
Copy link

It still not working.I am so sad .
ca1
ca2
could be any other mistake?

@christiangda
Copy link
Author

Did you check the link put in "Kernel Options", this exists?, what is your error?

My provisioner server is Centos 7, if you read https://blog.vladionescu.com/pxe-installing-rhel-7-from-cobbler-2-6/, it'll do the job

@robert-xiong
Copy link

yes,I have checked it,do exist.And the error :
error
and the Addr is working
web

@christiangda
Copy link
Author

Did you do?

cobbler sync

check the file in

#NOTE: With your mac system
/var/lib/tftpboot/pxelinux.cfg/01-c4-6e-1f-00-99-ec

and its content will be something like

LABEL CentOS-7.0-1406-x86_64-NetInstall-x86_64
        kernel /images/CentOS-7.0-1406-x86_64-NetInstall-x86_64/vmlinuz
        MENU LABEL CentOS-7.0-1406-x86_64-NetInstall-x86_64
        append initrd=/images/CentOS-7.0-1406-x86_64-NetInstall-x86_64/initrd.img ksdevice lang=  inst.repo=http://10.9.11.210/cblr/ks_mirror/CentOS-7.0-1406-x86_64-NetInstall-x86_64/ kssendmac text  ks=http://10.9.11.210/cblr/svc/op/ks/profile/CentOS-7.0-1406-x86_64-NetInstall-x86_64
        ipappend 2

The new kernel params will be there!

@robert-xiong
Copy link

yes,I have do "cobbler sync" , but no file named by my mac address .just a file named "default".In this file, I find the content

[root@localhost /]# vi /var/lib/tftpboot/pxelinux.cfg/default
DEFAULT menu
PROMPT 0
MENU TITLE Cobbler | http://www.cobblerd.org/
TIMEOUT 200
TOTALTIMEOUT 6000
ONTIMEOUT local

LABEL local
        MENU LABEL (local)
        MENU DEFAULT
        LOCALBOOT -1

LABEL CentOS-7.0-x86_64
        kernel /images/CentOS-7.0-x86_64/vmlinuz
        MENU LABEL CentOS-7.0-x86_64
        append initrd=/images/CentOS-7.0-x86_64/initrd.img ksdevice lang=  inst.repo=http://192.168.71.101/cblr/links/CentOS-7.0-x86_64/ text kssendmac  ks=http://192.168.71.101/cblr/svc/op/ks/profile/CentOS-7.0-x86_64
        ipappend 2

Is there something wrong?

@Firxiao
Copy link

Firxiao commented May 27, 2015

check the network if there has other dhcp server

@robert-xiong
Copy link

not possible.Because i use the VirtualBox to test cobbler.And the network Adapter is Host-Only Adapter.

@Firxiao
Copy link

Firxiao commented May 27, 2015

seem you use centos7.0 , have you try centos7.1 ?

@robert-xiong
Copy link

I am sorry.Is the iso need be this "CentOS-7-x86_64-NetInstall-1503.iso" ,or "CentOS-7-x86_64-DVD-1503.iso" is also okay?

@Firxiao
Copy link

Firxiao commented May 27, 2015

CentOS-7-x86_64-NetInstall-1503.iso seems can't use ,
I think it depends what packges what you want install, I use the CentOS-7-x86_64-DVD-1503-01.iso.

@Firxiao
Copy link

Firxiao commented May 27, 2015

OS : CentOS release 6.6 (Final)
cobbler: 2.6.3-1.el6

@Firxiao
Copy link

Firxiao commented May 27, 2015

I thought your problem is not the cobbler's problem but the the kickstart's problem , you can just use pxe with ks file install to test if this error appear again , you can try this guide
https://access.redhat.com/documentation/zh-CN/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/chap-booting-installer-x86.html#sect-booting-from-pxe-x86

@robert-xiong
Copy link

That could be. Thank you ,i will try.

@Firxiao
Copy link

Firxiao commented May 28, 2015

Suddenly remembered there has dhcp server in Host-Only Adapter. please check your Host-Only Adapter and make dhcp service disable. like this
dhcp

@Firxiao
Copy link

Firxiao commented May 28, 2015

pxe need a kickstart file , you can use " system-config-kickstart " to create .
this is my cobbler's ks file:
http://firxiao.com/kickstarts/c7_mini.ks

@Firxiao
Copy link

Firxiao commented May 28, 2015

and have you try other vm software ? like vmware kvm . or Physical machine?

@alanoe
Copy link

alanoe commented May 28, 2015

Firxiao: a kickstart file is not required to boot a system via network using Cobbler (aka "pxe")

robert-xiong: the issue tracker is not a forum, use the Cobbler mailing list (cobbler@lists.fedorahosted.org) to post questions to Cobbler users and developers

@alanoe alanoe added the Bug Report Reporting a bug label May 28, 2015
@Firxiao
Copy link

Firxiao commented May 28, 2015

alanoe: I just try leave kickstart file blank and add kernel options , It worked. but no kernel option and no kickstart file, it not worked.
robert-xiong:
do you make your pxe server step by step ?
check " /var/lib/tftpboot/pxelinux/default " is correct.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Installation_Guide/chap-installation-server-setup.html#sect-network-boot-setup-bios

@Firxiao
Copy link

Firxiao commented May 28, 2015

robert-xiong: in your last image , I have seen " rtnetlink answer file exits " , might there has duplicate route. could you issue " less /run/initramfs/rdsosreport.txt " , go to last page check what happen
and also you can send log to the mailing list.

@requiemsallure
Copy link

I don't know the reason in particular, but if you have multiple NICs on the server you are trying to kick-start you might need to put ksdevice=link in the kernel options, its what I had to do.

@robert-xiong
Copy link

The problem is fixed.It should be the VirtualBox doesn't support the CentOS 7.0 boot from network.When I used the Physical machine,the problem is gone.Thank all you guys.
@christiangda could close the issue

@kemadz
Copy link

kemadz commented Dec 22, 2015

In my case, using ksdevice=eth0 instead of ksdevice=link fix the issue.

@dilshath
Copy link

I am using centos 7 in physical machine. Unfortunately I partition the /dev/sda2 disk which contains /root/swap/home system directories so it showing this errors,

Dracut Error:

[ OK ] Reached target Paths.
[ OK ] Reached target Basic System.
dracut-initqueue[372]: Warning: Could not boot.
[ OK ] Started Show Plymouth Boot Screen.
[ OK ] Reached target Paths.
[ OK ] Reached target Basic System.
dracut-initqueue[372]: Warning: Could not boot.
dracut-initqueue[372]: Warning: /dev/centos/root does not exist.
dracut-initqueue[372]: Warning: /dev/centos/swap does not exist.
dracut-initqueue[372]: Warning: /dev/mapper/centos-root does not exist.
Starting Dracut Emergency Shell...
Warning: /dev/centos/root does not exist
Warning: /dev/centos/swap does not exist
Warning: /dev/mapper/centos-root does not exist

Generating "/run/initramfs/rdsosreport.txt"

Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.

dracut#

Anybody know how to fix the problem,please help me.

@jhlboy
Copy link

jhlboy commented May 18, 2016

11
Cobbler installation of centos7.1-1503 set the static IP address of the installation error, the installation system in DHCP can be installed directly, without any error!

@jmaas jmaas added this to the 2.8.1 milestone Feb 23, 2017
@jmaas jmaas self-assigned this Feb 23, 2017
@weijianwen
Copy link

It seems correlated to the default kickstart file (/var/lib/cobbler/kickstarts/default.ks) which is empty and is assigned to a profile when no option is passed to --kickstart. Recreating a profile with a usable kickstart file, for example /var/lib/cobbler/kickstarts/sample_end.ks, solves my problem. Please be cautious that /var/lib/cobbler/kickstarts/sample.ks does NOT work either. Even not tested yet, customized kickstart files based on sample_end.ks should work, I think.

# cobbler profile add --name=ks-sample-centos7-everything-1611-x86_64 --distro=centos7-everything-1611-x86_64 --kickstart=/var/lib/cobbler/kickstarts/sample_end.ks
# cobbler profile report --name=ks-sample-centos7-everything-1611-x86_64 | grep -i kickstart
Kickstart                      : /var/lib/cobbler/kickstarts/sample_end.ks
Kickstart Metadata             : {}

@dinghe1985
Copy link

dinghe1985 commented Jun 21, 2017

Thank you for all the people here, your discussion helped me solve the problem that has plagued me for a long time.
I am using VMWare11 version, Cobble deployed Centos7.3, ESXI server no problem. But at home the computer will not work until I saw the robert-xiong final solution, began to suspect that the virtual machine is the problem, I usually choose the virtual machine is Centos 64 bit, until I changed to RHEL 7, everything is normal, It seems that this is related to the kernel version.
The Oh! My god, intermittently tried 10 times, lasted 2 months, thank you all, very grateful!

Above from google translation, Thank you from IT Engineer in China.

@hellth
Copy link

hellth commented Aug 31, 2017

This can be caused by lack of RAM on your VM, 1024 is not enough. Had the same error and increasing RAM helped me. My ksdevice is bootip and ks file is original, I haven't modified it, boot imge done from CentOS 7 64bit netinstall.

@Curiouserw
Copy link

Yes,the 'hellth' 👍 ,it is rigtht! I suffer the same problem for a half year !
1.host machine OS:Ubuntu 16.04
2.build one guest machines (CentOS-7.3.1611-Desktop)in Virtual Box as httpd. tftp. dhcp server to deploy CentOS-7.3.1611-Server virtual machines by pxe+kickstart
3.all the virtual machine network work in host only mode.

I got the same error like rebert-xiong everytime I tried until read this answer searched by Google.
I get one rediculous conclusion that DON'T USE Baidu TO SEARCH YOUR QUESTIONS IN CHINA.
who use who know.

@jmaas
Copy link
Member

jmaas commented Sep 10, 2017

So, not a bug.

@jmaas jmaas closed this as completed Sep 10, 2017
@ThanhTamPotter
Copy link

@hellth thanks u so much!!! I cannot believe !! I had tried many times before read your cmt.. thanks u so so so muchh...

@laoyin
Copy link

laoyin commented Jun 25, 2018

i got this error, when i used maas to deploy centos7. but target machine is just Physical machine, DELL server. i feel so sad, and i have no idea how to solve this problem .

@pingod
Copy link

pingod commented Oct 6, 2018

pxe need a kickstart file , you can use " system-config-kickstart " to create .
this is my cobbler's ks file:
http://firxiao.com/kickstarts/c7_mini.ks

THK, it works

@cdyangzhenyu
Copy link

i got this error, when i used maas to deploy centos7. but target machine is just Physical machine, DELL server. i feel so sad, and i have no idea how to solve this problem .

I have same problem, did you sovle it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Reporting a bug
Projects
None yet
Development

No branches or pull requests