Thursday, May 19, 2011

How-To: Installing Hyper-V Intergration Tool for Centos 5.6

1.   Download Linux Integration Services 2.1 for Windows Server 2008 Hyper-V R2 at
2.       Extract the download file.
3.       Mount the "LinuxIC v21.iso" to the target Centos machine
4.       Start the Centos VM
5.       At the console copy the components into the Centos VM by executing the below commands as root:
#mkdir /mnt/cdrom
#mount /dev/cdrom /mnt/cdrom
#mkdir /opt/linux_ic_v21_rtm
#cp -R /mnt/cdrom/* /opt/linux_ic_v21_rtm
6.       Navigate to the directory where the components copied
           #cd /opt/linux_ic_v21_rtm
7.       Install the components using "make" command
           #make install
Below screenshot shows when the command executed successfully

8.      Shutdown the VM
9.      Change the network emulate to synthetic network adapter if you have not use synthetic network adapter
10.  Check all integration services

11.  Start the VM. This time the network interface name will change to SETH0 instead of ETH0

If you have issue similar to error "unable to find /usr/kernels/2.6.18-238.9.1.e15_x86_64", you have to check the symlink for the build located at "/lib/modules/kernel/build". make sure it is not broken.

Monday, May 2, 2011

Ribbon Meanings

