Re: VCL Bootcamp notes on creating base images

2011-08-05 Thread Aaron Peeler
You'll need to use mysql or phpmyadmin to change an active host's vmprofile.

The profile is assigned in the vmhost

Get the id from the vmprofile table - the VMware ESX - local storage
profile is id 4

The update the vmhost table for that host.
This query assumes that you only have one vmhost in your vmhost table
or it's ok to change all of them:

update vmhost SET vmprofileid =4;


I think the restriction on not being able change an active vmhosts
profile to another profile was an oversight or it was related to xcat
based hypervisor installs. Regardless, I added a jira issue for it to
get fixed.
https://issues.apache.org/jira/browse/VCL-495

Aaron

On Fri, Aug 5, 2011 at 12:55 PM, Mark Gardner  wrote:
> OK next problem: I selected VMware "ESX - local & network storage"
> originally for the VM host profile as that is what we used during the
> bootcamp but the paths are wrong (e.g., /vmfs/volumes/local-datastore vs
> /vmfs/volumes/datastore1). I can edit the profile but in reality it should
> be "VMware ESX - local storage" (I will still need to correct the path). How
> do I change which profile is associated with a VM host?
> Mark
> --
> Mark Gardner
> --
>



-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.


Re: VCL Bootcamp notes on creating base images

2011-08-05 Thread Mark Gardner
OK next problem: I selected VMware "ESX - local & network storage"
originally for the VM host profile as that is what we used during the
bootcamp but the paths are wrong (e.g., /vmfs/volumes/local-datastore vs
/vmfs/volumes/datastore1). I can edit the profile but in reality it should
be "VMware ESX - local storage" (I will still need to correct the path). How
do I change which profile is associated with a VM host?

Mark

-- 
Mark Gardner
--


Re: VCL Bootcamp notes on creating base images

2011-08-05 Thread Aaron Peeler
It depends. I don't recall if the image capture request out right
fails and gets removed when vm-1 is in maintenance mode or not.

To check you can use mysql and run
select * from request;
If there is a request listed in maintenance state (statid=10) then you
could change the stateid back to image (stateid=16)

Or you can use vcld --setup again and give it a different image name.
(This is the easiest path and what I would recommend.)

Aaron


On Fri, Aug 5, 2011 at 12:11 PM, Mark Gardner  wrote:
> On Fri, Aug 5, 2011 at 10:49 AM, Aaron Peeler  wrote:
>>
>> Yes  Is this what your looking for:
>> https://cwiki.apache.org/confluence/display/VCL/Create+a+Linux+Base+Image
>>
>> Also I see vm-1 is in maintenance mode -
>> go to your Virtual Hosts tool on the VCL portal,
>> select the host - click the configure host
>> add vm-1 to esxi-host-1
>>
>> The image capture process will detect that vm-1 is in maintenance mode
>> and stop the process.
>>
>> Aaron
>
> I corrected that and started the image capture with vcld --setup. It stopped
> because I had forgotten to put vm-1 into /etc/hosts. I have fixed it but now
> vcld --setup complains "ERROR: failed to insert into image table" and won't
> continue. It seems like data that got entered into the database needs to be
> removed. Do I jump into mysql or is there a better way?
> Mark
> --
> Mark Gardner
> --
>



-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.


Re: VCL Bootcamp notes on creating base images

2011-08-05 Thread Mark Gardner
On Fri, Aug 5, 2011 at 10:49 AM, Aaron Peeler  wrote:

> Yes  Is this what your looking for:
> https://cwiki.apache.org/confluence/display/VCL/Create+a+Linux+Base+Image
>
> Also I see vm-1 is in maintenance mode -
> go to your Virtual Hosts tool on the VCL portal,
> select the host - click the configure host
> add vm-1 to esxi-host-1
>
> The image capture process will detect that vm-1 is in maintenance mode
> and stop the process.
>
> Aaron


I corrected that and started the image capture with vcld --setup. It stopped
because I had forgotten to put vm-1 into /etc/hosts. I have fixed it but now
vcld --setup complains "ERROR: failed to insert into image table" and won't
continue. It seems like data that got entered into the database needs to be
removed. Do I jump into mysql or is there a better way?

Mark

-- 
Mark Gardner
--


Re: Reserve a cluster in VCL

2011-08-05 Thread Aaron Peeler
Xianqing,

Just created this page.
https://cwiki.apache.org/confluence/display/VCL/Creating+a+Cluster+enviroment

Let me know if you see any typos or if it doesn't make sense.

Aaron

2011/8/4 Xianqing Yu :
> Hi guys,
>
> Do you know how to reserve a cluster in VCL? What is the configuration of
> the cluster?
>
> Thanks,
>
> Xianqing Yu
>
> --
> Graduate Research Assistant, Cyber Defense Lab
> Department of Computer Science
> North Carolina State University, Raleigh, NC
> E-mail: x...@ncsu.edu
>



-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.


Re: VCL Bootcamp notes on creating base images

2011-08-05 Thread Aaron Peeler
Yes  Is this what your looking for:
https://cwiki.apache.org/confluence/display/VCL/Create+a+Linux+Base+Image

Also I see vm-1 is in maintenance mode -
go to your Virtual Hosts tool on the VCL portal,
select the host - click the configure host
add vm-1 to esxi-host-1

The image capture process will detect that vm-1 is in maintenance mode
and stop the process.

Aaron



On Fri, Aug 5, 2011 at 10:26 AM, Mark Gardner  wrote:
> Thanks Aaron.
> On Fri, Aug 5, 2011 at 9:59 AM, Aaron Peeler  wrote:
>>
>> The first one means you have to have computer nodes and the exsi host
>> added to the vcl database.
>
> I think I have the ESXi host added to the database (through the web GUI). I
> also added a VM. They show up in Manage Computers->Computer Utilities as
> shown below:
> Hostname     IP Address  State        Owner        Schedule  Current Image
>  Next Image  VM Host
> esxi-host-1      vmhostinuse  admin@Local  VCL 24x7  No Image
>   No Image    N/A
> vm-1             maintenance  admin@Local  VCL 24x7  No Image
>   No Image    N/A
>>
>> The vcld --setup tool pulls the target node and esxi host information
>> from the database.
>>
>> Aaron
>
>
> I think I remembered another detail from the bootcamp. We were supposed to
> create an OS installation outside of VCL (in other words not using a
> reservation but directly in ESXi). That is the image that is pulled in
> through vcld --setup, right?
> Mark
> --
> Mark Gardner
> --
>



-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.


Re: VCL Bootcamp notes on creating base images

2011-08-05 Thread Mark Gardner
Thanks Aaron.

On Fri, Aug 5, 2011 at 9:59 AM, Aaron Peeler  wrote:

> The first one means you have to have computer nodes and the exsi host
> added to the vcl database.
>

I think I have the ESXi host added to the database (through the web GUI). I
also added a VM. They show up in Manage Computers->Computer Utilities as
shown below:

Hostname IP Address  StateOwnerSchedule  Current Image
 Next Image  VM Host
esxi-host-1  vmhostinuse  admin@Local  VCL 24x7  No Image
  No ImageN/A
vm-1 maintenance  admin@Local  VCL 24x7  No Image
  No ImageN/A

The vcld --setup tool pulls the target node and esxi host information
> from the database.
>
> Aaron


I think I remembered another detail from the bootcamp. We were supposed to
create an OS installation outside of VCL (in other words not using a
reservation but directly in ESXi). That is the image that is pulled in
through vcld --setup, right?

Mark

-- 
Mark Gardner
--


Re: VCL Bootcamp notes on creating base images

2011-08-05 Thread Aaron Peeler
The first one means you have to have computer nodes and the exsi host
added to the vcl database.

The vcld --setup tool pulls the target node and esxi host information
from the database.

Aaron

