Citrix Provisioning - Converting An Existing vDisk From BIOS To UEFI

Citrix Provisioning - Converting An Existing vDisk From BIOS To UEFI

book

Article ID: CTX617028

calendar_today

Updated On:

Description

Converting an existing BIOS vDisk into UEFI vDisk for future PVS Target Device support. 


Instructions

There are two basic approaches to converting an existing vDisk from BIOS to UEFI :

  • Copy the VHD(X) file, mount it, convert and then import the new file.
  • Reverse image the vDisk to a master VM, reboot from the local disk, convert and then create a new image

In both cases, you should ensure you have sufficient free space and the disk is defragmented before starting – either after reverse imaging or prior to merging the vDisk to a single version.

The detailed process is as follows:

Converting vDisk directly

Steps as follows:

  • Ensure the disk is defragmented and merged down to a single base version
  • Copy the .VHD(X) file to a new file in the store
  • Run disk management in windows and attach the VHD
  • Run diskpart to determine the disk number of the mounted disk - it will be the last one of the list:

    C:\Windows\system32>diskpart

    Microsoft DiskPart version 10.0.17763.1911
    Copyright (C) Microsoft Corporation.
    On computer: XXZZ-PVS
     
    DISKPART> list disk
     
      Disk ###  Status         Size     Free     Dyn  Gpt
      --------  -------------  -------  -------  ---  ---
      Disk 0    Online          127 GB  1024 KB        *
      Disk 1    Online          150 GB      0 B
      Disk 2    Online         1024 GB  1024 KB        *
      Disk 3    Online          127 GB  1024 KB        *
  • Convert the mounted vdisk file to GPT

    mbr2gpt /convert /disk:3 /allowFullOS
  • Unmount the VHD file and import into the PVS store


Converting Via Reverse Imaging

Steps:

  • Reverse image as per normal to a master VM setup as BIOS with a local disk that is large enough
  • Reboot the VM from the local disk (change the boot order) and log on as administrator
  • The disk number is probably zero, but run diskpart to confirm as before
  • Convert the disk

    mb22gpt /convert /disk:0 /allowFullOS
  • Shutdown the VM
  • Update the hypervisor configuration for the VM to use UEFI (with VMWare, for example, bring up the VM settings and from the VM Options tab, Boot Options section set the firmware type to EFI:
  • Boot the VM and run the imaging wizard to create a new vDisk for the converted disk.

Environment

Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.

Additional Information

https://docs.citrix.com/en-us/provisioning/current-release/whats-new/deprecated-features