LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices



Reply
 
Search this Thread
Old 01-24-2012, 08:03 AM   #1
karthickk02
Member
 
Registered: Sep 2010
Posts: 46

Rep: Reputation: 0
Centos 6 template creation


I am trying to create a xen pv cenots6 template using kickstart file. I have used the below parition method for partitioning the xvda disk,

zerombr
clearpart --all --initlabel --drives=xvda1
clearpart --all --initlabel --drives=xvda2
part / --fstype ext4 --size=1 --grow --ondisk=xvda1
part swap --fstype swap --size=512 --grow --maxsize=512 --ondisk=xvda2

But I am getting the error on this parition steps as,

==========
anaconda 13.21.149 exception report
Traceback (most recent call first):
File
"/usr/lib/anaconda/storage/partitioning.py", line
1033, in allocatePartitions
disklabel = disklabels[_disk.path]
File
"/usr/lib/anaconda/storage/partitioning.py", line
906, in doPartitioning
allocatePartitions(storage, disks, partitions,
free)
File
..........
........
File "/usr/bin/anaconda", line 1116, in <module>
anaconda.intf.run(anaconda)
KeyError: '/dev/xvda1'
==========

But if I use the below method it works, which is used a one hdd xvda only

zerombr
clearpart --all --initlabel --drives=xvda
part /boot --fstype ext3 --size=100 --ondisk=xvda
part pv.2 --size=1 --grow --ondisk=xvda
volgroup VolGroup00 pv.2
logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1 --grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=256 --grow --maxsize=512


Any suggestion please to get it work with the issue method?
 
Old 01-29-2012, 03:09 PM   #2
spoore
LQ Newbie
 
Registered: Aug 2004
Posts: 23

Rep: Reputation: 2
Do you actally have two disks that show up as xvda1 and xvda2? I'd have expected xvda and xvdb.

Also, assuming you have two disks, xvda1 and xvda2 (instead of xvda and xvdb) I believe you just need one clearpart line:

clearpart --all --initlabel

At the very least, I think you can combine the two:

clearpart --all --initlabel --drives=xvda1,xvda2

I'd try switching xvda1 to xvda and xvda2 to xvdb first unless you know that you've got two disks with those device names. If you do, then you may try looking through the fedora kickstart guide:

http://fedoraproject.org/wiki/Anaconda/Kickstart
 
  


Reply

Tags
centos, xen


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resume creator - export options : template vs non-template approach vharishankar Programming 1 12-08-2011 12:11 AM
CentOS ISO Creation from OS files gvsagar Linux - General 6 05-11-2011 02:14 AM
Creation of clustered storage on CentOS 5.5 aschoessler Linux - Server 1 09-27-2010 02:46 PM
from django.template import Template, gives output firedancer Linux - Newbie 0 11-30-2007 03:08 PM


All times are GMT -5. The time now is 03:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration