xcat2 / xcat-core

Code repo for xCAT core packages
Eclipse Public License 1.0
360 stars 171 forks source link

Ubuntu 16.04.6 installation fails after pxe boot #6458

Open urielrosen opened 4 years ago

urielrosen commented 4 years ago

Hi,

I am trying to implement an ubuntu installation in our organization xcat deployment server , we already have a working configuration to install centos 7 . after successfully booting from pxe to start the install and right away I get this error messsage: configure the network : installation step failed(screenshot attached) , what do I need to configure in xcat order to advance passed this stage ? I issued the following commands : wget http://xcat.org/files/netboot/ubuntu16.04.1/ppc64el/mini.iso mkdir /tmp/iso mount -o loop mini.iso /tmp/iso mkdir -p /install/ubuntu16.04.6/ppc64el/install/netboot cp /tmp/iso/install/initrd.gz /install/ubuntu16.04.6/ppc64el/install/netboot nodeset cn124 osimage=ubuntu16.04.6-x86_64-install-compute rinstall cn124

Thanks for your help.

image

gurevichmark commented 4 years ago

@urielrosen I do not think mini.iso is needed for Ubuntu 16.04.02 or later. See https://github.com/xcat2/xcat-core/issues/5702#issuecomment-431244473

Also, can you lsdef your node and osimage definitions ?

urielrosen commented 4 years ago

Hi,

I tried both ubuntu16.04.1 and ubuntu16.04.6 with same results, Output is attached below , please tell me how to fix this .

lsdef -t osimage ubuntu16.04.1 Object name: ubuntu16.04.1 imagetype=linux osarch=x86_64 osname=Linux osvers=ubuntu16.04.1 otherpkgdir=/install/post/otherpkgs/ubuntu16.04.1/x86_64 pkgdir=/install/ubuntu16.04.1/x86_64 pkglist=/opt/xcat/share/xcat/install/ubuntu/compute.pkglist profile=compute provmethod=install template=/opt/xcat/share/xcat/install/ubuntu/compute.tmpl

lsdef cn124 Object name: cn124 arch=x86_64

bmcport=0
bmcusername=
currchain=boot
currstate=install ubuntu16.04.1-x86_64-compute
groups=XL170r-noib
initrd=xcat/osimage/centos7.3/initrd.img
installnic=eth0
interface=eth0
kcmdline=quiet inst.repo=http://132.76.220.21:80/install/centos7.3/x86_64 inst.ks=http://132.76.220.21:80/install/autoinst/cn124 ip=eth0:dhcp
kernel=xcat/osimage/centos7.3/vmlinuz
mac=50:65:f3:68:c7:fe
mgt=ipmi
netboot=xnba
nfsserver=132.76.220.21
os=ubuntu16.04.1
postscripts=net_XL170r-noib,cron,otherpkgs,centos7.3/wexac.post,sssd,NTP,wexac_7.post,install_gpfs_client.sh,centos7.3/centos7.lsf,gmond,ilo,fstab
primarynic=eth0
profile=compute
provmethod=ubuntu16.04.1
status=powering-on
statustime=10-24-2019 13:10:09
tftpserver=132.76.220.21
updatestatus=synced
updatestatustime=09-13-2015 11:46:36

Thanks, Uriel.

