LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2015, 03:44 AM   #1
babe_ruth
LQ Newbie
 
Registered: Nov 2015
Posts: 2

Rep: Reputation: Disabled
Centos deployment problems on KVM


Hi,

I'm trying to create a VM from Centos ISO file.
I've created successfully an interactive Centos 7. But when i tried creating a centos with kickstart file I've encountered some problems

This is what I ran:

1. qemu-img create -f qcow2 /opt/disk3.qcow2 20G

2. virt-install --virt-type kvm --name allotOS --ram 4096 --cdrom=/opt/OS.iso --disk /opt/disk3.qcow2,format=qcow2 --network network=default --graphics vnc,listen=0.0.0.0 --noautoconsole --os-type=linux --os-variant=rhel6

3.This is my kickstart file (just the beginning)

install
# Use DVD installation media
cdrom
lang en_US.UTF-8
#System keyboard
keyboard us
#System timezone
timezone --utc GMT

network --onboot yes --device eth0 --bootproto static --ip 11.11.11.11 --netmask 255.255.0.0 --noipv6 --gateway 11.11.0.1 --nameserver 198.168.254.2

#Root password
rootpw --iscrypted $1$R.alKkPn$kzGDYBkJKb3Tc2OcjSFu7.
#Initial user
#user --name=admin --iscrypted --password=Ce455MjL5TAqc
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --disabled

bootloader --location=mbr --append="crashkernel=auto transparent_hugepage=never rhgb quiet" --driveorder=vda
#************PARTITIONING *************************
zerombr
## ignoredisk --only-use=vda
clearpart --drives=vda --all --initlabel
part / --fstype ext4 --size=20000 --asprimary --ondisk=vda
#part swap --size=8192
%include /tmp/swappart
part /opt --fstype ext4 --size=100 --grow --asprimary --ondisk=vda
#Reboot after installation
reboot --eject
#Use text mode install
#text



4. the error i recieve is: "Boot failed: Couldnt read from CDROM (codde0004)

Any advice?

Thx
 
Old 11-11-2015, 11:35 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
A few steps that I would have tried:

Can you connect that ISO file to another virtual machine and access it from there?

And when does the error occur - before syslinux starts or after?
Are there any other messages, error or not, before "boot failed"?

I also wonder if SELinux could be involved. If your VM host has SELinux, set it to permissive.

Centos 7 now allows checking a kickstart file with the ksvalidator program (yum install pykickstart). Tried it?
 
Old 11-12-2015, 02:42 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
it should NOT be a SE issue on the cent host

installing the KVM from yum will have set the CORRECT SE context



Quote:
"Boot failed: Couldnt read from CDROM (codde0004)
--------
--cdrom=/opt/OS.iso
cent7 iso is NOT called "OS.iso"

please use the REAL name
"CentOS-7-x86_64-DVD-1503-01.iso"
or
"CentOS-7-x86_64-Everything-1503-01.iso"
 
Old 11-23-2015, 01:17 AM   #4
babe_ruth
LQ Newbie
 
Registered: Nov 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Issue resolved

The problem was with the ISO file.
The only change made to the original ISO is the change of disks.
In original (for physical disks) the disk is sda. For virtual the disk is vda
 
  


Reply



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
KVM on CentOS 6.4 (x86_64): problems configuring bridge walterbyrd Linux - Virtualization and Cloud 11 07-27-2013 04:38 PM
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 10:46 AM
[SOLVED] Centos 6 and KVM - how to setup bridged networking in KVM in a -Class B- environment? rylan76 Linux - Virtualization and Cloud 7 11-07-2012 06:46 AM
CentOS 5 Samba3 3.3.14 deployment mmugo Linux - Server 1 11-17-2010 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:25 AM.

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