tag:blogger.com,1999:blog-24828131395567620382024-03-08T22:26:09.044+01:00Greg's Tech blogTechnical articles on Virtuozzo, VMware, Windows Server, LinuxTech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.comBlogger21125tag:blogger.com,1999:blog-2482813139556762038.post-39029410498388306312012-02-24T15:06:00.003+01:002012-02-24T15:06:41.715+01:00Migrate Virtuozzo containers to VMware ESXi virtual machineSince Virtuozzo uses VZFS, which shares its common files with the host operating system, it's not possible to convert a container to a virtual machine, as you would do a physical to virtual, or virtual to virtual migration.<br />
So the VMware converter cannot be used, you'll get an error indicating that the source server details cannot be retrieved, both on Windows and Linux.<br />
<br />
As a workaround, you can migrate the containers to Parallels virtual machines. For this you need the PSBM (Parallels Server Bare Metal) product. Install this hypervisor on a physical machine, it supports installation inside virtual machines, but there are limitations, read about them <a href="http://download.parallels.com/doc/psbm/v5/rtm/Parallels_Server_Bare_Metal_Users_Guide/33786.htm" target="_blank">here</a>.<br />
<br />
Once you have the PSBM, you are ready to migrate the containers to virtual machines. The "pmigrate" CLI tool can be used to do this, as such:<br />
<br />
Linux:<i> pmigrate ct root@yourvzserver.com/CTID vm localhost/vmname</i><br />
Windows: <i>pmigrate ct Administrator@yourvzserver.com/CTID vm localhost/vmname</i><br />
<i><br /></i><br />
A prerequisite for this migration, is that you have the Parallels transporter agent installed, on the Virtuozzo source hardware node. Installers for both Linux and Windows can be found under /usr/share/pmigrate/tools/ on the PSBM.<br />
<br />
It's a live migration, the container stays online, during and after migration is finished.<br />
Depending on the guest operating system of the container, the Parallels tools (equivalent to VMware tools) will be automatically installed inside the virtual machine during the migration process.<br />
<br />
There are limitations on which guest OS can be migrated, I have tried these with success:<br />
Debian 5 x86/x64<br />
Debian 6 x86/x64<br />
Windows 2003 x64<br />
Windows 2008R2 x64<br />
<br />
For a complete list of supported guest operating systems, browse to page 31 on <a href="http://download.parallels.com/doc/psbm/v5/rtm/Parallels_Server_Bare_Metal_Users_Guide.pdf" target="_blank">this</a> document.<br />
<br />
Once the virtual machine is running on PSBM, you can use the VMware converter for migration to an ESXi server. You can use the converter on 2 different ways.<br />
<br />
<ul>
<li>If the virtual machine is online and accessible from the ESXi and converter, you can do a migration as you would do a powered-on physical machine</li>
<li>Another way is to use the "Backup image or third-party virtual machine" converter option. You'll need the Parallels VM configuration and harddisk files, these can be found under /var/parallels/ on the PSBM.</li>
</ul>
<br />
A couple remarks:<br />
<br />
<ul>
<li>The cpu/memory/disk resources from the original containers will have to be reapplied after migration, since these are not preserved</li>
<li>Because of the hardware changes, Windows (2008R2) will have to be re-activated after migration</li>
<li>Remove the Parallels tools on Windows guests, <b>before</b> converting them from PSBM to VMware. I wasn't able to uninstall this software anymore once the VM was running on VMware.</li>
</ul>
<br />
<br />Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-37563224837571815962011-11-07T13:57:00.000+01:002011-11-15T13:11:29.291+01:00Paralells Virtuozzo Linux 4.7 kernel panicAfter upgrading from PVCfL 4.0 / 4.6 to version 4.7, kernel panics started to occur randomly on almost all hardware nodes.<br />
<div>
I configured kdump on the nodes to collect a kernel dump upon the next kernel panic, and contacted Parallels support team.</div>
<div>
When the kernel panic occured and the dump was created, they analyzed it.</div>
<div>
<br /></div>
<div>
The feedback we got was the following:</div>
<blockquote class="tr_bq">
<div class="MsoPlainText">
The latest saved dump points to general protection fault
caught by `mysqld`. This looks like just recently found issue - PCLIN-30321. I
will pass it to the maintenance team.</div>
</blockquote>
<div class="MsoPlainText">
<o:p></o:p></div>
<blockquote class="tr_bq">
As for the type of installation - there is no difference
if this is a clean installation or an upgrade from the previous version of
Virtuozzo.</blockquote>
<div class="MsoPlainText">
<o:p></o:p></div>
<blockquote class="tr_bq">
The issue is quite complex (General Protection Fault from
a process in a container is quite difficult to investigate), and it would take
some time for maintenance / development team to check the case.</blockquote>
<blockquote class="tr_bq">
Though, the investigation might take significant amount
of time and therefore the results will be provided through the separate ticket
once they are ready.<br />
You can also check the release notes for Virtuozzo kernel
updates (CU-2.6.32-042stabXXX), and monitor the status of the request
PCLIN-30321 which was assigned for this crash issue.</blockquote>
<br />
It's not always caused by 'mysqld', I've seen a kernel panic caused by another process as well, but most were indeed due to mysqld.<br />
We don't know how long it will take for this to be fixed, so we decided to migrate the containers which cause the kernel panics to a 4.0 or 4.6 node.<br />
<br />
Finding out which container caused the kernel panic can be done by using the crash tool.<br />
An example:<br />
<br />
[root@virtuozzo 127.0.0.1-2011-11-05-08:00:17]# crash /root/vmlinux-2.6.32-042stab037.1 vmcore<br />
crash 4.1.2-8.el5.centos<br />
<br />
KERNEL: /root/vmlinux-2.6.32-042stab037.1<br />
DUMPFILE: vmcore<br />
CPUS: 8<br />
DATE: Sat Nov 5 10:00:13 2011<br />
UPTIME: 10 days, 10:12:02<br />
LOAD AVERAGE: 19.68, 15.35, 14.01<br />
TASKS: 2239<br />
NODENAME: virtuozzo<br />
RELEASE: 2.6.32-042stab037.1<br />
VERSION: #1 SMP Fri Sep 16 22:18:06 MSD 2011<br />
MACHINE: x86_64 (1995 Mhz)<br />
MEMORY: 32 GB<br />
PANIC: ""<br />
PID: 62872<br />
COMMAND: "mysqld"<br />
TASK: ffff88024d6892c0 [THREAD_INFO: ffff8802d65e4000]<br />
CPU: 5<br />
STATE: TASK_RUNNING (PANIC)<br />
<br />
crash> dmesg<br />
[900722.171220] Process mysqld (pid: 62872, veid=7420232, threadinfo ffff8802d65e4000, task ffff88024d6892c0)<br />
<br />
<span class="Apple-style-span" style="color: red;">Update 15/11/2011</span><br />
On 14/11/2011, Parallels has released a kernel update which contains a fix for this problem. More information on <a href="http://kb.parallels.com/en/112809">http://kb.parallels.com/en/112809</a>Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com2tag:blogger.com,1999:blog-2482813139556762038.post-26595215360155103812011-03-29T03:39:00.000+02:002011-11-07T13:27:48.869+01:00Plesk 10: display os/browser/robots in awstats statisticsI'm using Plesk 10.1 on a Debian 5.0 VPS, and noticed that the statistics (Awstats) for my domains did not contain all the information I want, such as statistics for operating systems, browsers, robots/spiders.<br/><br/>I checked several configuration files, and found that the "plesklog" format, that Plesk uses to define the Apache LogFormat value, does store this information in the logfiles.<br/>However, the Awstats model configuration file is not properly configured to retrieve this information from the logs.<br/><br/>By default, the value of the LogFormat parameter in /etc/awstats/awstats.model.conf will be "LogFormat=4", which is the Apache native common log format, not the combined, or plesklog format.<br/>By changing this value to "LogFormat=1", these features (browsers, os, robots,...) will be shown in the statistics of your domain(s).<br/><br/>After modifying the awstats.model.conf file, you'll need to modify the awstats configuration files for your existing domains.<br/>You can use this perl script to do so:<br/><code>perl -e "s/LogFormat=4/LogFormat=1/g;" -pi $(find /opt/psa/etc/awstats/ -type f)</code><br/><br/>This will go through all the files inside the /opt/psa/etc/awstats/ directory, look for "LogFormat=4", and replace it by "LogFormat=1". Be sure to create a backup of all your files, in case something goes wrong.<br/><br/>The new statistics features will only be visible after the next calculation.Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-86479724447117690892011-03-28T23:09:00.000+02:002011-11-07T13:27:48.853+01:00Parallels Virtuozzo Linux vzbackup errorLast week, I installed a new PVC Linux 4.6 node, and added it as a slave to an existing PVA (Parallels Virtual Automation) group.<br/>I use the vzbackup cronjob to backup all the containers on the hardware nodes.<br/>The node that initiates the backup cronjob, had PVC Linux 4.0 installed, all the other slave nodes have version 4.0 installed as well.<br/><br/>The backup of the new 4.6 node failed with this error message:<br/><br/><em>vzbackup(2861): Starting backup. Nodes - virtuozzo10</em><br/><em>vzbackup(2861): Starting node virtuozzo10 backup...</em><br/><em>vzbackup(2861): Checking backup version on virtuozzo10 ... use vzbackup 4.6.0-9</em><br/><em>vzbackup(2861): Starting node virtuozzo10 backup...</em><br/><em>vzbackup(2861): Starting backup CT 1(virtuozzo10)...<br/></em><em>bash: /usr/share/vzbackup-4.6.0-9.swsoft/vzbackup1: No such file or directory<br/></em><em>vzbackup(2861): Can not read layout version for CT 1(virtuozzo10)<br/></em><em>vzbackup(2861): No containers intended for backup found on virtuozzo10</em><br/><br/>The cause of this error message is that vzbackup 4.0 cannot create backups of containers on a 4.6 node.<br/><br/>Luckily, the other way around does work. After upgrading the node that initiates backups from 4.0 to 4.6, backups of the new node succeeded.<br/>Backups of the other 4.0 nodes also remained successfully.<br/><br/>Using vzbackup on a PVC 4.6 node to backup 4.0 nodes is a supported method by Parallels.Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-79887824787389468242009-01-09T02:45:00.000+01:002011-11-07T13:27:48.837+01:00Disable UAC in Windows Server 2008You can disable the UAC feature in Windows Server 2008 by following these steps:<br/><ul><br/> <li>Start -> Run -> msconfig</li><br/> <li>Click Tools and scroll down to "Disable UAC"</li><br/> <li>Click the Launch button and reboot the server.</li><br/></ul>Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-55062862028432701532008-11-14T18:50:00.000+01:002011-11-07T13:27:48.821+01:00Install .NET 3.5 framework on virtuozzo containerWhen installing the .NET 3.5 framework on a Windows 2003 SP2 x64 VPS I got these errors, using the web or full installer:<br/><br/><em>XPSEPSC x64 Installer: [2] Error code 1603 for this component means "Fatal error during installation.</em><br/><em>XPSEPSC x64 Installer: [2] Setup Failed on component XPSEPSC x64 Installer</em><br/><em>WapUI: [2] DepCheck indicates XPSEPSC x64 Installer is not installed.</em><br/><br/>To install .NET 3.5 framework on a windows virtuozzo container, perform these steps for a successfull installation:<br/><ul><br/> <li>Restart the VPS</li><br/> <li>Rename the C:\windows\system32\catroot2\ folder (not catroot itself but catroot2)</li><br/> <li>Start the print spooler service</li><br/> <li>Run the .NET 3.5 SP1 installer</li><br/> <li>Reboot if necessary</li><br/></ul>Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-45167731237463180722008-03-13T21:02:00.000+01:002011-11-07T13:27:48.795+01:00Backup SQL databases to network shareTo be able to backup databases to a network share, the MSSQLSERVER service needs access to the location on the network.<br/>For this you need to change the SQL services service account.<br/>Before doing this you'll need to give that user extra permissions, to accomplish this you can add the user to all the SQLServer2005* or SQLServer2008* groups.<br/><br/>To change the logon user go to "SQL Server Configuration Manager". Under Services, click on properties for the MSSQLSERVER.<br/>Here you can change the logon account to the one you'll need. Specify this to a domain user, or a local user that also exists on the machine where you will store the databases, and that has the full access share and NTFS permissions.<br/>After modifying the logon name, you'll have to restart the service. Do the same for the SQL Server Agent.<br/><br/>Now you'll be able to backup databases to a network share and specify the path like this then: \\servername\share.Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com1tag:blogger.com,1999:blog-2482813139556762038.post-38529012902354124102008-02-29T07:21:00.000+01:002011-11-07T13:27:48.779+01:00Reset lost administrator password in Windows Server 2003While you can use tools like <a href="http://ophcrack.sourceforge.net/" target="_blank">ophcrack</a> to recover your password, these don't always work and in case of strong passwords you'll need to pay for the rainbow table sets, the free included set can only crack alphanumerical passwords up to 14 characters. There is a rainbow table set that will crack passwords up to 33 characters, look on the website for the updated information and prices.<br/><br/>To reset your password you can use tools like the Winternals boot cd, which includes the locksmith tool.<br/>In my experience this doesn't always work, and you have to manually add device drivers to the boot cd. If you work with different types of servers, that come with new types of RAID controllers every x months, it can become hard to keep track of. Not that you loose a password that often, but it can be frustrating when you are in urgent need of such a tool :).<br/><br/>The tool that I have recently found seems to be working great. The password reset did not work, but I was able to set a blank password, logon, and reset the password using computer management.<br/>It's called "Offline NT Password & Registry Editor", visit its website and download it <a href="http://home.eunet.no/pnordahl/ntpasswd/" target="_blank">here</a>.<br/>This tool includes a lot of recent raid controller drivers which is necessary, so it detects your Windows installation partition.<br/><br/>Before using this tool, be sure that Windows was shutdown properly, or you will not be able to perform any actions!<br/>If that's the case, the tool will warn you and you'll have to reboot in safe mode, and perform a clean shutdown twice.<br/>Besides that, the tool is pretty self-explanatory, but the author has also written a <a href="http://home.eunet.no/pnordahl/ntpasswd/walkthrough.html" target="_blank">walkthrough</a>.<br/><br/>I was able to set a blank password on a Windows Server 2003 x64 edition with this tool, which was a great help!<br/>As always, keep in mind that resetting a password can cause problems if not used carefully, for example in cases where EFS is used, those files will become inaccessible.Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-17548356936866324932007-12-06T04:40:00.000+01:002011-11-07T13:27:48.764+01:00Add windows components on Virtuozzo for Windows fixI ran into this issue while using Virtuozzo 3.5.1 SP1 on Windows Server 2003 SP1 Datacenter Edition x64.<br/>When creating new virtual private servers most default components are already installed, but when you want to add extra windows components (add/remove software -> windows components), you bump into this error:<br/><blockquote><br/><p class="MsoNormal"><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif'" lang="ES">Setup library wssoc.dll could not be loaded, or function StorageServerSetupProc could not be found.</span><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif'" lang="ES"><o:p></o:p><br/>The specific error code is 0x7e.</span><span lang="ES"><o:p></o:p></span></blockquote><br/>There is currently no fix available for this, it will be solved in Virtuozzo 4.0.<br/>You can however fix this yourself by creating a new custom application template, using the virtuozzo template creation wizard. Choose to create a template from manually selected data, be sure to have created a temporary VPS already, you'll need to enter the vps id, and desired template name.<br/>When prompted which files you want to include, add these:<br/><blockquote>c:\windows\system32\wssoc.dll<br/>c:\windows\system32\hpcoc.dll</blockquote><br/>Finish the wizard, then run the command "vzpkgdeploy -i <templatename>" to enable this template.Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-39454925798078638752007-11-16T03:51:00.000+01:002011-11-07T13:27:48.749+01:00Automate Virtuozzo backups on WindowsThere is currently no GUI option to automate Virtuozzo backups, although not in current version 3.5.1 SP1.<br/>This will be possible in Virtuozzo 4.0, which is currently in beta.<br/><br/>I'm using 2 bat files to script the backups and remove the oldest backup.<br/>The first script creates a full backup of all virtual private servers using the vzbackup command:<br/><br/><em>for /F "skip=3 usebackq tokens=*" %%i in (`cmd /c "vzlist -ao veid"`) do (cmd /c "vzbackup "%%i && echo VE ID %%i has been backed up!)</em><br/><br/>To be able execute the second script you need to download RmEmpty, an executable which allows you to remove empty directories, get it <a href="http://www.otbsw.com/" title="here" target="_blank">here</a><br/><br/>First, we'll have to search the destination folder on the backup node for files older then x days, in this example I use 4 days.<br/><em>forfiles /P e:\vz\backups /S -D -4 /c "cmd /c del /q @file"</em><br/><br/>The forfiles is a default windows binary, some information about the given variables:<br/>/P indicates the path to start searching<br/>/S instructs forfiles to recurse into subdirectories<br/>/D selects files with a last modified data less than or equal to (-)<br/>/C indicates the command to execute for each file<br/>The /q is to delete the files quietly, otherwise it will ask for a confirmation before deletion.<br/><br/>After deleting the files we'll search for empty directories, and remove them:<br/><em>C:\system\rmemp12\RMEMPTY.EXE e:\vz\backups\</em><br/><br/>Be aware that if e:\vz\backups\ itself is also empty, it will remove that one too! So always keep at least 1 file in that directory, I use a simple readme.txt so it never gets deleted.Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-81401927946878630702007-08-22T22:07:00.000+02:002011-11-07T13:27:48.735+01:00Install VMware Tools on DebianDuring installation the kernel headers and a C compiler will be required, to check which kernel you are using type this command:<br/><br/># uname -r<br/><em>2.6.18-5-686</em><br/><br/># apt-get install linux-headers-2.6.18-5-686<br/># apt-get install make gcc<br/><br/>Now that the required packages are installed follow these steps to install the vmware tools:<br/><br/>1. click install vmware tools from the vmware server console menu<br/>2. mkdir /mnt/cdrom<br/>3. mount /dev/cdrom /mnt/cdrom<br/>4. cd /tmp<br/>5. tar zxf /mnt/cdrom/VMwareTools-1.0.3-44356.tar.gz<br/>6. cd vmware-tools-distrib<br/>7. ./vmware-install.pl<br/>8. accept the default paths and choose to run the vmware-config-tools.pl at the end<br/><br/>The VMware tools have now been installed.Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-31504141244492124752007-08-15T20:13:00.000+02:002011-11-07T13:27:48.708+01:00Transfer SQL Server Jobs from SQL Server 2000 to 2005To transfer sql server jobs from sql server 2000 to sql server 2005 you can use SQL Server Business Intelligence Development Studio.<br/><br/>1. Click file -> new -> project to create a new Integration Services Project<br/>2. Click view -> toolbox so you can see an overview of all the items<br/>3. From the toolbox, drag the "transfer jobs task" to the control flow window<br/>4. Right click the transfer job task and click edit<br/>5. Select jobs and enter the source and destination server, you can test the connection immediately<br/>6. Choose to transfer all jobs, or only the ones you can select from the given list<br/>7. Set the desired IfObjectExists and EnableJobsAtDestination option and click OK<br/>8. Right-click the transfer jobs task and click execute task<br/><br/>If the job fails it will turn red, if it succeeds it turns green. Click on execution results to check for errors.<br/>A couple of reasons why the task would fail:<br/><ul><br/> <li>the job owner does not exist on the destination server, you can modiy this on the source server in the job properties</li><br/> <li>if you have e-mail notifications enabled on the job, be sure the operator exists on the destination server or disable this</li><br/> <li>if the database for which the job will be executed does not exist that job transfer will fail</li><br/></ul><br/>A couple screenshots from the transfer jobs task properties and the execution results:<br/><br/><img class="alignnone" title="sql server transfer job" src="http://www.gregory.eu/wp-content/uploads/2007/08/sqljobtransfer1.jpg" alt="" width="1020" height="735" /><br/><br/><img class="alignnone" title="sql transfer job" src="http://www.gregory.eu/wp-content/uploads/2007/08/sqljobtransfer2.jpg" alt="" width="702" height="491" /><br/><br/> Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-73629986713621263402007-08-06T23:33:00.000+02:002011-11-07T13:27:48.680+01:00Deploy Windows Server 2003 using WDS<ul><br/> <li>Install WS 2008 and WDS</li><br/> <li>Copy boot.wim from \sources folder from a Vista DVD</li><br/> <li>Use WDS to add that boot.wim to the boot images</li><br/> <li>Right-click this image, and select "Create capture boot image", call it Capture or something similar</li><br/> <li>Add this capture image to the boot images</li><br/> <li>Disable all boot images, except for the capture image</li><br/> <li>Install Windows Server 2003 with service packs, updates, applications,... on a new server</li><br/> <li>Extract the content of \support\tools\deploy.cab from the ws 2003 cd to c:\sysprep on the new server</li><br/> <li>Run c:\sysprep\setupmgr.exe to create a sysprep answer file for future deployments</li><br/> <li>Save the answerfile as sysprep.inf and copy it to the WDS server</li><br/> <li>Run c:\sysprep\sysprep.exe /reseal /mini /reboot</li><br/> <li>When the server reboots, press F12 twice to do a PXE boot and load the winPE for capturing</li><br/> <li>Follow the steps until you get to the Image Capture Source screen, here you can select the volume, usually this would be C:\, you have the option to immediately upload the captured image to the WDS server, be sure to have created an image group first. Type the ip address of the WDS server, and then you have to type the credentials to connect (turn off the windows firewall)</li><br/></ul><br/><blockquote><a title="WDS Capture Image" href="http://www.gregory.eu/wp-content/uploads/2007/08/wdscapture1.jpg"><img src="http://www.gregory.eu/wp-content/uploads/2007/08/wdscapture1.thumbnail.jpg" alt="WDS Capture Image" /></a></blockquote><br/><ul><br/> <li>When finished, click close, the server will reboot and load the sysprep wizard, complete this wizard. In future deployments this will be done by sysprep.inf</li><br/> <li>Copy the sysprep.inf that you saved earlier on the WDS server to \RemoteInstall\Images\<imagegroup>\<imagename>\$OEM$\$1\Sysprep\ (you have to create this structure)</li><br/> <li>Create an unattended file for the WDS client and attach this to the WDS server:</li><br/></ul><br/><pre><?xml version="1.0" ?><br/><unattend xmlns="urn:schemas-microsoft-com:unattend"><br/> <settings pass="windowsPE"><br/> <component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35"<br/>language="neutral" versionScope="nonSxS" processorArchitecture="x86"><br/> <WindowsDeploymentServices><br/> <Login><br/> <WillShowUI>OnError</WillShowUI><br/> <Credentials><br/> <Username>**username**</Username><br/> <Domain>**domain**</Domain><br/> <Password>**password**</Password><br/> </Credentials><br/> </Login><br/> <ImageSelection><br/> <WillShowUI>Never</WillShowUI><br/> <InstallImage><br/> <ImageName>**imagename**</ImageName><br/> <ImageGroup>**imagegroup**</ImageGroup><br/> <Filename>**filename.wim**</Filename><br/> </InstallImage><br/> <InstallTo><br/> <DiskID>0</DiskID><br/> <PartitionID>1</PartitionID><br/> </InstallTo><br/> </ImageSelection><br/> </WindowsDeploymentServices><br/> <DiskConfiguration><br/> <WillShowUI>Never</WillShowUI><br/> <Disk><br/> <CreatePartitions><br/> <CreatePartition><br/> <Order>1</Order><br/> <Type>Primary</Type><br/> <Extend>true</Extend><br/> </CreatePartition><br/> </CreatePartitions><br/> <DiskID>0</DiskID><br/> <WillWipeDisk>true</WillWipeDisk><br/> <ModifyPartitions><br/> <ModifyPartition><br/> <Active>true</Active><br/> <Extend>False</Extend><br/> <Format>NTFS</Format><br/> <Label>SYSTEM</Label><br/> <Letter>C</Letter><br/> <PartitionID>1</PartitionID><br/> <Order>1</Order><br/> </ModifyPartition><br/> </ModifyPartitions><br/> </Disk><br/> </DiskConfiguration><br/> </component><br/> </settings><br/></unattend></pre><br/><ul><br/> <li> Create an auto-cast session for this image to be deployed on other machines</li><br/></ul>Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-41839421762106118632007-07-31T23:35:00.000+02:002011-11-07T13:27:48.663+01:00Inject VMWare NIC driver into Windows Server 2008 boot imageThis guide only works on WS 2008 or Vista. The WAIK is supported on WS 2003 and XP too, but the driver injection will fail.<br/>You can download the WAIK <a href="http://www.microsoft.com/downloads/details.aspx?familyid=C7D4BC6D-15F3-4284-9123-679830D629F2&displaylang=en">here</a>.<br/><br/>Install the WAIK, open the Windows PE Tools Command Prompt. Also, have the WS 2008 boot.wim ready, and mount the VMWare Tools image by clicking "Install VMWare Tools", this will mount the drivers on the cd-rom drive.<br/>If you are not doing these steps on a virtual machine, you can also just download these drivers (vmxnet).<br/><br/>1. copype x86 c:\windowspe<br/>2. imagex /info "c:\path\to\x86\boot.wim"<br/>In the WIM Information, look for the Boot Index, in this case the boot index is 2. We will use this in the next step.<br/><br/>3. imagex /mountrw "c:\path\to\x86\boot.wim" 2 c:\windowspe\mount<br/>4. peimg /inf="c:\path\to\vmxnet\win2k\vmxnet.inf" c:\windowspe\mount\windows<br/>5. peimg /inf="c:\path\to\vmxnet\win2k\vmware-nic.inf" c:\windowspe\mount\windows<br/>You should see "PEIMG completed the operation successfully". If you would do this on a XP or 2003 machine, the message would be "PEIMG failed to complete the operation with status code 0x800703fb".<br/><em>It's possible that this WILL work in future versions, but at the moment it doesn't</em><br/><br/>6. imagex /unmount c:\windowspe\mount /commit<br/><br/>The boot.wim image has now been injected with the VMWare NIC drivers.<br/><br/>There is an alternative to this, instead of doing the above driver injection procedure, you can add this to your .vmx file to have network support too: <strong>ethernet0.VirtualDev="e1000"</strong>Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-3150164346886534162007-07-25T23:19:00.000+02:002011-11-07T13:27:48.645+01:00Clear System Event Log (SEL) on DELL PowerEdge ServerI had to ran the diagnostic tools on a dell pe 1950 server, but the test stopped very early with the message "the system event log contains memory related errors".<br/>There are several ways to clear the SEL, one that can be performed locally and one remotely.<br/><br/>1. Clear the SEL locally<br/><blockquote>At boot, press ctrl-E to set the BMC ip address, in this same window you can choose to clear the system event log.</blockquote><br/>2. Clear the SEL remotely<br/><blockquote>If you have not already set an ip address for the BMC, do it now by pressing ctrl-E at boot. Besides configuring the ip address, enable IPMI too.<br/>At the client be sure to have the bmc management utility installed, the default installation path is c:\program files\dell\sysmgt\bmc.<br/>Perform the following command to clear the sel: ipmish.exe -ip 192.168.1.44 -u root -p calvin sel clear<br/>To view how many entries are in the sel: ipmish.exe -ip 192.168.1.44 -u root -p calvin sel status</blockquote>Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-26253511931417546592007-07-25T22:14:00.000+02:002011-11-07T13:27:48.631+01:00Change logical filename of SQL databasePerform this query to change the logical filename of both the data and logfile of you database.<br/><br/>USE MASTER<br/>GO<br/>ALTER DATABASE <strong>MyDatabase</strong><br/>MODIFY FILE<br/>(NAME = <<strong>DBFileName_DATA</strong>>, NEWNAME='<strong>NewDBFileName_Data</strong>')<br/>GO<br/><br/>ALTER DATABASE <strong>MyDatabase</strong><br/>MODIFY FILE<br/>(NAME = <strong>DBFileName_Log</strong>, NEWNAME='<strong>NewDBFileName_Log</strong>')<br/>GOTech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-4998344608450509762007-07-25T21:59:00.000+02:002011-11-07T13:27:48.616+01:00Install VMWare Tools on Server CoreIn VMware Server Console, click "Install VMware Tools".<br/>The setup GUI will not automaticly appear, so you have to run it manually. Actually by clicking on "install vmware tools" the cd-rom drive was mounted with tools, so you can now type "D:", and then run setup.exe.<br/>This will run the setup GUI and you can install the tools like you would normally.Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-90545122909386194772007-07-25T21:55:00.000+02:002011-11-07T13:27:48.602+01:00Install Active Directory Domain Services on Server CoreTo install active directory on windows server 2008, server core edition, you must first create an answer file for the unattended installation, because server core does not offer the GUI wizard.<br/>This sample answer file is to install a new domain in a new forest, with the installation of a DNS server.<br/><br/><code><br/>[DCInstall]<br/>InstallDNS = Yes<br/>ConfirmGc = Yes<br/>DNSOnNetwork = no<br/>DomainLevel = 2<br/>DomainNetBiosName= <strong>mydomain</strong><br/>ForestLevel = 2<br/>NewDomain = Forest<br/>NewDomainDNSName = <strong>mydomain</strong><br/>Password = <strong>mypassword</strong><br/>ReplicaOrNewDomain = Domain<br/>SafeModeAdminPassword = <strong>mypassword</strong><br/></code><br/><br/>Save this file as "answerfile.txt" and then run the following command:<br/><br/><code>dcpromo /answer:answerfile.txt</code>Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-37084463262405298682007-07-25T21:38:00.000+02:002011-11-07T13:27:48.588+01:00Change schema for all tables in SQL Server 2005By using the stored procedure MSforeachtable it's possible to perform the ALTER SCHEMA sql statement for all tables in a given database.<br/>To change the schema for all tables this would look like:<br/><br/><code>exec sp_MSforeachtable "ALTER SCHEMA new_schema TRANSFER ? PRINT '? modified' "</code><br/><br/>Which would look like this if you want to alter schema to dbo:<br/><br/><code>exec sp_MSforeachtable "ALTER SCHEMA dbo TRANSFER ? PRINT '? modified' "</code>Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-19165755763326496792007-07-24T23:16:00.000+02:002011-11-07T13:27:48.572+01:00A matching connector cannot be found to route the external recipientWhen I wanted to send an e-mail from my exchange mailbox to an external e-mail address, the message wasn't send.<br/>I tracked the message in the Queue Viewer and it couldn't be sent because of this: "A matching connector cannot be found to route the external recipient".<br/><br/>To be able to send messages to external domains you have to create a send connector for domain "*". You can do this in the Organization Hub Transport Configuration:<br/><br/><a title="exchange address space" href="http://www.gregory.eu/wp-content/uploads/2007/07/exchange_addressspace.jpg"><img src="http://www.gregory.eu/wp-content/uploads/2007/07/exchange_addressspace.thumbnail.jpg" alt="exchange address space" width="146" height="103" /></a>Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0tag:blogger.com,1999:blog-2482813139556762038.post-50557138652252900742007-07-24T22:59:00.000+02:002011-11-07T13:27:48.544+01:00530 5.7.1 Client was not authenticatedI got this error after sending an e-mail from an external domain over the internet to the exchange server, the message bounced with "530 5.7.1 Client was not authenticated" as error.<br/>This is caused by the fact that I did not install an Edge Transport Server and did not specificly allow anonymous connections on the default receive connector.<br/><br/>By default Exchange 2007 servers not running the Edge Transport role will only accept inbound smtp connections from Exchange Users (clients), Exchange Servers (other Exchange 2007 servers) and Exchange Legacy Servers (legacy Exchange 2003 & below servers). To allow annonymous smtp connections for your server, run the following management shell command:<br/><br/><code>Set-ReceiveConnector -Identity "Default EXCHANGE" -PermissionGroups "AnonymousUsers"</code>Tech bloghttp://www.blogger.com/profile/08626257466294478389noreply@blogger.com0