From: Mark Gurevich notifications@github.com Sent: Thursday, October 24, 2019 5:14 PM To: xcat2/xcat-core xcat-core@noreply.github.com Cc: Uriel Rosen uriel.rosen@weizmann.ac.il; Mention mention@noreply.github.com Subject: Re: [xcat2/xcat-core] Ubuntu 16.04.6 installation fails after pxe boot (#6458)

@urielrosenhttps://github.com/urielrosen I do not think mini.iso is needed for Ubuntu 16.04.02 or later. See #5702 (comment)https://github.com/xcat2/xcat-core/issues/5702#issuecomment-431244473

Also, can you lsdef your node and osimage definitions ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/xcat2/xcat-core/issues/6458?email_source=notifications&email_token=ANSIVRLLVV2NNTKCOZZQSPLQQGUR3A5CNFSM4JEO6LCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECFFSTY#issuecomment-545937743, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANSIVRPB27YESNRQ5XOG653QQGUR3ANCNFSM4JEO6LCA.

gurevichmark commented 4 years ago

@urielrosen It appears your node definition still has references to CentOS in kcmdline, kernel and postscripts attributes.

Also, can you show contents of /tftpboot/xcat/xnba/nodes/cn124 file ?

urielrosen commented 4 years ago

Hi,

Below is the output of /tftpboot/xcat/xnba/nodes/cn124

Is there a step by step guide to adding Ubuntu server image install ?

!gpxe

install ubuntu16.04.1-x86_64-compute

imgfetch -n kernel http://${next-server}:80/tftpboot/xcat/osimage/ubuntu16.04.1/vmlinuz imgload kernel imgargs kernel nofb utf8 auto url=http://132.76.220.21:80/install/autoinst/cn124 xcatd=132.76.220.21 mirror/http/hostname=132.76.220.21:80 netcfg/choose_interface=eth0 locale=en_US priority=critical hostname=cn124 live-installer/net-image=http://132.76.220.21:80/install/ubuntu16.04.1/x86_64/install/filesystem.squashfs BOOTIF=01-${netX/machyp} imgfetch http://${next-server}:80/tftpboot/xcat/osimage/ubuntu16.04.1/initrd.img imgexec kernel

Thanks, Uriel.

From: Mark Gurevich notifications@github.com Sent: Monday, October 28, 2019 4:08 PM To: xcat2/xcat-core xcat-core@noreply.github.com Cc: Uriel Rosen uriel.rosen@weizmann.ac.il; Mention mention@noreply.github.com Subject: Re: [xcat2/xcat-core] Ubuntu 16.04.6 installation fails after pxe boot (#6458)

@urielrosenhttps://github.com/urielrosen It appears you node definition still has references to CentOS in kcmdline, kernel and postscripts attributes.

Also, can you show contents of /tftpboot/xcat/xnba/nodes/cn124 file ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/xcat2/xcat-core/issues/6458?email_source=notifications&email_token=ANSIVRMDEBLQZL4G3YR7EQTQQ3W4VA5CNFSM4JEO6LCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECM72TQ#issuecomment-546962766, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANSIVRIXWO4Z4JEURVRRKSDQQ3W4VANCNFSM4JEO6LCA.

cxhong commented 4 years ago

The mini.iso you had is for ppc64el, not x86_64. xCAT will not pick up the files from /install/ubuntu16.04.6/ppc64el/install/netboot for arch is not ppc64el

can u remove all the attribute has references to centos, then try ubuntu16.04.6 again? please show contents of osimage, node definition and /tftpboot/xcat/xnba/nodes/cn124

urielrosen commented 4 years ago

Hi,

Thanks for your reply , I attached the output of the items you asked . As of now I get the same error after deleting centos attributes . If you have an install guide for adding Ubuntu image this would be great to have .

16.04.6-x86_64-compute [root@xcat install]# lsdef cn123 Object name: cn123 arch=x86_64 bmc=cn123-ilo bmcpassword=Und47$@@ bmcport=0 bmcusername=wexac-ilo currchain=boot currstate=install ubuntu16.04.6-x86_64-compute groups=XL170r-noib initrd=xcat/osimage/ubuntu16.04.6/x86_64/install/initrd.gz installnic=eth0 interface=eth0 ip=eth0:dhcp kcmdline=quiet kernel=xcat/osimage/ubuntu16.04.6/x86_64/install/vmlinuz mac=50:65:f3:6a:81:c0 mgt=ipmi netboot=xnba nfsserver=132.76.220.21 os=ubuntu16.04.6 postscripts=net_XL170r-noib,cron,otherpkgs,sssd,NTP,wexac_7.post,install_gpfs_client.sh,gmond,ilo,fstab primarynic=eth0 profile=compute provmethod=ubuntu16.04.6-x86_64-install-compute status=powering-on statustime=10-31-2019 09:09:07 tftpserver=132.76.220.21 updatestatus=failed updatestatustime=09-10-2015 20:40:32

lsdef -t osimage ubuntu16.04.6-x86_64-install-compute Object name: ubuntu16.04.6-x86_64-install-compute imagetype=linux osarch=x86_64 osname=Linux osvers=ubuntu16.04.6 otherpkgdir=/install/post/otherpkgs/ubuntu16.04.6/x86_64 pkgdir=/install/ubuntu16.04.6/x86_64 pkglist=/opt/xcat/share/xcat/install/ubuntu/compute.pkglist profile=compute provmethod=install template=/opt/xcat/share/xcat/install/ubuntu/compute.tmpl

cat /tftpboot/xcat/xnba/nodes/cn123

!gpxe

install ubuntu16.04.6-x86_64-compute

imgfetch -n kernel http://${next-server}:80/tftpboot/xcat/osimage/ubuntu16.04.6-x86_64-install-compute/vmlinuz imgload kernel imgargs kernel nofb utf8 auto url=http://132.76.220.21:80/install/autoinst/cn123 xcatd=132.76.220.21 mirror/http/hostname=132.76.220.21:80 netcfg/choose_interface=eth0 locale=en_US priority=critical hostname=cn123 live-installer/net-image=http://132.76.220.21:80/install/ubuntu16.04.6/x86_64/install/filesystem.squashfs BOOTIF=01-${netX/machyp} imgfetch http://${next-server}:80/tftpboot/xcat/osimage/ubuntu16.04.6-x86_64-install-compute/initrd.img imgexec kernel

Thanks, Uriel.

From: cxhong notifications@github.com Sent: Tuesday, October 29, 2019 3:28 PM To: xcat2/xcat-core xcat-core@noreply.github.com Cc: Uriel Rosen uriel.rosen@weizmann.ac.il; Mention mention@noreply.github.com Subject: Re: [xcat2/xcat-core] Ubuntu 16.04.6 installation fails after pxe boot (#6458)

The mini.iso you had is for ppc64el, not x86_64. xCAT will not pick up the files from /install/ubuntu16.04.6/ppc64el/install/netboot for arch is not ppc64el

can u remove all the attribute has references to centos, then try ubuntu16.04.6 again? please show contents of osimage, node definition and /tftpboot/xcat/xnba/nodes/cn124

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/xcat2/xcat-core/issues/6458?email_source=notifications&email_token=ANSIVRIOANCGGKHZOOS4TJTQRA25XA5CNFSM4JEO6LCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECQPGKA#issuecomment-547418920, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANSIVRLVXPZURP3EMGPPDUDQRA25XANCNFSM4JEO6LCA.

cxhong commented 4 years ago

sorry for the late response..
for the osimage:

sdef -t osimage ubuntu16.04.6-x86_64-install-compute
Object name: ubuntu16.04.6-x86_64-install-compute
    imagetype=linux
    osarch=x86_64
    osname=Linux
    osvers=ubuntu16.04.6
    otherpkgdir=/install/post/otherpkgs/ubuntu16.04.6/x86_64
    pkgdir=/install/ubuntu16.04.6/x86_64
    pkglist=/opt/xcat/share/xcat/install/ubuntu/compute.pkglist
    profile=compute
    provmethod=install
    template=/opt/xcat/share/xcat/install/ubuntu/compute.tmpl

Did u create it via copycds? the pkglist is not correct.

chdef -t osimage ubuntu16.04.6-x86_64-install-compute pkglist=/opt/xcat/share/xcat/install/ubuntu/compute.ubuntu16.04.ppc64el.pkglist

use the ^^ to change pktlist, then try again...

urielrosen commented 4 years ago

Thanks , I will try .

Another question , do you have a manual on how to add a new image for diskfull install of centos 8(already have a working centos 7 installation with postscripts) , can I replicate this centos 7 to centos 8 installation , I will be happy for full instructions on how to achieve this.

Thanks, Uriel.

From: cxhong notifications@github.com Sent: Monday, December 9, 2019 6:46 PM To: xcat2/xcat-core xcat-core@noreply.github.com Cc: Uriel Rosen uriel.rosen@weizmann.ac.il; Mention mention@noreply.github.com Subject: Re: [xcat2/xcat-core] Ubuntu 16.04.6 installation fails after pxe boot (#6458)

sorry for the late response.. for the osimage:

sdef -t osimage ubuntu16.04.6-x86_64-install-compute

Object name: ubuntu16.04.6-x86_64-install-compute

imagetype=linux

osarch=x86_64

osname=Linux

osvers=ubuntu16.04.6

otherpkgdir=/install/post/otherpkgs/ubuntu16.04.6/x86_64

pkgdir=/install/ubuntu16.04.6/x86_64

pkglist=/opt/xcat/share/xcat/install/ubuntu/compute.pkglist

profile=compute

provmethod=install

template=/opt/xcat/share/xcat/install/ubuntu/compute.tmpl

Did u create it via copycds? the pkglist is not correct.

chdef -t osimage ubuntu16.04.6-x86_64-install-compute pkglist=/opt/xcat/share/xcat/install/ubuntu/compute.ubuntu16.04.ppc64el.pkglist

use the ^^ to change pktlist, then try again...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/xcat2/xcat-core/issues/6458?email_source=notifications&email_token=ANSIVRMACAEEQKENJLVE3LTQXZY57A5CNFSM4JEO6LCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGJ3BFQ#issuecomment-563327126, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANSIVRPDSJAQNAUNX2TQ6LLQXZY57ANCNFSM4JEO6LCA.