Pink Ribbon: Breast Cancer, Birth Parents & Nursing Mothers
Lime Green Ribbon: Lyme Disease, Lymphoma, Muscular Dystrophy & non-Hodgkin’s Lymphoma
Peach Ribbon: Uterine Cancer & Endometrial Cancer
Red Ribbon: AIDS/HIV, Heart Disease, Stroke, Substance Abuse, MADD, DARE, Epidermolysis Bellosa, & Reflex Sympathetic Dystrophy.
Teal Ribbon: Ovarian Cancer, Cervical Cancer, Uterine Cancer, Sexual Assault, Polycycstic Ovarian Syndrome & Tsunami Victims
Green Ribbon: Childhood Depression, Missing Children, Environment, Kidney Cancer & disease, Tissue/Organ Donation, Leukemia, Safe Driving, Bi-Polar Disorder, Bone, Glaucoma, Growth & rebuilding, Literacy, Mental Health, Cerebral Palsy, Neurofibromatosis, Spinal Cord Injury and research, Stem Cell donor and Research, Tourette’s Syndrome & Mitochondrial Disease
Grey Ribbon: Allergies, Aphasia, Asthma, Brain Cancer, Brain Tumors, Diabetes & Mental illness
Pink & Blue Ribbon: Amniotic Fluid Embolism, Baby Safe Haven, Birth defects, Male Breast Cancer, Infant Loss, Infertility, Miscarriage, Premature Birth, Stillbirth & SIDS
USA Flag Ribbon: National Support, Fireworks Safety, Flag, World Trade Center Victims & Heroes
Puzzle Ribbon: Autism & Asperger Syndrome
Violet Ribbon: Hodgkin's Disease & Testicular Cancer
Orange Ribbon: Cultural Diversity, Hunger, Leukemia, Lupus, Melanoma, Motorcycle Safety, Racial Tolerance, Reflex Sympathetic Dystrophy Syndrome & Self Injury
White Ribbon: Adoptee, Adoption, Anti-Pornography, Blindness, Bone Cancer, Child exploitation, Child Sexual Abuse, Community Support, Congenital Cataracts, Elderly Affairs, hernia, Holocaust Remembrance, Hope & Support, Molestation Survivor, On-line Sexual Predator Awareness & Internet Safety, Osteoporosis, peace, Postpartum Depression, Retinoblastoma, Right to Life, Scoliosis, Stalking, Student Sexual Abuse, Teen Pregnancy & Victim’s of Terrorism
Gold Ribbon: Childhood Cancer & COPD
Black Ribbon: Accidents, Amish Support, Anti-Terrorism, Gang Prevention, Gun Control, Melanoma, Mourning, Narcolepsy, POW/MIA, Sleep Apnea, Sleep Disorders & Trauma
Brown Ribbon: Anti-Tobacco, Colon Cancer, Colorectal Cancer, Familia Polyposis & Tobacco Awareness
Burgundy Ribbon: Adhesions, Brain Aneurysm, headaches, Disabled Adults, Hospice Care, Meningitis, Sickle Cell Anemia, Thrombophilia, & Multiple Myeloma
Purple Ribbon: Domestic Violence, Epilepsy, Pancreatic Cancer, ADD, Alzheimer’s, Animal Abuse, Crohn’s Disease, Lupus, Fibromyalgia, ADHD, Homelessness & Thyroid Cancer
Lavender Ribbon: Cancer (unspecified), Caregiver Appreciation, Epilepsy, Foster Care, Gynecological Cancer, Hypokalemic Periodic Paralysis, Infantile Spasms & Rett Syndrome
Pearl Ribbon: Emphysema, Lung Cancer, Lung Disease, Mesothelioma, Multiple Sclerosis & Waldenstrom's Macroglobulinemia
Silver Ribbon: Brain Disabilities, Brain Disorders, Campaign for the Brain, Disabled Children, Dyslexia, Elderly Abuse, Encephalitis, Niemann-Pick, Parkinson's Disease, Schizophrenia, Sciatic Pain, VACTERL & Young Onset Parkinson's Association (YOPA)
Blue Ribbon: Drunk Driving, Children’s Healthy Weight, Child Abuse, Foster Care Awareness, Crohn’s Disease, Lymphoma, Prevent School Violence, Osteogenesis Imperfecta (IO), Victims of Hurricane Katrina, Dystonia, Acute Respiratory Distress Syndrome (ARDS), Alopecia, Education, Epstein-Barr Virus, Save the Music, Teens against Smoking, Color Cancer, Colorectal Cancer, Anti-Tobacco & Anti-Second hand Smoke.
Navy Blue Ribbon: Alopecia, ARDS, Arthritis, Child Abuse, Chronic Fatigue Syndrome, Colitis, Colon Cancer, Colorectal Cancer, Crime Victim’s Rights, Crohn’s Disease, Drowning, Education, Epstein-Barr Virus, Erb’s Palsy, Free Speech, Guillain Barre Syndrome, Huntington’s Disease, Hurricane Katrina, Death of Police Officer on Duty, Rectal Cancer, Restless Legs Syndrome, Teens against smoking,  Victim’s Rights, Water accidents, Water Quality & Water Safety.
Light Blue Ribbon: Addisons Disease, Behcets Disease, Chronic Illness, Cushing Syndrome, DiGeorge Sequence, Graves Disease. Hyperaldosteronism, Klinefelter's Syndrome, Lymphedema, Men's Health, Pro Choice, Prostate Cancer, Scleroderma, Shprintzen Syndrome, Spay or Neuter Pets, Thyroid Disease, Trisomy 18 and Velo-Cardio Facial Syndrome
Yellow Ribbon: Adenosarcoma, Adoptive Parents, Amber Alert, Bladder Cancer, Canadian Cancer Society, Carbon Monoxide Poisoning, Complementary / Alternative Medicine, Endometriosis, Equality, Ewings Sarcoma, Gulf War, Hydrocephalus, Liver Cancer, Liver Disease, Missing Children, Myxoid Liposarcoma, Obesity, POW/MIA, Remembrance, Sarcoma, Spina Bifida, Suicide & Troop or Military Support
Cream Ribbon: Paralysis, Spinal Cord Injuries, Spinal Disorders and Spinal Muscular Atrophy
Light Green Ribbon: Celiac Disease, Chronic pelvic Pain, Human Papilloma Virus and Sexually Transmitted Diseases.
Black & White Ribbon: Anti-Racism, Carcinoid Cancer, Diversity, Transitions and Vaccine Awareness.
Orchid & Orange Ribbon: Eczema & Psoriasis.
Blue & Yellow Ribbon: Designated Drivers and Down Syndrome.
Blue & Purple Ribbon: Pediatric Stroke & Rheumatoid Arthritis
Blue & Red Ribbon: Congenital Heart Defects and Disease (alternate red), Hypo plastic left heart snydrome, Noonan's Syndrome, Pulmonary Fibrosis and SADS.
Red & White Ribbon: Aplastic Anemia, DVT, Head and Neck Cancer, Hereditary Hemorrhagic Telangiectasia, Oral Cancer and Squamous Cell Carcinoma.
Teal & Purple Ribbon: Domestic Violence and Sexual Assault.
Purple & Yellow Ribbon: Autoimmune Hepatits, Chemical Injury and the relationship between Lupus and Endometriosis.
Red & Yellow Ribbon: Hepatitis C, HIV/HCV Co-Infection.
Teal & White Ribbon: Cervical Cancer
Rainbow Ribbon: Gay Pride, Same Sex Marriage.
Black & Pink Ribbon: Loss of a Sister, Loss of a female child, mourning a sister, mourning a daughter.
Black & Blue Ribbon: Loss of a Brother, Loss of a male child, mourning a brother, mourning a son.
Periwinkle Ribbon: Acid Reflux, Anorexia Nervosa, Bulimia Nervosa, Eating Disorders, Eosinophilic Disorders, Esophageal Cancer, Gastric Cancer, Gastroesophageal Reflux Disease(GERD), Irritable Bowel Syndrome(IBS), Pulmonary Hypertension, Small Intestine Cancer & Stomach Cancer
Lou Gehrig's Ribbon - White with Navy Pin Stripe - Specifically done for Lou Gehrig's Disease.
Juvenile Diabetes Ribbon - Grey ribbon with Red heart
Thyroid Cancer Ribbon - Pink, Purple & Teal

Saturday, April 30, 2011

Removing "Update Failed" VMs from the VMM Administrator Console

Recently getting annoyed by the increasing number of VMs with status "Update
Failed". The last thing I remember that this happened after the one of my
Hyper-V host crashed, and ended up 2 identical VMs appear after the quick
migration took place.

Found this blog
and below are my summary of the steps :

1. Close VMM Administrator Console
2. Stop "Virtual Machine Manager" service.
3. Backup the VMM database (optional)
4. Download and install "Microsoft SQL Server Management Studio Express"
5. Launch "Microsoft SQL Server Management Studio Express", select VMM
database and execute script below.
6. Start the "Virtual Machine Manager" service.
7. The VMs with "Update Failed" should have gone by now.

===========Start Script========

DECLARE custom_cursor CURSOR FOR
SELECT ObjectId from
dbo.tbl_WLC_VObject WHERE [ObjectState] = 220

DECLARE @ObjectId uniqueidentifier
OPEN custom_cursor
FETCH NEXT FROM custom_cursor INTO @ObjectId

WHILE(@@fetch_status = 0)

DECLARE vdrive_cursor CURSOR FOR
SELECT VDriveId, VHDId, ISOId from
dbo.tbl_WLC_VDrive WHERE ParentId = @ObjectId

DECLARE @VDriveId uniqueidentifier
DECLARE @VHDId uniqueidentifier
DECLARE @ISOId uniqueidentifier

OPEN vdrive_cursor
FETCH NEXT FROM vdrive_cursor INTO @VDriveId, @VHDId, @ISOId
WHILE(@@fetch_status = 0)
DELETE FROM dbo.tbl_WLC_VDrive
WHERE VDriveId = @VDriveId
if(@VHDId is NOT NULL)

DELETE FROM dbo.tbl_WLC_PhysicalObject
WHERE PhysicalObjectId = @VHDId
if(@ISOId is NOT NULL)

DELETE FROM dbo.tbl_WLC_PhysicalObject
WHERE PhysicalObjectId = @ISOId

FETCH NEXT FROM vdrive_cursor INTO @VDriveId, @VHDId, @ISOId
CLOSE vdrive_cursor
DEALLOCATE vdrive_cursor

DECLARE floppy_cursor CURSOR FOR
SELECT VFDId, vFloppyId from
dbo.tbl_WLC_VFloppy WHERE HWProfileId = @ObjectId

DECLARE @vFloppyId uniqueidentifier
DECLARE @vfdId uniqueidentifier

OPEN floppy_cursor
FETCH NEXT FROM floppy_cursor INTO @vfdId, @vFloppyId
WHILE(@@fetch_status = 0)
DELETE FROM dbo.tbl_WLC_VFloppy
WHERE VFloppyId = @vFloppyId

if(@vfdid is NOT NULL)
WHERE VFDId = @vfdId
DELETE FROM dbo.tbl_WLC_PhysicalObject
WHERE PhysicalObjectId = @vfdId

FETCH NEXT FROM floppy_cursor INTO @vfdId, @vFloppyId
CLOSE floppy_cursor
DEALLOCATE floppy_cursor

DECLARE checkpoint_cursor CURSOR FOR
SELECT VMCheckpointId from
dbo.tbl_WLC_VMCheckpoint WHERE VMId = @ObjectId

DECLARE @vmCheckpointId uniqueidentifier
OPEN checkpoint_cursor
FETCH NEXT FROM checkpoint_cursor INTO @vmCheckpointId
WHILE(@@fetch_status = 0)
DELETE FROM dbo.tbl_WLC_VMCheckpointRelation
WHERE VMCheckpointId = @vmCheckpointId

FETCH NEXT FROM checkpoint_cursor INTO @vmCheckpointId
CLOSE checkpoint_cursor
DEALLOCATE checkpoint_cursor

---------Clean checkpoint

DELETE FROM dbo.tbl_WLC_VMCheckpoint
WHERE VMId = @ObjectID

exec [dbo].[prc_VMMigration_Delete_VMInfoAndLUNMappings] @ObjectId

DECLARE @RefreshId uniqueidentifier
exec [dbo].[prc_RR_Refresher_Delete] @ObjectId, @RefreshId

DELETE FROM dbo.tbl_WLC_VAdapter
WHERE HWProfileId = @ObjectId

DELETE FROM dbo.tbl_WLC_VNetworkAdapter
WHERE HWProfileId = @ObjectId

WHERE HWProfileId = @ObjectId

DELETE FROM dbo.tbl_WLC_HWProfile
WHERE HWProfileId = @ObjectId

DELETE FROM dbo.tbl_WLC_VMInstance
WHERE VMInstanceId = @ObjectId

DELETE FROM dbo.tbl_WLC_VObject
WHERE ObjectId = @ObjectId

FETCH NEXT FROM custom_cursor INTO @ObjectId
CLOSE custom_cursor
DEALLOCATE custom_cursor

===========End Script===========

The above method does not work for me all time. In case you have the same
issue after the steps above are performed, you may try to remove host
cluster from the VMM.

This is my last resource and it always works for me ☺