cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2875
Views
5
Helpful
9
Replies

Golden ISO migration script failed

Trying to create the Golden ISO for 9k using the gisobuild.py. Ubuntu machine and have confirmed that the Before You Begin has been completed from 

 

https://www.cisco.com/c/en/us/td/docs/iosxr/asr9000/flex-packaging/b-flexible-packaging-configuration-guide-asr9000/b-flexible-packaging-configuration-guide-asr9000_chapter_011.html#task_5E4058C984234F40BE37C63A6E9AD745

 

The script runs great if the -m is left off. When trying to make it with the migration option I get the following: Ideas?

 

Building Migration tar...
('\n', 'Exception:', <type 'exceptions.RuntimeError'>, RuntimeError('Error CMD=iso-read -i asr9k-goldenk9-x64.iso-6.4.1.0 -e /boot/initrd.img -o //tmp/initrd.img returned --->/bin/sh: 1: iso-read: not found\n',))
Detail logs: //Giso_build.log-2018-07-03:18:00:40.540934

1 Accepted Solution

Accepted Solutions

Hi

Couple of things can be verified as follow: -


* PATH variable could be empty, IF empty can be set using export command as given example.

[21:36:00]-[cmohapat@xit-ucs-01:~]$ echo $PATH
/router/bin::/usr/cisco/bin:/usr/cisco/etc:~/bin:/bin:/usr/X11R6/bin:/usr/sbin:/sbin:/usr/bin:/usr/cisco/bin:.
[21:52:46]-[cmohapat@xit-ucs-01:~]$

To set the path following command can be used
export PATH=”$PATH:/router/bin::/usr/cisco/bin:/usr/cisco/etc:~/bin:/bin:/usr/X11R6/bin:/usr/sbin:/sbin:/usr/bin:/usr/cisco/bin”



* Rpm for iso-read might not be installed. IF not can be installed using yum command for centos system

Following is the steps to see if the system has rpm installed and iso-read is present in the package.

[21:32:54]-[cmohapat@xit-ucs-01:~]$ which iso-read
/bin/iso-read
[21:33:20]-[cmohapat@xit-ucs-01:~]$ uname -a
Linux xit-ucs-01 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[21:33:27]-[cmohapat@xit-ucs-01:~]$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[21:33:40]-[cmohapat@xit-ucs-01:~]$ rpm -qa | grep libcdio
warning: Macro %_dbi_tags needs whitespace before body
libcdio-0.92-1.el7.x86_64
libcdio-paranoia-10.2+0.90-11.el7.x86_64
[21:35:36]-[cmohapat@xit-ucs-01:~]$ rpm -ql libcdio-0.92-1.el7.x86_64 | grep iso-read
warning: Macro %_dbi_tags needs whitespace before body
/usr/bin/iso-read
/usr/share/man/man1/iso-read.1.gz
[21:36:00]-[cmohapat@xit-ucs-01:~]$
Following is the command to install libcdio package in centos system

yum install libcdio

Eddie.

View solution in original post

9 Replies 9

xr-escalation
Level 1
Level 1
Hi,

Can you please run the following command?

#which iso-read

example:

[root@xit-ucs-01 giso]# which iso-read
/usr/bin/iso-read
[root@xit-ucs-01 giso]#

Eddie.

It doesn’t exist. I have checked 3 different linux systems and searched for the command to download and can’t find it. Ubuntu 18.04, Alpine(docker), and CentOS 7.4.

Hi

Couple of things can be verified as follow: -


* PATH variable could be empty, IF empty can be set using export command as given example.

[21:36:00]-[cmohapat@xit-ucs-01:~]$ echo $PATH
/router/bin::/usr/cisco/bin:/usr/cisco/etc:~/bin:/bin:/usr/X11R6/bin:/usr/sbin:/sbin:/usr/bin:/usr/cisco/bin:.
[21:52:46]-[cmohapat@xit-ucs-01:~]$

To set the path following command can be used
export PATH=”$PATH:/router/bin::/usr/cisco/bin:/usr/cisco/etc:~/bin:/bin:/usr/X11R6/bin:/usr/sbin:/sbin:/usr/bin:/usr/cisco/bin”



* Rpm for iso-read might not be installed. IF not can be installed using yum command for centos system

Following is the steps to see if the system has rpm installed and iso-read is present in the package.

[21:32:54]-[cmohapat@xit-ucs-01:~]$ which iso-read
/bin/iso-read
[21:33:20]-[cmohapat@xit-ucs-01:~]$ uname -a
Linux xit-ucs-01 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[21:33:27]-[cmohapat@xit-ucs-01:~]$ cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
[21:33:40]-[cmohapat@xit-ucs-01:~]$ rpm -qa | grep libcdio
warning: Macro %_dbi_tags needs whitespace before body
libcdio-0.92-1.el7.x86_64
libcdio-paranoia-10.2+0.90-11.el7.x86_64
[21:35:36]-[cmohapat@xit-ucs-01:~]$ rpm -ql libcdio-0.92-1.el7.x86_64 | grep iso-read
warning: Macro %_dbi_tags needs whitespace before body
/usr/bin/iso-read
/usr/share/man/man1/iso-read.1.gz
[21:36:00]-[cmohapat@xit-ucs-01:~]$
Following is the command to install libcdio package in centos system

yum install libcdio

Eddie.

libcdio did the trick. Thanks

Eddie Chami
Cisco Employee
Cisco Employee

Could you let us know how you solved it, so others reading this can learn.. thx 

Was resolved by adding the libcdio package which made the iso-read command available.

Great glad that worked.

In Ubuntu enviroment to fix the same issue I installed the following package:

sudo apt-get install libcdio-utils

 

Bye

Stefano.

Can you please try this one and update us if it fails again



https://github.com/ios-xr/gisobuild



Thanks

Syed