Hi.
I just tried to use VMware converter to convert a Physical machine (Win NT) to Virtual Machine.
Following issues came up while converting the machine.
Installation Of Converter Agent:
1. While installing thru the manager it give Unknown error while installing agent.
You can also install the agent directly on the machine. In this case you will know what the messages are:
Mostly the errors will be related to folders not having permissions. This is because Agent tries to write all the files using System Account and hence in NT desire System Acc to have write priviledges on the folders.
To see which folder the installation has stopped on start the installer from the command prompt on the machine like the undergiven command:
abc.msi /l install.log
The above given command starts the installation and logs the progress into install.log simulatneously.
2. Once the installation is complete (manual/Automatic) it often happens that the manager tries to start the agent installation again and again.
this is because the agent service is not running as the machine needs to reboot once the agent has been installed. Make sure that the machine is rebooted after agent installation.
Destination Folder:
The Destination folder needs to be accessible from both destination machine, source machine and manager machine. and should have write access permissions for installation.
So best way out of the problem is to give Domain\Anonymous Full controll to it for the time the migration is going on.
While bringing up the machine as well there were some issues as given below:
The machine start but you will not be able to install vmware tools:
Reason for this is that NT doesnt has builtin drivers for IDE cdrom which is probably being used in the OS. Since the drivers not loaded no drive available to vmware to load vmware-tools iso to. A very simple solution is available for this problem. Change the drive to a SCSI drive as drivers for scsi are built in.
The Machine doesnt connects to network in a bridged enviornment:
The issue which I saw in this particular problem was that the machine was on a bridged connection and the bridging service apparently didn't start up when the virtual machine was started.
Just shutdown the virtual machine and restart vmware services for this to resolve.
If it still doesnt works remove the ethernet adapter and create a new one.
Wednesday, December 26, 2007
Cygwin Not showing right groups.
1. First check whether the group u want to c is the primary group for that user in the Domain. If not Make it the Primary group.
2. Next check whether the local group policies have been updated. Without that Cygwin wont be able to know which group the user is referring to.
3. Remake the passwd and the group files of cygwin using mkpasswd and mkgroup command.
Without this Changed data will not be updated into Cygwin authentications and the error will still remain there.
2. Next check whether the local group policies have been updated. Without that Cygwin wont be able to know which group the user is referring to.
3. Remake the passwd and the group files of cygwin using mkpasswd and mkgroup command.
Without this Changed data will not be updated into Cygwin authentications and the error will still remain there.
Thursday, December 6, 2007
Wednesday, December 5, 2007
Windows MBR Reset
Say you installed Linux on a windows machine to make is a dual boot machine.
Now ur linux is of no use and u want to remove it.
You remove all the linux partitions but now the machine is not able to boot into windows as it not getting grub.
So recover u need to reset MBR.
Very Simple process.
Use Windows CD to boot.
give commands fixmbr and fixboot.
Voilla the windows is back up.
Now ur linux is of no use and u want to remove it.
You remove all the linux partitions but now the machine is not able to boot into windows as it not getting grub.
So recover u need to reset MBR.
Very Simple process.
Use Windows CD to boot.
give commands fixmbr and fixboot.
Voilla the windows is back up.
Grub Recovery
Some times it happens tht ur grub goes down all though u know that the hard drives and the partitions are perfectly ok.
Here is a situation i faced:
Consider a Dual boot machine with 2 OS WinXP (1st) and RHEL (2nd).
Now I had to disect the second partition available to windows into 2 and all linux partitions were after this partition.
Once disected the machine stop booting.
Reason :
Machine was being booted using grub. once I added a partition in between the id (numbering) of original linux partitions shifted ahead by 1. Hence the MBR was unable to find the boot files and got stuck.
To resolve the issue u need to reconfigure grub.
Here is what u do:
Reason: the partitions given where it needs to find kernel processes are the old ones and hence wrong.
So open grub.conf and change them accordingly.
Here is a situation i faced:
Consider a Dual boot machine with 2 OS WinXP (1st) and RHEL (2nd).
Now I had to disect the second partition available to windows into 2 and all linux partitions were after this partition.
Once disected the machine stop booting.
Reason :
Machine was being booted using grub. once I added a partition in between the id (numbering) of original linux partitions shifted ahead by 1. Hence the MBR was unable to find the boot files and got stuck.
To resolve the issue u need to reconfigure grub.
Here is what u do:
- use linux cd to boot in rescue mode.
boot : Linux rescue. - Once booted and the RHEL installations have been found out u get the prompt.
- chroot /mnt/sysimage. This changes the root to the / of the installations available.
- grub-install /dev/hda or sda or sdb etc. This reconfigures MBR.
Reason: the partitions given where it needs to find kernel processes are the old ones and hence wrong.
So open grub.conf and change them accordingly.
Solaris Device Detection.
Unlike Windows and Linux Solaris does not starts detection of new hardware while booting up.
Either it needs to be told to boot up in reconfigure mode or u have to detect all the devices using specific commands.
Here I will Put the ways of automatic reconfiguration:
Either it needs to be told to boot up in reconfigure mode or u have to detect all the devices using specific commands.
Here I will Put the ways of automatic reconfiguration:
- boot -r command on ok prompt (openBoot) before loading of OS.
- touch /etc/reconfigure in OS to detect new devices next time it boots.
- reboot -- -r. In this command what we are actually doing is rebooting and telling it to pass options to the boot command on ok prompt. Anything after -- is considered as options for boot.
Tuesday, November 13, 2007
Daemons (NIS)
portmap | The foundation service for RPC |
yppasswdd | Allows users to change their NIS passwords |
ypserv | NIS server daemon |
ypbind | NIS client daemon |
ypxfrd | The NIS map transfer daemon |
Monday, November 12, 2007
Daemons (NFS)
Server : rpc.portmap |
rpc.mountd, rpc.nfsd |
rpc.statd, rpc.lockd (if necessary), and rpc.rquotad |
Client:
rpc.lockd
rpc.statd
automount if using automounter.
Nfs lock problem
NFS PROBLEM:
while strating the nfslock service the output was
- service nfslock start
Starting NFS statd: statd: Could not chdir: No such file or directory [FAILED]
and dmesg shows something like this:-
lockd: cannot monitor 192.168.9.32 nsm_mon_unmon: rpc failed, status=-13
Solution:-
Follow the below mentioned steps to resolve the problem:-
- cd /var/lib/nfs
- mkdir statd
- chmod 700 statd
- touch state
- chmod 600 state
- service nfslock restart
Tar/Untar Simultaneously.
Here is a Nice Way to put all your data from one location to another in a fast way.
Traditionally a user woudl first tar his whole directory go to destination and the untar.
This takes more time and needs huge space.
Use the following command instead:
tar cf - "data to be tarred"|(cd destination; tar xf -)
There is a very simple concept behind this command:
The hyphon ( "-") in the command is stdout.
So basically the file in which we are tarring the data is streaming the tarred data to stdout (not saving it).
The '|' lets us parse the stream and tar xf - untars the stream at the place defined by cd destination command.
For doing it from a different machine just add rsh machine name in front of the command.
There are a few things which need to be kept in mind while doing these:
1. Never use v option of tar in this command.
Why: A very simple reason v throws the output of whatever is happening on STDOUT. the extraction part thinks that it is not a proper archive since it doesnt has the proper header and hence the command fails.
2. While using rsh remember that no extra rc(profile startup) files are there in the profile which give any output. the reason is the same.
Also remember that the rsh should be passwordless.
Traditionally a user woudl first tar his whole directory go to destination and the untar.
This takes more time and needs huge space.
Use the following command instead:
tar cf - "data to be tarred"|(cd destination; tar xf -)
There is a very simple concept behind this command:
The hyphon ( "-") in the command is stdout.
So basically the file in which we are tarring the data is streaming the tarred data to stdout (not saving it).
The '|' lets us parse the stream and tar xf - untars the stream at the place defined by cd destination command.
For doing it from a different machine just add rsh machine name in front of the command.
There are a few things which need to be kept in mind while doing these:
1. Never use v option of tar in this command.
Why: A very simple reason v throws the output of whatever is happening on STDOUT. the extraction part thinks that it is not a proper archive since it doesnt has the proper header and hence the command fails.
2. While using rsh remember that no extra rc(profile startup) files are there in the profile which give any output. the reason is the same.
Also remember that the rsh should be passwordless.
Monday, November 5, 2007
Local User password Changes
net user userid password.
Use this command in login scripts / or with for loop in batch scripts to change passwords on multiple machines.
for /f %%c in (comp.txt) do ashu.bat %%c
where comp.txt contains the names of the systems where changes need to be made.
ashu.bat contain the commands that need to be run to accomplish the changes.
Use this command in login scripts / or with for loop in batch scripts to change passwords on multiple machines.
for /f %%c in (comp.txt) do ashu.bat %%c
where comp.txt contains the names of the systems where changes need to be made.
ashu.bat contain the commands that need to be run to accomplish the changes.
Do remember any kind of loop commands which run remotely need to be run using Domain Local Admin accounts.
Tuesday, September 11, 2007
Cygwin Installation
If SSHD doesnt starts stating that the daemon is giving no errors;
Following need to seen. :
1. System Variable CYGWIN=ntsec
2. /var/empty owner = system.system
3. /etc/ssh*key files owner = system.system and permissions = 600
Following need to seen. :
1. System Variable CYGWIN=ntsec
2. /var/empty owner = system.system
3. /etc/ssh*key files owner = system.system and permissions = 600
Thursday, September 6, 2007
Uninstalling Clearcase.
service clearcase stop
cd /var/adm
cp -rf rational rational.old
# it is recommended that rational directory be backed up.
rm -f /view
mv /etc/init.d/clearcase /etc/init.d/old.clearcase
remove all clearcase files from rc#.d files
cd /opt/rational
rm -rf clearcase
modprobe -r mvfs
modprobe -r vnode
Reboot of the machine.
Clearcase is now uninstalled from ur machine.
cd /var/adm
cp -rf rational rational.old
# it is recommended that rational directory be backed up.
rm -f /view
mv /etc/init.d/clearcase /etc/init.d/old.clearcase
remove all clearcase files from rc#.d files
cd /opt/rational
rm -rf clearcase
modprobe -r mvfs
modprobe -r vnode
Reboot of the machine.
Clearcase is now uninstalled from ur machine.
Subscribe to:
Posts (Atom)