LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2016, 07:29 PM   #1
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
mkisofs of RHEL7 isos fails, /dev/root does not exist


I'm trying to create an ISO to be used by KVM under RHEL7.

- I mount the RHEL7 iso
- I then copy all of the contents to /var/tmp/isos
- Create a tar file and move it to another directory under /tmp

Code:
tar -czf /tmp/isos/rhel7.tar.gz .
- I run file and stat against the .iso file and it appears ok
- I uncompress the .tar.gz under /tmp/isos
- I then run the following mkisofs with the following:

Code:
mkisofs -o rhel7.iso -b isolinux/isolinux.bin -c isolinux/boot.cat 
-no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V rhel7.iso .
Using the information to mkisofs from this URL:

http://bencane.com/2013/06/12/mkisof...x-install-iso/

No errors so I launch KVM and start it up and once it boots up, I get the following error:

Code:
dracut-initqueue[548]:  Warning:  dracut-initqueue timeout - starting timeout scripts 
dracut-initqueue[548]: Warning:  Could not boot 
dracut-initqueue[548]: Warning:  /dev/root does not exist 
     Starting Dracut Emergency Shell...
Warning: /dev/root does not exist 

Generating "/run/initramfs/rdsosrepot.txt"

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

dracut:/#
I was under the impression that dracut for if there was no initram-fs under /boot.

So I'm not understanding if I didn't run mkisofs correctly or if I need to do something else to kick off this ISO correctly.

thanks

Last edited by JockVSJock; 12-27-2016 at 07:31 PM.
 
Old 12-27-2016, 10:06 PM   #2
pressman57
Member
 
Registered: Feb 2005
Location: Escondido Ca.
Distribution: Arch
Posts: 118

Rep: Reputation: 29
This may be a dumb question but if you have the iso why not install it in the usual way?

https://wiki.archlinux.org/index.php/QEMU
 
Old 12-28-2016, 08:10 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
I believe the problem is in the fstab entry.

The device doesn't have a /dev/root until the initrd creates one using udev. So unless there are rules for udev to create it, it won't exist.

All of mine specify the UUID for the root filesystem - not a /dev/root which does not normally exist.
 
Old 12-28-2016, 01:50 PM   #4
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by jpollard View Post
I believe the problem is in the fstab entry.

The device doesn't have a /dev/root until the initrd creates one using udev. So unless there are rules for udev to create it, it won't exist.

All of mine specify the UUID for the root filesystem - not a /dev/root which does not normally exist.

Even those this is systemd with RHEL7, will it still utilize initrd?
 
Old 12-28-2016, 02:25 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Yes, it will.
 
Old 12-28-2016, 03:10 PM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Quote:
Originally Posted by JockVSJock View Post
Even those this is systemd with RHEL7, will it still utilize initrd?
Yes.

The initrd is loaded with the kernel, and doesn't require any devices as it is a memory resident filesystem. Once it is created from the initrd file (a cpio output file I believe it is), the initrd is deallocated.

At that point the system root is the memory resident filesystem - and udev (and even systemd) get started from that. udev then queries for the devices attached, loads drivers (which get added to the /dev), and other utilities can make scans for logical volumes/device raid/filesystem labels... all of which get added to /dev - somewhere, most are in /dev/disk/*/* as symbolic links pointing to the current devices (/dev/sdx).

To have a /dev/root as a device requires udev to create the entry (or a symbolic link to the physical name).

It has been quite a while since I've used a system as /dev/root (which started with SGI, and got carried over to RH), but even RH stopped a while back. My problem with it, as originally done, was that I couldn't easily tell WHICH device was really the root device.
 
Old 12-30-2016, 07:33 PM   #7
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by pressman57 View Post
This may be a dumb question but if you have the iso why not install it in the usual way?

https://wiki.archlinux.org/index.php/QEMU
There is a flaw with the version of KVM, that I can't point it to the ISO and create a VM.

I have to download the contents and go thru the steps of creating an ISO.
 
Old 01-03-2017, 08:22 PM   #8
JockVSJock
Senior Member
 
Registered: Jan 2004
Posts: 1,420

Original Poster
Blog Entries: 4

Rep: Reputation: 164Reputation: 164
Got it to work, with the install ISO physically in the CDROM tray

Code:
dd if=/dev/sr0 of=/tmp/rhel7.2.iso
dd saves the day again, such a powerful command. I am able to boot off of this iso in KVM.

thanks
 
  


Reply

Tags
dracut, mkisofs, rhel7


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RHEL7 installation fails: /dev/root does not exist PelleP Linux - Software 12 03-29-2020 12:39 AM
Kernel 4.4.1-1 fails to boot - root volume “does not exist” - 3.10.0.327 and 4.3.3-1 both continue to boot fine ifrazer Linux - General 7 03-04-2016 12:49 AM
GRUB root="/dev/sda1' does not exist. gentoo installation problem ununun Linux - General 2 08-01-2011 09:30 PM
Mint 6 install fails to boot dev/sda1/ does not exist JimboJuggs Linux - Distributions 9 03-06-2009 09:57 AM
fc8 fails to mount /dev/root bioe007 Fedora - Installation 5 01-16-2008 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration