*
News: SMF - Just Installed!


Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

VMcontrol/Capture question and Capture a RHEL question 3285

Super Newbie Posts: 35 Karma: +3/-0 *
VMcontrol/Capture question and Capture a RHEL question
« on: September 22, 2014, 10:58:19 AM »
When I use VMControl to capture a NEW Virtual Appliance on my PureFlex, where the heck does the mksysb go? 

And when I capture a RHEL workload, what format is that in (it's not AIX so I doubt it's a mksysb) and where the heck does that go?

I need to move images between servers and I'd rather not do a mksysb myself since it's already stored someplace/

>>>>Ericw
Administrator Sr. Member Posts: 309 Karma: +6/-0 *****
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #1 on: September 22, 2014, 11:51:25 AM »
Eric,

It should go in the VIOS repository on the VIOS server that you captured the Virtual Appliance from. Here is a snippet from a redbook about VMcontrol, it sounds like captured VA's are not mksysbs but function like OVF's.

Capturing a source to create a virtual appliance (attached diagram relates to these steps.
You can capture from a variety of sources to create a virtual appliance. You can
then deploy the resulting virtual appliance to create a new virtual server that is
complete with a fully functional operating system and software applications.
You can create a virtual appliance by capturing any of the following sources:
v virtual server
v workload
v AIX mksysb image file
v AIX mksysb resource
v AIX lpp_source resource
v AIX lpp_source directory
Capture:
The Capture task enables you to capture from a variety of sources to create a
virtual appliance. You can then deploy the virtual appliance to create a new virtual
server that is complete with a fully functional operating system and software
applications.
The following diagram shows how a virtual server or workload is captured to
create a new virtual appliance.
1. A user selects a virtual server or a workload that contains a single virtual
server to capture, virtual server A.
2. Capturing virtual server A results in a virtual appliance, virtual appliance A,
stored by VMControl.
3. Virtual appliance A is composed of metadata that describes the virtual server,
and a reference to Image A. Image A contains the full operating system and
software applications and is stored in a VMControl image repository.
4. After Virtual appliance A is captured, you can use VMControl to deploy Virtual
appliance A one or more times into your environment.
IBM Systems Director VMControl V2.4.3 195You can create a virtual appliance by capturing any of the following sources:
v virtual server
v workload
v AIX mksysb image file
v AIX mksysb NIM resource
v AIX lpp_source NIM resource
v AIX lpp_source directory

Try running the List Virtual appliance command on the FSMs CLI to see if that gives you anymore information.

smcli lsva

I'm not sure exactly what the format is for RHEL possibly .OVF/.OVA like the AIX captures?
Super Newbie Posts: 35 Karma: +3/-0 *
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #2 on: September 22, 2014, 01:08:54 PM »
But that still doesn't tell me where the darn file is :-(  Not even smcli lsva tells me where it is.

I know it goes to a repository, I just need to be able to `cp` from that file repository to someplace else so I can import it into another repo someplace else.  I'll keep looking around.  I KNOW you can do this, it's just how do I do this.

>>>>>>>>Ericw
Administrator Sr. Member Posts: 309 Karma: +6/-0 *****
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #3 on: September 22, 2014, 01:25:52 PM »
If your VIOS server has this mounted filesystem check there.

/var/vio/VMLibrary
Super Newbie Posts: 35 Karma: +3/-0 *
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #4 on: September 22, 2014, 01:28:35 PM »
That just has my installation .iso files :-(
Administrator Sr. Member Posts: 309 Karma: +6/-0 *****
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #5 on: September 22, 2014, 01:42:09 PM »
Darn, they don't make this easy. I found this in the latest VMcontrol doc. Does this help at all?

Managing virtual appliances
Depending on the type of virtual appliances that you manage in your data center,
you can use the Web interface or manual methods to perform management tasks
for your virtual appliances.
Copying a virtual appliance
You can copy a virtual appliance in Power Systems environments that rely on
either AIX Network Installation Manager (NIM) or storage copy services (SCS).
About this task
See the instructions for your environment.
Copying a virtual appliance stored in a NIM-based image repository:
IBM Flex System Manager VMControl does not provide an explicit task for
copying a virtual appliance. However, you can use tasks such as Import and
Capture to create copies of virtual appliances.

About this task
To copy a virtual appliance that contains an AIX mksysb image, you have the
following options:
v Import the same AIX mksysb virtual appliance package to different NIM master
image repositories.
v Import the same AIX mksysb virtual appliance package multiple times to the
same NIM master image repository.
v Capture the same AIX virtual server, workload, or existing AIX mksysb image
file using different NIM master image repositories.
v Capture the same AIX virtual server, workload, or existing AIX mksysb image
file multiple times to the same NIM master image repository.
To copy a virtual appliance that contains an AIX lpp-source resource, you have the
following options:
v Start with distinct copies of the lpp_source resource on different NIM masters,
and capture each distinct copy of the resource.
188 VMControl
Super Newbie Posts: 35 Karma: +3/-0 *
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #6 on: September 22, 2014, 02:01:19 PM »
I found "IBM Systems Director VMControl Implementation Guide on IBM Power Systems"

P 117

4.3.1 "Copying a virtual appliance", but sadly, it references /export/nim , which does not exist on my FSM.

Sadly, MOST of the stuff I've found online references /export/nim, and it's just not there, nor can I find anf files that are larger than 1 Gig that look like msysb's

(I used `find / -type f -size +1G`  on my FSM. (as root))

AND, I was able to capture a RHEL instance using capture, but I have no idea where it went to.

This is NOT easy.

>>Ericw

>>>Ericw
 
Administrator Sr. Member Posts: 309 Karma: +6/-0 *****
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #7 on: September 22, 2014, 02:12:49 PM »
It seems as if they don't want you to know where it is, which is ridiculous and are only giving directions to capture the Virtual Appliance AGAIN and into another repository which sounds like that's not what you're after. I'm fairly certain the actual files you want are on the VIOS unless you're looking for the "pointer" files that the FSM holds so it knows about the captured VA's.

At this point the only thing I can suggest is try to open a ticket and press IBM for answers.   :-\
Super Newbie Posts: 35 Karma: +3/-0 *
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #8 on: September 22, 2014, 02:29:21 PM »
Oh CRUD...  It looks like it creates the (whatever format) file on the V7000.

Please see the two screenshots below.

The first is a screenshot of my "Virtual Appliances".  Please note their names.

the second is a screenshot of my V7000.  You will find the names of my Virtual Appliances as volumes on my V7000.

So there is NO mksysb or ovf that I can tell/find. it's some kind of superfast disk copy that takes place and I'm toast.

I think I'll have to do a mksysb by hand of my AIX LPARS and copy THAT to my otherPureFlex.  I have no idea how to do this with RHEL...


Administrator Sr. Member Posts: 309 Karma: +6/-0 *****
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #9 on: September 22, 2014, 02:38:29 PM »
Thats right, I do remember the v7000 holding the actual disk images. That's assuming the LPAR you captured is NPIV and lives on the same v7000. For iSCSI however, I'm not sure where it would copy?

Is the problem with the RHEL server that it won't capture? Is it a VM or LPAR?
Super Newbie Posts: 35 Karma: +3/-0 *
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #10 on: September 22, 2014, 02:48:56 PM »
I can capture it, since it's just a disk image.  I'm opening a PMR this afternoon on this issue, and dragging in some experts from IBM.  Luckily, IBM (sometimes) wants us to be happy, so I might get an answer.

OTOH, I'll be making another post this afternoon about ANOTHER problem I had that IBM was unable to help us with in a timely manner.

>>>Ericw
Administrator Sr. Member Posts: 309 Karma: +6/-0 *****
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #11 on: September 22, 2014, 03:27:10 PM »
Thanks, Eric. Keep us posted!
Super Newbie Posts: 35 Karma: +3/-0 *
Re: VMcontrol/Capture question and Capture a RHEL question
« Reply #12 on: September 22, 2014, 04:02:26 PM »
I have not heard back from IBM yet, but...

For RHEL....

On the source RHEL server
yum install dump
yum install man
yum install nfs-utils
mkdir /backup_dir
mount -t nfs  cfg.it.marist.edu:/home/mksysb /backup_dir
dump -0 -f /backup_dir/liferay.dump /dev/mapper/VolGroup-lv_root

On the TARGET

It looks like I have to do a "base" install of rhel...

Boot from DVD (again)

enter "linux rescue"

Start networking

go to shell

mount the main partition (which will be /mnt/sysimage )

cd /mnt/sysimage

mkdir /backup_dir

mount -t nfs  cfg.it.marist.edu:/home/mksysb /backup_dir

cp /etc/fstab /etc/fstab-new-machine-name

run `restore -if /backup_dir/name_of_server.dump`
add the subdirectories, ignoring /proc /boot /dev

cp /etc/fstab-new-machine-name /etc/fstab

FIX the IP address and hostname and for some reason change eth0 to eth1

reboot

and it seems to work.

If IBM has a better idea then I'll post that as well.

I find it hard to believe we're the only place that is trying to move images from one PureFlex to another PureFlex...

>>>>Ericw
« Last Edit: September 22, 2014, 04:40:24 PM by wedaa »