unnecessary reload
Hey Guys, My reservations will always reload at the beginning of the reservation processes even if the vmguest is currently loaded with the desired image. Looking at the output from the vcld.log, it appears that the issue is with a file it can't find called currentimage.txt. Any ideas on how to fix this? Thanks, Patrick Sigmon |20552|417:417|new| WARNING |20552|417:417|new| 2011-03-31 12:42:40|20552|417:417|new|OS.pm:get_currentimage_txt_contents(161)|failed to retrieve currentimage.txt from vmguest-10, exit status: 1, output: |20552|417:417|new| cat: /home/root/currentimage.txt: No such file or directory |20552|417:417|new| ( 0) OS.pm, get_currentimage_txt_contents (line: 161) |20552|417:417|new| (-1) OS.pm, get_current_image_name (line: 197) |20552|417:417|new| (-2) VMware.pm, node_status (line: 941) |20552|417:417|new| (-3) new.pm, reload_image (line: 533) |20552|417:417|new| (-4) new.pm, process (line: 282) |20552|417:417|new| (-5) vcld, make_new_child (line: 568) |20552|417:417|new| WARNING |20552|417:417|new| 2011-03-31 12:42:40|20552|417:417|new|OS.pm:get_current_image_name(201)|failed to retrieve currentimage.txt contents from vmguest-10 |20552|417:417|new| ( 0) OS.pm, get_current_image_name (line: 201) |20552|417:417|new| (-1) VMware.pm, node_status (line: 941) |20552|417:417|new| (-2) new.pm, reload_image (line: 533) |20552|417:417|new| (-3) new.pm, process (line: 282) |20552|417:417|new| (-4) vcld, make_new_child (line: 568) |20552|417:417|new| (-5) vcld, main (line: 346) 2011-03-31 12:42:40|20552|417:417|new|VMware.pm:node_status(945)|unable to retrieve image name from currentimage.txt on VM vmguest-10, returning 'RELOAD' 2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(544)|node_status returned a hash reference 2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(549)|node_status hash reference contains key {status}=RELOAD 2011-03-31 12:42:40|20552|417:417|new|new.pm:reload_image(624)|node status is RELOAD, vmguest-10 will be reloaded
Re: windows 7 sysprep???[Resolved]
Issue Resolved. Be sure when going through the image capture process for a Windows 7 image that Use sysprep under Advanced Options is set to No. On Mar 24, 2011, at 1:16 AM, James Patrick Sigmon wrote: Hey Gerhard, Thanks for the info. My OS is the Ultimate Edition and is 64 bit. So I made the following changes to the file: component name=Microsoft-Windows-Shell-Setup processorArchitecture=x64 publicKeyToken=31bf3856ad364e35 language=neutral versionScope=nonSxS xmlns:wcm=http://schemas.microsoft.com/WMIConfig/2002/State; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; Display ColorDepth32/ColorDepth DPI120/DPI HorizontalResolution800/HorizontalResolution RefreshRate72/RefreshRate VerticalResolution600/VerticalResolution /Display ComputerName*/ComputerName TimeZoneEastern Standard Time/TimeZone ProductKeyMyProductKeyforUltimate/ProductKey /component However, I'm still having the same issue, but the message has slightly changed: Windows could not parse or process unattend answer file [C:\Windows\Panther\unattend.xml] for pass [specialize]. The answer file is invalid. Can you think of what else I might need to change? Thanks again, Patrick On Mar 23, 2011, at 2:59 PM, Hartl, Gerhard L. wrote: VCL 2.2 does use a unattend.xml for sysprep. It is located at /usr/local/tools/Windows_7/Utilities/Sysprep/Unattend.xml. Are you imaging Win7 x64 or x86? What version? Enterprise, Pro, Ultimate, etc? The key provided is for the Enterprise edition and would fail if you are trying to create a Win 7 Pro image. Also the processorArchitecture must equal the architecture you are trying to image. This is the section that is apparently your issue: component name=Microsoft-Windows-Shell-Setup processorArchitecture=x86 publicKeyToken=31bf3856ad364e35 language=neutral versionScope=nonSxS xmlns:wcm=http://schemas.microsoft.com/WMIConfig/2002/State; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; - Display ColorDepth32/ColorDepth DPI120/DPI HorizontalResolution800/HorizontalResolution RefreshRate72/RefreshRate VerticalResolution600/VerticalResolution /Display ComputerName*/ComputerName TimeZoneEastern Standard Time/TimeZone ProductKey33PXH-7Y6KF-2VJC9-XBBR8-HVTHH/ProductKey /component - Gerhard Old Dominion University -Original Message- From: Alexander Patterson [mailto:alexander.patter...@csueastbay.edu] Sent: Wednesday, March 23, 2011 2:20 PM To: vcl-user@incubator.apache.org Subject: Re: windows 7 sysprep??? Hello Patrick, Windows 7 doesn't use sysprep. This is only used in Windows XP. Check in your php table under Imagemeta for your Windows 7 image id # that your using that sysprep is set to 0 then give that a try. For example Your Image Id =6 CheckUser =1 Subimage = 1 Sysprep = 0 -Alex On Wed, Mar 23, 2011 at 11:14 AM, James Patrick Sigmon jpsig...@ncsu.edu wrote: Hey Guys, I've run into a problem with captured windows 7 images. They seem to capture fine, but when you make a reservation for them they time out at the ssh step. Looking at the console, I can see why. There is a pop-up box that reads: Windows could not parse or process the unattended answer file for pass [specialize]. The settings specified in the answer file cannot be applied. The error was detected while processing settings for component [Microsoft-Windows-Shell-Setup]. I've been frantically searching for a generic answer to this, and it sounds like to could be a sysprep issue, however, the image is a virtual machine. I'm still searching for solutions on my own, but I thought it would be best to go ahead and post this issue as our pilot went live and I'm trying to figure this out ASAP. Any help is much appreciated, -Patrick Sigmon -- Thanks, Alex Patterson User Support Services Operating System Analyst California State University, East Bay
Re: Welcome to the VCL page does not appear...
Hey Frento, There a couple a possibilities that come to mind that you could check. One would be to double check your conf.php file for any incorrect values or typos. In particular, double check baseurl, script, cookiedomain, and homeurl. The other idea I have is to make sure that all of your php packages are installed. I've had a few installations where somehow I missed one and it cause errors like what you are describing. php-gd php-json (if your PHP version is 5.2, this is not required) php-mcrypt php-mysql php-openssl php-sysvsem php-xml php-xmlrpc php-ldap (if you will be using ldap authentication) Hope this helps, Patrick Sigmon On Mar 24, 2011, at 1:05 AM, Frento Burton wrote: Not sure if this is part of the problem but I don't see a referring URL from my index.php page when I view page details. Just thought I would make mention of that.
reservation time
Hey Guys, Our VCL pilot program just went semi-live with 2 universities using ldap, and 12 others using temporary local accounts (3 a piece: admin, faculty, student). One issue that I've put off, that now needs to be addressed, is the time it takes for a reservation to complete. Currently, it starts the reservation from scratch every time, even though it reloads the vmguests at the end of each reservation. Is there something in particular I need to tweak to get the system to use the reloaded vmguests without it going through the reload process at reservation request? Thanks, Patrick Sigmon
Fwd: esxi + windows 7 image
It turns out to have been some sort of compatibility issue with creating an image on GSX then trying to run it on ESXi. I reinstalled Windows 7 on ESXi and the vmguests now start up. Now the issue seems to be that the vmguests for the Windows 7 images are not getting the private address and are thus not connecting at the Machine Booting step. Again this is not an issue with my CentOS image, as its reservations run fine on the ESXi machine. Has anyone else had this issue with there Windows images on an ESXi machine, or does anyone have any insight on how to fix this? Thanks, Patrick Sigmon Begin forwarded message: From: James Patrick Sigmon jpsig...@ncsu.edu Date: March 14, 2011 12:41:31 PM EDT To: vcl-user@incubator.apache.org Subject: Re: esxi + windows 7 image Hey Jim, Thanks for the response. I just checked my Repository path and it is already set to '(empty)'. Any other tips? Thanks, Patrick On Mar 14, 2011, at 12:24 PM, James O'Dell wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I had a similar problem. For me, it started when I upgraded to 2.2. I changed the following before creating an image. *** Make the following setting '(empty)' 'Virtual Hosts' = 'VM Hosts Profiles' = 'Repository Path' *** And it seemed to solve the problem. It seems the vmx file was pointing to an file that didn't exist. I suspect my mgmt's mount point of the repository doesn't mirror the directory structure on the vmware host. (I still don't know if it should) Hope this helps, __Jim On 3/11/2011 9:50 PM, James Patrick Sigmon wrote: Hey Guys, I just setup up ESXi for a VCL system and managed to get successful linux reservations to run on it. The problem I'm having is with my Windows 7 image. The image wont power on and I get the following warning: |1894|194:194|new| WARNING |1894|194:194|new| 2011-03-12 00:45:22|1894|194:194|new|VIM_SSH.pm:_wait_for_task(783)|task haTask-80-vim.VirtualMachine.powerOn-562 did not complete successfully, state: error, error message: *The task was canceled by a user.* |1894|194:194|new| ( 0) VIM_SSH.pm, _wait_for_task (line: 783) |1894|194:194|new| (-1) VIM_SSH.pm, vm_power_on (line: 969) |1894|194:194|new| (-2) VMware.pm, load (line: 407) |1894|194:194|new| (-3) new.pm, reload_image (line: 687) |1894|194:194|new| (-4) new.pm, process (line: 282) |1894|194:194|new| (-5) vcld, make_new_child (line: 568) I'm not sure what this means. I did some googling, but could't find anything relevant to my issue. Any thoughts or suggestions? Thanks, Patrick Sigmon - -- Jim O'Dell Network Analyst California State University Fullerton Email: jod...@fullerton.edu Phone: (657) 278-2256 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1+QTIACgkQREVHAOnXPYRWAwCfWtnCS0NBz80/D+QmObd/pS8t dQgAnAvJ5YWt6JvVv/22D0RXXFeldkmN =wizr -END PGP SIGNATURE-
Re: esxi + windows 7 image
Thanks Jim, It turned out to be an issue with my dhcpd.conf file. Usually when I create a VCL instance I use eth0 as private and eth1 as public, which is not the case with my current system. As such I had the wrong mac addresses in the file. Not sure why the CentOS image worked with this setup, but I suppose that's irrelevant at this point. -Patrick On Mar 16, 2011, at 11:32 AM, James O'Dell wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey Patrick, Glad to hear you got the image to load up. I saw the mention of the private address problem. I suspect the nic's may be in the wrong vlan. You'll need to check the vlan settings in your virtual host's profile. You can do a quick check by switching the vlan setting in the vm guests settings (e.g. 'edit settings' from vsphere) It's also possible that the guest is getting the wrong dhcp info. (I run a dhcp server on my management node just to serve the private addresses - and keep the ip addresses static) You can always log into the system from vsphere's console and do an ipconfig /release followed by ipconfig /renew to see if you are getting the correct ip from the dhcp server Hope this helps, __Jim -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2A2BMACgkQREVHAOnXPYTIEQCdHiEd2GkTdLhrBZYNknKr0bP+ lL4An0g19lHSaAkODpJtnHWufnYtDsy0 =uL6P -END PGP SIGNATURE-
Re: esxi + windows 7 image
Hey Jim, Thanks for the response. I just checked my Repository path and it is already set to '(empty)'. Any other tips? Thanks, Patrick On Mar 14, 2011, at 12:24 PM, James O'Dell wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I had a similar problem. For me, it started when I upgraded to 2.2. I changed the following before creating an image. *** Make the following setting '(empty)' 'Virtual Hosts' = 'VM Hosts Profiles' = 'Repository Path' *** And it seemed to solve the problem. It seems the vmx file was pointing to an file that didn't exist. I suspect my mgmt's mount point of the repository doesn't mirror the directory structure on the vmware host. (I still don't know if it should) Hope this helps, __Jim On 3/11/2011 9:50 PM, James Patrick Sigmon wrote: Hey Guys, I just setup up ESXi for a VCL system and managed to get successful linux reservations to run on it. The problem I'm having is with my Windows 7 image. The image wont power on and I get the following warning: |1894|194:194|new| WARNING |1894|194:194|new| 2011-03-12 00:45:22|1894|194:194|new|VIM_SSH.pm:_wait_for_task(783)|task haTask-80-vim.VirtualMachine.powerOn-562 did not complete successfully, state: error, error message: *The task was canceled by a user.* |1894|194:194|new| ( 0) VIM_SSH.pm, _wait_for_task (line: 783) |1894|194:194|new| (-1) VIM_SSH.pm, vm_power_on (line: 969) |1894|194:194|new| (-2) VMware.pm, load (line: 407) |1894|194:194|new| (-3) new.pm, reload_image (line: 687) |1894|194:194|new| (-4) new.pm, process (line: 282) |1894|194:194|new| (-5) vcld, make_new_child (line: 568) I'm not sure what this means. I did some googling, but could't find anything relevant to my issue. Any thoughts or suggestions? Thanks, Patrick Sigmon - -- Jim O'Dell Network Analyst California State University Fullerton Email: jod...@fullerton.edu Phone: (657) 278-2256 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1+QTIACgkQREVHAOnXPYRWAwCfWtnCS0NBz80/D+QmObd/pS8t dQgAnAvJ5YWt6JvVv/22D0RXXFeldkmN =wizr -END PGP SIGNATURE-
esxi + windows 7 image
Hey Guys, I just setup up ESXi for a VCL system and managed to get successful linux reservations to run on it. The problem I'm having is with my Windows 7 image. The image wont power on and I get the following warning: |1894|194:194|new| WARNING |1894|194:194|new| 2011-03-12 00:45:22|1894|194:194|new|VIM_SSH.pm:_wait_for_task(783)|task haTask-80-vim.VirtualMachine.powerOn-562 did not complete successfully, state: error, error message: The task was canceled by a user. |1894|194:194|new| ( 0) VIM_SSH.pm, _wait_for_task (line: 783) |1894|194:194|new| (-1) VIM_SSH.pm, vm_power_on (line: 969) |1894|194:194|new| (-2) VMware.pm, load (line: 407) |1894|194:194|new| (-3) new.pm, reload_image (line: 687) |1894|194:194|new| (-4) new.pm, process (line: 282) |1894|194:194|new| (-5) vcld, make_new_child (line: 568) I'm not sure what this means. I did some googling, but could't find anything relevant to my issue. Any thoughts or suggestions? Thanks, Patrick Sigmon
Re: static setup
Nevermind. I found it on the web interface under the management node settings. Thanks, -Patrick Begin forwarded message: From: James Patrick Sigmon jpsig...@ncsu.edu Date: March 3, 2011 3:54:30 PM EST To: vcl-user@incubator.apache.org Subject: static setup Hey Guys, I don't yet have a dhcp handing out public address so I'd like to put the system into static mode. I know in the 2.1 version this was a configuration in the vcld.conf file. I see that part has been removed in 2.2. How to I go about changing VCL to static mode in 2.2? Thanks, Patrick Sigmon
static setup
Hey Guys, I don't yet have a dhcp handing out public address so I'd like to put the system into static mode. I know in the 2.1 version this was a configuration in the vcld.conf file. I see that part has been removed in 2.2. How to I go about changing VCL to static mode in 2.2? Thanks, Patrick Sigmon
LDAP privledges
Hey Guys, I've been adding in different colleges into VCL via LDAP and plan to eventually have it so that it groups like you have at NC State. However, to start I'm just interested in at least giving everyone the same basic access to a few images. I was wondering how I could easily go about doing this. As I stand right now, I can login via LDAP but don't have any privileges yet. I have hunch this will involve the privilege tree and some grouping, but also editing a few files (perhaps authentication.php, and ldapauth.php). Again, I'm not sure and any advice would be helpful. Thanks, Patrick Sigmon
Re: LDAP privledges
Hey Josh, That's exactly what I was looking for. However, I haven't got it working yet. I made the code change, but no user groups were created. So I figured maybe I needed to manually create them and then they would populate. I did that, and gave them the privileges I wanted but to no avail. How am I supposed to get the groups once I make the code change. Thanks, Patrick On Feb 11, 2011, at 1:31 PM, Josh Thompson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, An easy way to make all users a member of a specific group would be to add the following line to authmethods/ldapauth.php right after //TODO possibly add to a default group: updateGroups(array(getUserGroupID('All Users', $user['affiliationid'])), $user['id']); This will result in each affiliation having an All Users group that all users from that affiliation would be members of. If you only want a single group instead of one for each affiliation, just hard code the second argument to getUserGroupID instead of using $user['affiliationid']. As a side note, remember that once you start to make changes to the code, you've made your upgrade path a little more difficult. The easiest way to find the changes you made to then make the same changes to a new version of the code is to download a fresh copy of the version you have running, and then do a diff between that and your running code. Then, make the same changes to the new version, and you should have your modifications applied to the new version. Even better, make patches for your changes and then just apply them to the new version. Josh P.S. I didn't actually test that line of code. :) On Friday February 11, 2011, James Patrick Sigmon wrote: Hey Guys, I've been adding in different colleges into VCL via LDAP and plan to eventually have it so that it groups like you have at NC State. However, to start I'm just interested in at least giving everyone the same basic access to a few images. I was wondering how I could easily go about doing this. As I stand right now, I can login via LDAP but don't have any privileges yet. I have hunch this will involve the privilege tree and some grouping, but also editing a few files (perhaps authentication.php, and ldapauth.php). Again, I'm not sure and any advice would be helpful. Thanks, Patrick Sigmon - -- - --- 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.16 (GNU/Linux) iEYEARECAAYFAk1VgIoACgkQV/LQcNdtPQNIggCbBW4rHCAA/+MWboNUWCzhu9YM e+oAniTpKdBK+XPb8WwoEAQ7c2NquLGE =d74X -END PGP SIGNATURE-
Re: LDAP privledges
Thank Josh, that did the trick :) On Feb 11, 2011, at 3:27 PM, Josh Thompson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, When you say no user groups were created, how were you checking? They wouldn't show up under the Manage Groups section of the site because they are not flagged as custom groups in the database. You should see the groups anywhere you would select a user group. However, they will not be created until someone from the desired affiliation has logged in after the user.lastupdated field for that user is 24 hours old (manually set it to an older date to force it). The other thing you might hit is if you have a case statement for that affiliation already in place in the switch statement, in which case the default one would not be called. You could move the extra line of code outside of the switch statement to make it get called for everyone, even if you have an existing case statement for that affiliation (that's probably where I should have told you to put it in the first place). Josh On Friday February 11, 2011, James Patrick Sigmon wrote: Hey Josh, That's exactly what I was looking for. However, I haven't got it working yet. I made the code change, but no user groups were created. So I figured maybe I needed to manually create them and then they would populate. I did that, and gave them the privileges I wanted but to no avail. How am I supposed to get the groups once I make the code change. Thanks, Patrick On Feb 11, 2011, at 1:31 PM, Josh Thompson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Patrick, An easy way to make all users a member of a specific group would be to add the following line to authmethods/ldapauth.php right after //TODO possibly add to a default group: updateGroups(array(getUserGroupID('All Users', $user['affiliationid'])), $user['id']); This will result in each affiliation having an All Users group that all users from that affiliation would be members of. If you only want a single group instead of one for each affiliation, just hard code the second argument to getUserGroupID instead of using $user['affiliationid']. As a side note, remember that once you start to make changes to the code, you've made your upgrade path a little more difficult. The easiest way to find the changes you made to then make the same changes to a new version of the code is to download a fresh copy of the version you have running, and then do a diff between that and your running code. Then, make the same changes to the new version, and you should have your modifications applied to the new version. Even better, make patches for your changes and then just apply them to the new version. Josh P.S. I didn't actually test that line of code. :) On Friday February 11, 2011, James Patrick Sigmon wrote: Hey Guys, I've been adding in different colleges into VCL via LDAP and plan to eventually have it so that it groups like you have at NC State. However, to start I'm just interested in at least giving everyone the same basic access to a few images. I was wondering how I could easily go about doing this. As I stand right now, I can login via LDAP but don't have any privileges yet. I have hunch this will involve the privilege tree and some grouping, but also editing a few files (perhaps authentication.php, and ldapauth.php). Again, I'm not sure and any advice would be helpful. Thanks, Patrick Sigmon - -- - --- 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.16 (GNU/Linux) iEYEARECAAYFAk1VgIoACgkQV/LQcNdtPQNIggCbBW4rHCAA/+MWboNUWCzhu9YM e+oAniTpKdBK+XPb8WwoEAQ7c2NquLGE =d74X -END PGP SIGNATURE- - -- - --- 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.16 (GNU/Linux) iEYEARECAAYFAk1Vm7QACgkQV/LQcNdtPQO6VACfawNx0k6bjvgZVzPSJLnY46Ir pLMAnjTBaFAHQxFM8wdWHjLF6vF/Akwh =Cuvs -END PGP SIGNATURE-