Re: Base Image creation - problems - PLEASE HELP

2011-11-03 Thread Evelio Quiros
Hello,

Ok, I actually have tried many times to create a base image. I had it with NIC 
1 in the private network and NIC 2 in the public previously.

Each time, when VCL deletes my base image and copies it back to the VM server, 
the networks on the nics are REVERSED.

When I start with nic 1 in Private and nic 2 in Public, it ends up with nic 1 
in Pub and nic 2 in Priv.
When I start with nic 1 in Public and nic 2 in Private, it ends up with nic 1 
in Priv and nic 2 in Pub.

The VM host profile has Virtual Switch 0 in Public and Virtual Switch 1 in 
Private.
The DHCP server is only listening on the private network.
I see unauthorized dhcp requests come in for public network IP addresses when 
VCL swaps them.

In the last attempt, I did something new: When the new image is brought up, I 
manually swapped the nics back before VCL times out waiting for the image to 
boot.
At that time, it declares the image a success, but it should not need such 
manual intervention.

Any clues why VCL decides to swap the networks ?

Al Quiros


From: Aaron Coburn acob...@amherst.edumailto:acob...@amherst.edu
Reply-To: vcl-user@incubator.apache.orgmailto:vcl-user@incubator.apache.org
Date: Wed, 2 Nov 2011 16:24:02 -0400
To: vcl-user@incubator.apache.orgmailto:vcl-user@incubator.apache.org
Subject: Re: Base Image creation - problems - PLEASE HELP

Evelio,
in our VCL setup and according to the docs on this page:

https://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image

you may want to try configuring your base image to use NIC 1 for the private 
network and NIC 2 for the public network.

The sshd configuration script that you ran on your base image typically closes 
ssh access over the public network, but if the two networks are switched, you 
may have inadvertently cut off access over the private network.

Aaron



--
Aaron Coburn
Systems Administrator and Programmer
Academic Technology Services, Amherst College
(413) 542-5451 acob...@amherst.edumailto:acob...@amherst.edu





On Nov 2, 2011, at 4:09 PM, Evelio Quiros wrote:

Hello,
Ok, I'm stumped.
I continue to have issues creating a base image on our vcl setup.

Here is my info:

I have a single server running web, management node, and database.
It has two interfaces, one on our private network, another on our public net.

I have a single Vmware server, also with two interfaces.
One interface, switch 0, is on our public net. It also has the VM management 
net.
Another interface, switch 1, is on our private net.
Each of these switches is labeled the same as in the Management node config.

When I create the base image to capture,
I create eth0 (nic1) on the public network, then
I create eth1 (nic2) on the private network.

I set them both to dhcp, and the dhcp server on the VCL server responds
and gives it an address of an image in my database.
I set the ssh key in the new image.
I set the image in /etc/hosts so that the server can resolve it.

I set the vcld to capture the image,
It begins and copies the image to the management node directory,
It deletes the image from the Vmware server, and re-creates the image
All well and good.

but then :
When the recreated image comes up,
The OTHER interface begins asking the dhcp server for addresses in the public 
network.
The dhcp server denies it as non-authoritative, and the private interface never 
comes up.
Even though it was able to dhcp previously.
The image creation completes successfully,
but the newly created image cannot connect to the vcl server.
So, I eventually get a failure message from VCL.

WHAT GIVES ???

Here is my error email:

reservation failed on image6: process failed after trying to load or make 
available

time: 2011-11-02 16:05:30
caller: State.pm:reservation_failed(213)
( 0) State.pm, reservation_failed (line: 213)
(-1) new.pm, process (line: 298)
(-2) vcld, make_new_child (line: 568)
(-3) vcld, main (line: 346)

management node: vcltst.fiu.eduhttp://vcltst.fiu.edu
reservation PID: 29777
parent vcld PID: 23341

request ID: 11
reservation ID: 11
request state/laststate: reload/image
request start time: 2011-11-02 15:53:56
request end time: 2011-11-02 16:23:56
for imaging: no
log ID: none

