KVM Installation Issue - CentOS7 - Dracut error

General support questions
srinivas_pithani
Posts: 21
Joined: 2018/06/08 17:25:29

KVM Installation Issue - CentOS7 - Dracut error

Post by srinivas_pithani » 2018/06/08 17:32:36

hi there, I am trouble creating KVM VMs on my Dell Poweredge System .

i am using following command
virt-install --virt-type=kvm --name vm02 --ram 2048 --vcpus=2 --disk path=/var/lib/libvirt/images/centos_vm02.qcow2,bus=virtio,size=10 --os-variant=centos7.0 --network bridge=virbr0 --console pty,target_type=serial --location '/root/kvm/centos7/CentOS-7-x86_64-DVD-1804.iso.1' --extra-args 'console=ttyS0,115200n8 serial ks=/root/kvm/ks7.cfg' --nographics

I have no clue on why this error is coming . FYI , if I tried using of the image from http link , it seemed to work , but I have to struggle with command line selection , I dont want to do that way . The checksum of the iso I am using matches and unfortunately I dont want to use VNC as I want this to be automated for faster installations over my farm.

I am directed with this error :

Code: Select all

[    7.555375] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc100 irq 14
[    7.560833] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc108 irq 15
[    7.583565] 8021q: 802.1Q VLAN Support v1.8
[  132.053195] dracut-initqueue[694]: Warning: dracut-initqueue timeout - starting timeout scripts
(...)
[  OK  ] Started Device-Mapper Multipath Device Controller.
         Starting Open-iSCSI...
[  OK  ] Started Open-iSCSI.
         Starting dracut initqueue hook...
[  132.053195] dracut-initqueue[694]: Warning: dracut-initqueue timeout - starting timeout scripts
[  132.578081] dracut-initqueue[694]: Warning: dracut-initqueue timeout - starting timeout scripts
(...)
[  193.536300] dracut-initqueue[694]: Warning: Could not boot.
[  193.720339] dracut-initqueue[694]: Warning: /dev/root does not exist
         Starting Dracut Emergency Shell...
Warning: /dev/root does not exist

Generating "/run/initramfs/rdsosreport.txt"
(...)
dracut:/#
Appreciate any inputs .

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: KVM Installation Issue - CentOS7 - Dracut error

Post by avij » 2018/06/08 17:40:08

Use -c instead of --location for .iso images.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: KVM Installation Issue - CentOS7 - Dracut error

Post by hunter86_bg » 2018/06/08 18:12:30

ks=/root/kvm/ks7.cfg'
SELINUX might prevent access in some cases (when virt-install is not started by a user).

srinivas_pithani
Posts: 21
Joined: 2018/06/08 17:25:29

Re: KVM Installation Issue - CentOS7 - Dracut error

Post by srinivas_pithani » 2018/06/11 12:55:54

avij wrote:
2018/06/08 17:40:08
Use -c instead of --location for .iso images.
This doesnt help as I get the following error
wrote: ERROR --extra-args only work if specified with --location. See the man page for examples of using --location with CDROM media
I tried removing the extra-args , but doesn't take it further.

srinivas_pithani
Posts: 21
Joined: 2018/06/08 17:25:29

Re: KVM Installation Issue - CentOS7 - Dracut error

Post by srinivas_pithani » 2018/06/11 12:57:43

hunter86_bg wrote:
2018/06/08 18:12:30
ks=/root/kvm/ks7.cfg'
SELINUX might prevent access in some cases (when virt-install is not started by a user).
I haven't installed the system yet , I am in the process of installaing the system .

srinivas_pithani
Posts: 21
Joined: 2018/06/08 17:25:29

Re: KVM Installation Issue - CentOS7 - Dracut error

Post by srinivas_pithani » 2018/06/11 13:09:31

When I use the following location for image, the installation proceeds and take me to a text version of GUI installation & I can proceed from there - this is not what I would like to have .

It doesnt take my ks file , thats a different issue , prb not related to this , will check myself.

virt-install --virt-type=kvm --name vm02 --ram 2048 --vcpus=2 --disk path=/var/lib/libvirt/images/centos_vm02.img.qcow2,bus=virtio,size=10 --os-variant=centos7.0 --network bridge=virbr0 --console pty,target_type=serial --location 'http://mirror.i3d.net/pub/centos/7/os/x86_64/' --extra-args 'console=ttyS0,115200n8 serial ks=/root/kvm/ks7.cfg' --nographics
Last edited by srinivas_pithani on 2018/06/11 13:41:40, edited 1 time in total.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: KVM Installation Issue - CentOS7 - Dracut error

Post by avij » 2018/06/11 13:25:55

How do you think the virtual machine can access /root/kvm/ks7.cfg?

srinivas_pithani
Posts: 21
Joined: 2018/06/08 17:25:29

Re: KVM Installation Issue - CentOS7 - Dracut error

Post by srinivas_pithani » 2018/06/11 15:14:35

I want to say that I can install the machine without any kickstart kindof standard install , but the key problem is on why I am being taken into dracut shell .

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: KVM Installation Issue - CentOS7 - Dracut error

Post by hunter86_bg » 2018/06/11 17:20:35

Warning: /dev/root does not exist
Have you defined "/dev/root" anywhere ?

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: KVM Installation Issue - CentOS7 - Dracut error

Post by TrevorH » 2018/06/11 17:32:07

If it works if you only remove ks=/root/kvm/ks7.cfg from your virt-install line then I'd say that's pretty conclusive evidence that that is the problem. But that path will be interpreted from INSIDE the VM so will be looking at the VM's /root not the one on your host.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply