• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Yellow Bricks

by Duncan Epping

  • Home
  • ESXTOP
  • Stickers/Shirts
  • Privacy Policy
  • About
  • Show Search
Hide Search

p2v

VMware vCenter Converter 4.0

Duncan Epping · Feb 13, 2009 ·

VMware vCenter Converter 4.0 has just been released. Don’t let this name fool you cause Converter is still also available as a stand alone solution for P2V’ing your servers! You can find the release notes here.

So what’s new?

  • Physical to virtual machine conversion support for Linux (RHEL, SUSE and Ubuntu) as source
  • Physical to virtual machine conversion support for Windows Server 2008 as source
  • Hot cloning improvements to clone any incremental changes to physical machine during the P2V conversion process
  • Support for converting new third-party image formats including Parallels Desktop virtual machines, newer versions of Symantec, Acronis, and StorageCraft
  • Workflow automation enhancements to include automatic source shutdown, automatic start-up of the destination virtual machine as well as shutting down one or more services at the source and starting up selected services at the destination
  • Target disk selection and the ability to specify how the volumes are laid out in the new destination virtual machine
  • Destination virtual machine configuration, including CPU, memory, and disk controller type

I think especially the hot cloning improvement, which copies incremental changes, and the workflow automation are really cool features. These are the kind of enhancements that will make your life a lot easier during migration projects.

HAL check?!

Duncan Epping · Nov 14, 2008 ·

My post about reverting your HAL triggered Alanrenouf to create a short, but very cool script that compares the amount of cpu’s to the windows HAL you’ve chosen. This way you will know within a second if you need to change the HAL of any of your vm’s! Cool stuff:

connect-viserver MYVISERVER
$myCol = @()
ForEach ($VM in (Get-VM))
{
$MyDetails = “” | select-Object Name, HAL, NumvCPU
$MYDetails.Name = $VM.Name
$Hal = Get-WmiObject -ComputerName $VM.Name -Query “SELECT * FROM Win32_PnPEntity where ClassGuid = ‘{4D36E966-E325-11CE-BFC1-08002BE10318}'” | Select Name
$MYDetails.HAL = $Hal.Name
$MYDetails.NumvCPU = $VM.NumCPU
$myCol += $MYDetails
}
$myCol

revert your HAL!

Duncan Epping · Nov 14, 2008 ·

A couple of weeks ago I did a design review. During this review we discussed the process of reverting your “HAL”, on a Microsoft machine, from multi cpu to single cpu. The customer just emailed me a script that can automate this for you. After some googling I noticed that Mike Laverick already wrote an article on this well over two years ago, which also contains this script. (more or less the same) Still I would like to share this with you guys:

@echo off

:DRIVER_HAL_UPDATE
SET HAL=

IF %NUMBER_OF_PROCESSORS%==1 (
devcon.exe /find @ROOT\ACPI_HAL\0000 | find /i “Multiprocessor” > NUL && SET HAL=ACPIAPIC_UP
devcon.exe /find @ROOT\PCI_HAL\0000 | find /i “Multiprocessor” > NUL && SET HAL=MPS_UP
) ELSE (
devcon.exe /find @ROOT\ACPI_HAL\0000 | find /i “Uniprocessor” > NUL && SET HAL=ACPIAPIC_MP
devcon.exe /find @ROOT\PCI_HAL\0000 | find /i “Uniprocessor” > NUL && SET HAL=MPS_MP
)

IF NOT “%HAL%”==”” (
ECHO.
ECHO —————————————-
ECHO Installing %HAL% HAL
ECHO —————————————-
ECHO.

devcon.exe sethwid @ROOT\PCI_HAL\0000 := !E_ISA_UP !ACPIPIC_UP !ACPIAPIC_UP !ACPIAPIC_MP !MPS_UP !MPS_MP !SGI_MPS_MP !SYSPRO_MP !SGI_MPS_MP
devcon.exe sethwid @ROOT\ACPI_HAL\0000 := !E_ISA_UP !ACPIPIC_UP !ACPIAPIC_UP !ACPIAPIC_MP !MPS_UP !MPS_MP !SGI_MPS_MP !SYSPRO_MP !SGI_MPS_MP
devcon.exe sethwid @ROOT\PCI_HAL\0000 := +%HAL%
devcon.exe sethwid @ROOT\ACPI_HAL\0000 := +%HAL%
devcon.exe update %windir%\inf\hal.inf %HAL%
devcon.exe ReScan

ECHO.
ECHO —————————————-
ECHO Rebooting
ECHO —————————————-
ECHO.
devcon.exe Reboot
) ELSE (
ECHO.
ECHO —————————————-
ECHO Correct HAL Detected
ECHO —————————————-
ECHO.
)
GOTO :EOF

There’s a topic on VMTN about this, read it. You need the Microsoft DevCon util, which is part of the support tools, for more info on devcon click here. Mike Laverick’s paper can be found here. Thanks for pointing this out Xing.

P2V’ing a Suse Linux server

Duncan Epping · Feb 6, 2008 ·

I just P2V’ed a Suse Linux Server with the cold boot iso. When booting I was confronted with a kernel panic. This is caused by the fact that the modules for the LSI Logic or Bus Logic SCSI card aren’t available, which causes the root volume to be unmountable. I tried to boot from the installation CD with the “rescue” option but this did not provide me with a fast solution for the problem. But the following was a quick fix:

  1. Boot from Suse CD
  2. Select to setup a new system
  3. Select to boot from the currently installed OS
  4. Run Yast and configure the correct SCSI controller
  5. Remove all the NICS and configure a new NIC
  6. Install VMware tools

Ghosted devices

Duncan Epping · Dec 18, 2007 ·

After a p2v there are several “ghosted devices” left in the VM. This could for instance cause a message about having already assigned the same ip-address to another NIC when configuring your network.

This problem is caused by hidden devices which should be removed after a P2V:

  1. Within Windows open up the command prompt
  2. type “set devmgr_show_nonpresent_devices=1”
  3. start “devmgmt.msc”
  4. Click on “View” and select “Show Hidden Devices”
  5. Uninstall all grayed out devices

Primary Sidebar

About the author

Duncan Epping is a Chief Technologist in the Office of CTO of the Cloud Platform BU at VMware. He is a VCDX (# 007), the author of the "vSAN Deep Dive", the “vSphere Clustering Technical Deep Dive” series, and the host of the "Unexplored Territory" podcast.

Upcoming Events

29-08-2022 – VMware Explore US
07-11-2022 – VMware Explore EMEA
17-11-2022 – VMUG UK
….

Recommended Reads

Sponsors

Want to support Yellow-Bricks? Buy an advert!

Advertisements

Copyright Yellow-Bricks.com © 2022 · Log in