computer: image6
computer id: 7
computer type: virtualmachine
computer eth0 MAC address: 00:50:56:00:10:0a
computer eth1 MAC address: 00:50:56:00:10:0b
computer private IP address: 10.0.0.9
computer public IP address: 10.106.128.59
computer in block allocation: no
provisioning module: VCL::Module::Provisioning::VMware::VMware

vm host: vcldell01
vm host ID: 1
vm host computer ID: 1
vm profile: VMware ESX - local storage
vm profile VM path: /vmfs/volumes/datastore1
vm profile repository path: /images
vm profile datastore path: /vmfs/volumes/datastore1
vm profile disk type: localdisk

image: vmwarelinux-redhatbase10-v0
image display name: redhatbase
image ID: 10

Re: Base Image creation - problems - PLEASE HELP

2011-11-03 Thread Josh Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Al,

I haven't worked with setting up VM hosts much, but it sounds like you need to 
swap your Virtual Switches so that Virtual Switch 0 is Private and Virtual 
Switch 1 is Public.

Give that a try and let us know how it works.

Josh

On Thursday November 03, 2011, Evelio Quiros wrote:
 Hello,
 
 Ok, I actually have tried many times to create a base image. I had it with
 NIC 1 in the private network and NIC 2 in the public previously.
 
 Each time, when VCL deletes my base image and copies it back to the VM
 server, the networks on the nics are REVERSED.
 
 When I start with nic 1 in Private and nic 2 in Public, it ends up with nic
 1 in Pub and nic 2 in Priv. When I start with nic 1 in Public and nic 2 in
 Private, it ends up with nic 1 in Priv and nic 2 in Pub.
 
 The VM host profile has Virtual Switch 0 in Public and Virtual Switch 1 in
 Private. The DHCP server is only listening on the private network.
 I see unauthorized dhcp requests come in for public network IP addresses
 when VCL swaps them.
 
 In the last attempt, I did something new: When the new image is brought up,
 I manually swapped the nics back before VCL times out waiting for the
 image to boot. At that time, it declares the image a success, but it
 should not need such manual intervention.
 
 Any clues why VCL decides to swap the networks ?
 
 Al Quiros
- -- 
- ---
Josh Thompson
VCL Developer
North Carolina State University

my GPG/PGP key can be found at pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)

iEYEARECAAYFAk6y97gACgkQV/LQcNdtPQMiqgCeK06HLp+6QIYobUvQD1FssukV
sSkAn11mo1/j4wUmD98gDI8ZF718kQUF
=T16z
-END PGP SIGNATURE-


Base Image creation - problems - PLEASE HELP

2011-11-02 Thread Evelio Quiros
Hello,
Ok, I'm stumped.
I continue to have issues creating a base image on our vcl setup.

Here is my info:

I have a single server running web, management node, and database.
It has two interfaces, one on our private network, another on our public net.

I have a single Vmware server, also with two interfaces.
One interface, switch 0, is on our public net. It also has the VM management 
net.
Another interface, switch 1, is on our private net.
Each of these switches is labeled the same as in the Management node config.

When I create the base image to capture,
I create eth0 (nic1) on the public network, then
I create eth1 (nic2) on the private network.

I set them both to dhcp, and the dhcp server on the VCL server responds
and gives it an address of an image in my database.
I set the ssh key in the new image.
I set the image in /etc/hosts so that the server can resolve it.

I set the vcld to capture the image,
It begins and copies the image to the management node directory,
It deletes the image from the Vmware server, and re-creates the image
All well and good.

but then :
When the recreated image comes up,
The OTHER interface begins asking the dhcp server for addresses in the public 
network.
The dhcp server denies it as non-authoritative, and the private interface never 
comes up.
Even though it was able to dhcp previously.
The image creation completes successfully,
but the newly created image cannot connect to the vcl server.
So, I eventually get a failure message from VCL.

WHAT GIVES ???

Here is my error email:

reservation failed on image6: process failed after trying to load or make 
available

time: 2011-11-02 16:05:30
caller: State.pm:reservation_failed(213)
( 0) State.pm, reservation_failed (line: 213)
(-1) new.pm, process (line: 298)
(-2) vcld, make_new_child (line: 568)
(-3) vcld, main (line: 346)

management node: vcltst.fiu.edu
reservation PID: 29777
parent vcld PID: 23341

request ID: 11
reservation ID: 11
request state/laststate: reload/image
request start time: 2011-11-02 15:53:56
request end time: 2011-11-02 16:23:56
for imaging: no
log ID: none

computer: image6
computer id: 7
computer type: virtualmachine
computer eth0 MAC address: 00:50:56:00:10:0a
computer eth1 MAC address: 00:50:56:00:10:0b
computer private IP address: 10.0.0.9
computer public IP address: 10.106.128.59
computer in block allocation: no
provisioning module: VCL::Module::Provisioning::VMware::VMware

vm host: vcldell01
vm host ID: 1
vm host computer ID: 1
vm profile: VMware ESX - local storage
vm profile VM path: /vmfs/volumes/datastore1
vm profile repository path: /images
vm profile datastore path: /vmfs/volumes/datastore1
vm profile disk type: localdisk

image: vmwarelinux-redhatbase10-v0
image display name: redhatbase
image ID: 10
image revision ID: 10
image size: 16384 MB
use Sysprep: yes
root access: yes
image owner ID: 1
image owner affiliation: Local
image revision date created: 2011-11-02 15:51:12
image revision production: yes
OS module: VCL::Module::OS::Linux

user: vclreload
user name: vcl reload
user ID: 2
user affiliation: Local

RECENT LOG ENTRIES FOR THIS PROCESS:
2011-11-02 16:01:20|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
NOT responding to SSH, ports 22 or 24 are both closed
2011-11-02 16:01:20|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 
24: code returned false, seconds elapsed/remaining: 360/240, sleeping for 15 
seconds
2011-11-02 16:01:35|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 
25: waiting for image6 to respond to SSH
2011-11-02 16:01:35|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
NOT responding to SSH, ports 22 or 24 are both closed
2011-11-02 16:01:35|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 
25: code returned false, seconds elapsed/remaining: 375/225, sleeping for 15 
seconds
2011-11-02 16:01:50|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 
26: waiting for image6 to respond to SSH
2011-11-02 16:01:51|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
NOT responding to SSH, ports 22 or 24 are both closed
2011-11-02 16:01:51|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 
26: code returned false, seconds elapsed/remaining: 391/209, sleeping for 15 
seconds
2011-11-02 16:02:06|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 
27: waiting for image6 to respond to SSH
2011-11-02 16:02:07|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
NOT responding to SSH, ports 22 or 24 are both closed
2011-11-02 16:02:07|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 
27: code returned false, seconds elapsed/remaining: 407/193, sleeping for 15 
seconds
2011-11-02 16:02:22|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 
28: waiting 

Re: Base Image creation - problems - PLEASE HELP

2011-11-02 Thread Aaron Coburn
Evelio,
in our VCL setup and according to the docs on this page:

https://cwiki.apache.org/confluence/display/VCL/Create+a+Windows+Base+Image

you may want to try configuring your base image to use NIC 1 for the private 
network and NIC 2 for the public network.

The sshd configuration script that you ran on your base image typically closes 
ssh access over the public network, but if the two networks are switched, you 
may have inadvertently cut off access over the private network.

Aaron



--
Aaron Coburn
Systems Administrator and Programmer
Academic Technology Services, Amherst College
(413) 542-5451 acob...@amherst.edu





On Nov 2, 2011, at 4:09 PM, Evelio Quiros wrote:

 Hello,
 Ok, I'm stumped.
 I continue to have issues creating a base image on our vcl setup.
 
 Here is my info:
 
 I have a single server running web, management node, and database. 
 It has two interfaces, one on our private network, another on our public net.
 
 I have a single Vmware server, also with two interfaces.
 One interface, switch 0, is on our public net. It also has the VM management 
 net.
 Another interface, switch 1, is on our private net.
 Each of these switches is labeled the same as in the Management node config.
 
 When I create the base image to capture, 
 I create eth0 (nic1) on the public network, then 
 I create eth1 (nic2) on the private network.
 
 I set them both to dhcp, and the dhcp server on the VCL server responds 
 and gives it an address of an image in my database.
 I set the ssh key in the new image.
 I set the image in /etc/hosts so that the server can resolve it.
 
 I set the vcld to capture the image,
 It begins and copies the image to the management node directory,
 It deletes the image from the Vmware server, and re-creates the image
 All well and good. 
 
 but then :
 When the recreated image comes up, 
 The OTHER interface begins asking the dhcp server for addresses in the public 
 network.
 The dhcp server denies it as non-authoritative, and the private interface 
 never comes up.
 Even though it was able to dhcp previously.
 The image creation completes successfully, 
 but the newly created image cannot connect to the vcl server.
 So, I eventually get a failure message from VCL.
 
 WHAT GIVES ???
 
 Here is my error email:
 
 reservation failed on image6: process failed after trying to load or make 
 available
 
 time: 2011-11-02 16:05:30
 caller: State.pm:reservation_failed(213)
 ( 0) State.pm, reservation_failed (line: 213)
 (-1) new.pm, process (line: 298)
 (-2) vcld, make_new_child (line: 568)
 (-3) vcld, main (line: 346)
 
 management node: vcltst.fiu.edu
 reservation PID: 29777
 parent vcld PID: 23341
 
 request ID: 11
 reservation ID: 11
 request state/laststate: reload/image
 request start time: 2011-11-02 15:53:56
 request end time: 2011-11-02 16:23:56
 for imaging: no
 log ID: none
 
 computer: image6
 computer id: 7
 computer type: virtualmachine
 computer eth0 MAC address: 00:50:56:00:10:0a
 computer eth1 MAC address: 00:50:56:00:10:0b
 computer private IP address: 10.0.0.9
 computer public IP address: 10.106.128.59
 computer in block allocation: no
 provisioning module: VCL::Module::Provisioning::VMware::VMware
 
 vm host: vcldell01
 vm host ID: 1
 vm host computer ID: 1
 vm profile: VMware ESX - local storage
 vm profile VM path: /vmfs/volumes/datastore1
 vm profile repository path: /images
 vm profile datastore path: /vmfs/volumes/datastore1
 vm profile disk type: localdisk
 
 image: vmwarelinux-redhatbase10-v0
 image display name: redhatbase
 image ID: 10
 image revision ID: 10
 image size: 16384 MB
 use Sysprep: yes
 root access: yes
 image owner ID: 1
 image owner affiliation: Local
 image revision date created: 2011-11-02 15:51:12
 image revision production: yes
 OS module: VCL::Module::OS::Linux
 
 user: vclreload
 user name: vcl reload
 user ID: 2
 user affiliation: Local
 
 RECENT LOG ENTRIES FOR THIS PROCESS:
 2011-11-02 16:01:20|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
 NOT responding to SSH, ports 22 or 24 are both closed
 2011-11-02 
 16:01:20|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 24: code 
 returned false, seconds elapsed/remaining: 360/240, sleeping for 15 seconds
 2011-11-02 
 16:01:35|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 25: 
 waiting for image6 to respond to SSH
 2011-11-02 16:01:35|29777|11:11|reload|OS.pm:is_ssh_responding(386)|image6 is 
 NOT responding to SSH, ports 22 or 24 are both closed
 2011-11-02 
 16:01:35|29777|11:11|reload|Module.pm:code_loop_timeout(755)|attempt 25: code 
 returned false, seconds elapsed/remaining: 375/225, sleeping for 15 seconds
 2011-11-02 
 16:01:50|29777|11:11|reload|Module.pm:code_loop_timeout(759)|attempt 26: 
 waiting for image6 to respond to SSH