On Fri, Aug 5, 2011 at 8:38 AM, Mark Gardner  wrote:
> Thanks. I was aware of that page. I am having troubles with the first
> requirement. What does it mean for the "computer being captured has been
> added to the VCL database"? I can do the rest once I figure out how to do
> that.
> Perhaps a little background will help... I have installed ESXi, installed
> CentOS in a VM configured to be the management/web/database/DNS server as we
> did in the bootcamp, have configured a VM server (pointing back ESXi as per
> bootcamp), and have added a VM through the web interface (only one because
> the hardware is pretty anemic). I don't know what to do next.
> I think I need to create a new reservation, install CentOS and configure it
> as a base image, then capture it with vcld --setup. But I am not sure.
> BTW, I have been taking copious notes and am willing to put them on the
> wiki, perhaps under a newly created How-To page, if that would help. It
> seems a good way for me to give back considering my still limited
> understanding of many of the VCL details. How do I submit changes to the
> wiki?
> Mark
>
> On Fri, Aug 5, 2011 at 8:10 AM, Aaron Peeler  wrote:
>>
>> Hi Mark,
>>
>> Yes,  https://cwiki.apache.org/confluence/display/VCL/Base+Image+Creation
>>
>> On the top level wiki page it would be under the User  Documentation,
>> Documentation for VCL Administrators section.
>>
>> Aaron
>>
>>
>> On Thu, Aug 4, 2011 at 4:50 PM, Mark Gardner  wrote:
>> > Are the notes from the recent VCL bootcamp discussing how to create base
>> > images up somewhere?
>> >
>> > Mark
>> >
>> > --
>> > Mark Gardner
>> > --
>> >
>>
>>
>>
>> --
>> Aaron Peeler
>> Program Manager
>> Virtual Computing Lab
>> NC State University
>>
>> All electronic mail messages in connection with State business which
>> are sent to or received by this account are subject to the NC Public
>> Records Law and may be disclosed to third parties.
>
>
>
> --
> Mark Gardner
> --
>



-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.


Re: VCL Bootcamp notes on creating base images

2011-08-05 Thread Mark Gardner
Thanks. I was aware of that page. I am having troubles with the first
requirement. What does it mean for the "computer being captured has been
added to the VCL database"? I can do the rest once I figure out how to do
that.

Perhaps a little background will help... I have installed ESXi, installed
CentOS in a VM configured to be the management/web/database/DNS server as we
did in the bootcamp, have configured a VM server (pointing back ESXi as per
bootcamp), and have added a VM through the web interface (only one because
the hardware is pretty anemic). I don't know what to do next.

I think I need to create a new reservation, install CentOS and configure it
as a base image, then capture it with vcld --setup. But I am not sure.

BTW, I have been taking copious notes and am willing to put them on the
wiki, perhaps under a newly created How-To page, if that would help. It
seems a good way for me to give back considering my still limited
understanding of many of the VCL details. How do I submit changes to the
wiki?

Mark

On Fri, Aug 5, 2011 at 8:10 AM, Aaron Peeler  wrote:

> Hi Mark,
>
> Yes,  https://cwiki.apache.org/confluence/display/VCL/Base+Image+Creation
>
> On the top level wiki page it would be under the User  Documentation,
> Documentation for VCL Administrators section.
>
> Aaron
>
>
> On Thu, Aug 4, 2011 at 4:50 PM, Mark Gardner  wrote:
> > Are the notes from the recent VCL bootcamp discussing how to create base
> > images up somewhere?
> >
> > Mark
> >
> > --
> > Mark Gardner
> > --
> >
>
>
>
> --
> Aaron Peeler
> Program Manager
> Virtual Computing Lab
> NC State University
>
> All electronic mail messages in connection with State business which
> are sent to or received by this account are subject to the NC Public
> Records Law and may be disclosed to third parties.
>



-- 
Mark Gardner
--


Re: VCL Bootcamp notes on creating base images

2011-08-05 Thread Aaron Peeler
Hi Mark,

Yes,  https://cwiki.apache.org/confluence/display/VCL/Base+Image+Creation

On the top level wiki page it would be under the User  Documentation,
Documentation for VCL Administrators section.

Aaron


On Thu, Aug 4, 2011 at 4:50 PM, Mark Gardner  wrote:
> Are the notes from the recent VCL bootcamp discussing how to create base
> images up somewhere?
>
> Mark
>
> --
> Mark Gardner
> --
>



-- 
Aaron Peeler
Program Manager
Virtual Computing Lab
NC State University

All electronic mail messages in connection with State business which
are sent to or received by this account are subject to the NC Public
Records Law and may be disclosed to third parties.