[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt-users] No driver found during virt-install / kickstart



Hi Folks:

I am getting a "No driver found" dialogue when I try to build a guest
using virt-install using a kickstart file. I am stuck. I am not sure how
to fix or even debug this problem.

Can anyone suggest a way forward? 

Here are the commands that I am using:

$ # ================================================================
$ # Create the volume
$ # ================================================================
virsh vol-create default /tools/vm/guests/guest1-vol.xml

$ # ================================================================
$ # Create a mount for the virt-install --location option.
$ # ================================================================
mkdir /opt/mnt
mount -o loop,ro /tools/iso/CentOS-6.3-x86_64-bin-DVD1.iso /opt/mnt

$ # ================================================================
$ # Create the kickstart file (used system-config-kickstart).
$ # ================================================================
$ cat /export/tools/vm/guests/guest1-ks.cfg
#platform=x86, AMD64, or Intel EM64T
#version=DEVEL
# Firewall configuration
firewall --enabled --http --ssh
# Install OS instead of upgrade
install
# Use CDROM installation media
cdrom
# Root password
rootpw --iscrypted $1$DAzH1SN3$6yzxoq6oRrXNw.qMkJU0H1
# System authorization information
auth  --useshadow  --passalgo=sha512
# Use graphical install
graphical
firstboot --disable
# System keyboard
keyboard us
# System language
lang en_US
# SELinux configuration
selinux --enforcing
# Installation logging level
logging --level=debug

# System timezone
timezone  America/Los_Angeles
# Network information
network  --bootproto=static --device=eth0 --gateway=192.168.2.1
--ip=192.168.2.68 --nameserver=192.168.2.71 --netmask=255.255.255.0
--onboot=on
# System bootloader configuration
bootloader --location=mbr
# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all  

%packages
@base
@client-mgmt-tools
@compat-libraries
@console-internet
@emacs
@hardware-monitoring
@network-file-system-client
@network-tools
@performance
@postgresql
@security-tools
@system-admin-tools
@virtualization-client

%end
EOF

$ # ================================================================
$ # Run virt-install
$ # ================================================================
virt-install \
    --accelerate \
    --location "/opt/mnt" \
    --disk device=disk,path="/var/lib/libvirt/images/guest1.img" \
    --graphics vnc \
    --name "guest1" \
    --os-type linux \
    --os-variant rhel6 \
    --ram 2048 \
    --vcpus 2,maxvcpus=2 \
    -v \
    -w bridge:br0 \
    -x 'ks=nfs:192.168.2.140:/export/tools/vm/guests/guest1-ks.cfg
ksdevice=eth0 ip=192.168.2.82 netmask=255.255.255.0
dns=192.168.2.71,8.8.8.8 gateway=192.168.2.1'

Regards,

Joe



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]