The mkdef -u option was added in xCAT 2.8, which is why you are getting the
"invalid option" error. What the -u flag does is set default paths for
your imagedir and other attributes based on the "old"
arch/profile/provmethod search algorithms.
The easiest way to create a new osimage in xCAT 2.7.8 is to first run
copycds (if you have not done so in a recent version of xCAT) which will
create standard osimage defs corresponding with the distro you just copied.
Sounds like you have already done that if you can see a full def for your
centos6.2-x86_64-install-vm. So, then one way to make a new image similar
to that one is:
lsdef -t osimage centos6.2-x86_64-install-vm -z > /tmp/newosimage.def
vi /tmp/newosimage.def
## make sure to change at least the object name
## for diskless and statelite image, also make sure to set a
unique rootimgdir so you don't accidently overwrite an existing diskless
image
## change any other attrs you would like to customize for this
osimage, especially: template, pkglist, otherpkglist, pkgdir, otherpkgdir
cat /tmp/newosimgage.def > mkdef -z
Then to make sure it's what you want:
lsdef -t osimage -l <newosimage>
If you're not sure what some of the attrs might be, if you have a node that
is using the old arch/profile/provmethod, you can do:
lsdef <node> --osimage
and it will include the template, pkglist, etc., attrs in the node
definition output.
Linda
From: Garrick Staples <[email protected]>
To: xCAT Users Mailing list <[email protected]>
Date: 06/17/2014 08:18 PM
Subject: [xcat-user] osimage dabbling before upgrading to 2.8
Hi all,
I'm on xcat 2.7.8 right now and preparing for 2.8.x. I'm trying to play
with osimages a bit but can't seem to define a new one. I see that
several already exist with 'lsdef -t osimage'. I can see the details of
one with, say, 'lsdef -t osimage centos6.2-x86_64-install-vm'. But I
can't make a new one...
$ mkdef -t osimage centos6.5-x86_64-install-vm -u imagetype=linux
osarch=x86_64 osname=Linux osvers=centos6.2 profile=vm provmethod=install
Error: Invalid option..
Should I just go ahead and upgrade to 2.8.x first? I want to get my
bearings straight on osimage before I am forced to migrate. I don't want
to disrupt my users.
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user