[CentOS-devel] Booting CentOS 8 in a VM - can't find the disk

Richard W.M. Jones

rjones at redhat.com
Wed Sep 25 15:46:40 UTC 2019


I'm trying to boot CentOS 8 in a VM using my usual kickstart and
virt-install recipes.  Dracut fails in a way that indicates it cannot
find the install disk:

[    4.984555] IPv6: ADDRCONF(NETDEV_UP): enp1s0: link is not ready
[    4.985509] 8021q: adding VLAN 0 to HW filter on device enp1s0
[    5.599558] IPv6: ADDRCONF(NETDEV_CHANGE): enp1s0: link becomes ready
[    7.058879] dracut-initqueue[926]: RTNETLINK answers: File exists
[  134.439929] dracut-initqueue[926]: Warning: dracut-initqueue timeout - starting timeout scripts
[  134.969517] dracut-initqueue[926]: Warning: dracut-initqueue timeout - starting timeout scripts
[  135.488283] dracut-initqueue[926]: Warning: dracut-initqueue timeout - starting timeout scripts
(repeated endlessly until it drops into the emergency shell)

The kernel sees the virtio-blk device, the kmod is loaded, and
/dev/vda exists ...

So I don't really know.  Can anyone see my mistake?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
-------------- next part --------------
# This is the virt-install command which was used to create
# the virt-builder template 'centos-8.0'
# NB: This file is generated for documentation purposes ONLY!
# This script was never run, and is not intended to be run.

'virt-install' \
    '--transient' \
    '--name=tmp-mg266ph7' \
    '--ram=2048' \
    '--arch=x86_64' \
    '--cpu=host' \
    '--vcpus=4' \
    '--os-variant=rhel8.0' \
    '--initrd-inject=centos-8.0.ks' \
    '--extra-args=ks=file:/centos-8.0.ks  console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH' \
    '--disk=/home/rjones/d/libguestfs/builder/templates/tmp-mg266ph7.img,size=6,format=raw' \
    '--location=http://mirror.centos.org/centos-8/8/BaseOS/x86_64/os' \
    '--serial=pty' \
    '--nographics' 

-------------- next part --------------
# Kickstart file for centos-8.0
# Generated by libguestfs.git/builder/templates/make-template.ml

install
text
reboot
lang en_US.UTF-8
keyboard us
network --bootproto dhcp
rootpw builder
firewall --enabled --ssh
timezone --utc America/New_York
selinux --enforcing

bootloader --location=mbr --append="console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH"

zerombr
clearpart --all --initlabel --disklabel=gpt
autopart --type=plain

# Halt the system once configuration has finished.
poweroff

%packages
@core
%end

# EOF


More information about the CentOS-devel mailing list