SlideShare a Scribd company logo
Virtualization Tour:Native Boot To VHD
What Will We Cover? Boot-to-VHD Windows XP Mode Windows Server 2008 R2 Hyper-V Managing Hyper-V with System Center Virtual Machine Manager
Agenda Native Boot to VHD What is Native Boot? Benefits and Performance  Inside look at Boot to VHD Partitions Common Scenarios  Installing … OS Media or Network Boot Step By Step – Native Boot to VHD with No underlying OS Step By Step – Native Boot to VHD with Underlying OS An Inside Look at BCDEdit Limitations Guidelines, Here is the proof => Next…
Introduction to Native Boot to VHD What is a Virtual Hard Disk (VHD) Fixed Disks Larger (slower to deploy) Recommended for production systems Dynamic disks Grow as data is added Smaller (faster to deploy) As used with Virtual PC / Virtual Server / Hyper-V Supported Platforms  Windows 7 (Enterprise, Ultimate) Windows Server 2008 R2 (Full and Core) Standard, Enterprise, Datacenter, Web Itanium-based systems Tools (See Resources for details) DiskPart,Disk Management (MMC),BCDEdit, BCDBoot, DISM, Hyper-V Manager, Sysprep, ImageX (AIK)
Benefits of Native Boot to VHD Possible to boot a VHD directly on hardware Can run Windows Virtualization Platform Deploy either as physical or virtual using same file   Use the same management tools Support multiple boot scenarios  Fast deployment for re-usable environments  Parent of a differencing disk can be a fixed, dynamic, or differencing disk (differencing chain) Negligible performance difference from Native
Native VHD Performance
System and VHD Partitions System Partition Primary Partition Bootmgr C:indows D: BCD C:agefile.sys D: C:hdindows7Dynamic.vhd D: Phy Physical Disk Virtual VHD C:indows VHD Boot Parent volume of the VHD is available after boot with a different volume letter LOOK: Watch your disk space go to maximum VHD Capacity + Physical Used
Common Scenarios Image management ‘Attach’ a VHD and access as a drive letter Common VHD image for both physical and virtual environments Native boot hardware with no installed OS One or multiple local VHDs within a single partition E.g. for kiosk machines, early adopters Developers, Trainers Demo, Proof of Concept Virtual Appliances Centrally stored VHDs for network deployment Copy locally and then start  Network boot to VHD using WDS
Install From Media Or Network Boot  Start Installation Format Media (if doing bare metal insall) You should be on the “Where do you want to install Windows?” screen of the installation press Shift-F10 to drop to command prompt Find installation drive (dir c:, dir d:, dir e:, etc)  Diskpart Create vdisk file=e:ootDemo.vhd type=expandable maximum=40000 Attach vdisk Exit Click “Refresh” button Select “New Drive” and perform normal installation Using this method, the BCD will be updated automatically
BCDEdit – Windows Server 2008 R2 Running on Metal In this example, we have an OS running on Metal and a VHD Boot menu also available
BCDEdit – Host with NO OS Installed Natively In this example, we have only one OS and it is running in a VHD on an empty hard drive DEMO
Preparing for Native Boot and BCDEdit If host system is Vista SP1: Replace Bootmgr and BcdEdit.exe  with Windows 7 versions Create bootable VHD file Disk Manager, Hyper-V Manager, ImageX, SCVMM, DiskPart,Etc Copy bootable VHD to a directory on the host system  (e.g. ‘c:hdootWin.vhd’) Use BcdEdit to copy the existing boot entry  (from administrativecmd prompt) bcdedit /copy {current} /d “Windows VHD Boot” Look at the new entry bcdedit /v Use BcdEdit to Edit the VHD system bcdedit /set {GUID} device vhd=[c:]hdootWin.vhd bcdedit /set {GUID} osdevicevhd=[c:]hdootWin.vhd bcdedit /set {GUID} detecthal on Use BCDEdit to change  the description, default start item, menu order, timeout, etc. bcdedit /set {GUID} description “New Menu Description Goes Here!” bcdedit /default {GUID} bcdedit /displayorder {GUID_1} {GUID_2} bcdedit /timeout 10 If using virtualization on the system…  (Make sure you cold boot after making changes) 	Enable Virtualization in BIOS bcdedit /set {GUID} hypervisorlaunchtype auto
An Inside Look at BCDEdit Let’s look at BCDEdit in some detail

More Related Content

What's hot

Wd usb hdd image un locker pro-sw6316
Wd usb hdd image un locker pro-sw6316Wd usb hdd image un locker pro-sw6316
Wd usb hdd image un locker pro-sw6316Dolphin Data Lab
 
Wd usb hdd image un locker pro-inic1607e
Wd usb hdd image un locker pro-inic1607eWd usb hdd image un locker pro-inic1607e
Wd usb hdd image un locker pro-inic1607eDolphin Data Lab
 
Wd usb hdd image un locker pro-jms538 s
Wd usb hdd image un locker pro-jms538 sWd usb hdd image un locker pro-jms538 s
Wd usb hdd image un locker pro-jms538 sDolphin Data Lab
 
VHD Recovery Tool
VHD Recovery ToolVHD Recovery Tool
VHD Recovery Tool
SysInfoTools
 
Creating Multi Boot DVD
Creating Multi Boot DVDCreating Multi Boot DVD
Creating Multi Boot DVD
Nagarajan S
 
How to boot a VM form a Forensic Image
How to boot a VM form a Forensic ImageHow to boot a VM form a Forensic Image
How to boot a VM form a Forensic Image
Krešimir Hausknecht
 
Copy dvd movie to blank dvd disc
Copy dvd movie to blank dvd discCopy dvd movie to blank dvd disc
Copy dvd movie to blank dvd disc
Leawo Soft
 
mirroring harddrive
mirroring harddrivemirroring harddrive
mirroring harddrive
ssuser1eca7d
 
Hard Disk Data Acquisition
Hard Disk Data AcquisitionHard Disk Data Acquisition
Hard Disk Data Acquisition
Taha İslam YILMAZ
 
Windows 11 storage spaces
Windows 11 storage spacesWindows 11 storage spaces
Windows 11 storage spaces
ssuser1eca7d
 

What's hot (12)

Wd usb hdd image un locker pro-sw6316
Wd usb hdd image un locker pro-sw6316Wd usb hdd image un locker pro-sw6316
Wd usb hdd image un locker pro-sw6316
 
Wd usb hdd image un locker pro-inic1607e
Wd usb hdd image un locker pro-inic1607eWd usb hdd image un locker pro-inic1607e
Wd usb hdd image un locker pro-inic1607e
 
Wd usb hdd image un locker pro-jms538 s
Wd usb hdd image un locker pro-jms538 sWd usb hdd image un locker pro-jms538 s
Wd usb hdd image un locker pro-jms538 s
 
VHD Recovery Tool
VHD Recovery ToolVHD Recovery Tool
VHD Recovery Tool
 
Creating Multi Boot DVD
Creating Multi Boot DVDCreating Multi Boot DVD
Creating Multi Boot DVD
 
How to boot a VM form a Forensic Image
How to boot a VM form a Forensic ImageHow to boot a VM form a Forensic Image
How to boot a VM form a Forensic Image
 
Copy dvd movie to blank dvd disc
Copy dvd movie to blank dvd discCopy dvd movie to blank dvd disc
Copy dvd movie to blank dvd disc
 
Booting from VHD
Booting from VHDBooting from VHD
Booting from VHD
 
mirroring harddrive
mirroring harddrivemirroring harddrive
mirroring harddrive
 
Hard Disk Data Acquisition
Hard Disk Data AcquisitionHard Disk Data Acquisition
Hard Disk Data Acquisition
 
Windows 11 storage spaces
Windows 11 storage spacesWindows 11 storage spaces
Windows 11 storage spaces
 
Doc document
Doc documentDoc document
Doc document
 

Similar to 2 Boot To Vhd

Microsoft Windows Server 2012 R2 Hyper V server overview
Microsoft Windows Server 2012 R2 Hyper V server overviewMicrosoft Windows Server 2012 R2 Hyper V server overview
Microsoft Windows Server 2012 R2 Hyper V server overview
aboobakar sanjar
 
Dual boot with a vhd final
Dual boot with a vhd finalDual boot with a vhd final
Dual boot with a vhd final
Osimondo
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting started
ALEXANDER BARBOZA
 
Practical Implementation of Virtual Machine
Practical Implementation of Virtual MachinePractical Implementation of Virtual Machine
Practical Implementation of Virtual Machine
Rubal Sagwal
 
Mounting virtual hard drives
Mounting virtual hard drivesMounting virtual hard drives
Mounting virtual hard drivesCTIN
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting startedHimanshu Patel
 
Manual de Uso para Virtual DJ 7
Manual de Uso para Virtual DJ  7  Manual de Uso para Virtual DJ  7
Manual de Uso para Virtual DJ 7
Mary223
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting started
santiago_d
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting started
Naveen Saggu
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting startedVivian Pacheco
 
Storage and hyper v - the choices you can make and the things you need to kno...
Storage and hyper v - the choices you can make and the things you need to kno...Storage and hyper v - the choices you can make and the things you need to kno...
Storage and hyper v - the choices you can make and the things you need to kno...Louis Göhl
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization TipsYoussef EL HADJ
 
Let’s talk virtualization
Let’s talk virtualizationLet’s talk virtualization
Let’s talk virtualization
Etienne Tremblay
 
The Holy Grail of Deployment
The Holy Grail of DeploymentThe Holy Grail of Deployment
The Holy Grail of DeploymentStuart King
 
Virtual dj 8 getting started
Virtual dj 8   getting startedVirtual dj 8   getting started
Virtual dj 8 getting started
Isaac Bonifacios Gabriel
 
Virtual dj 8 getting started
Virtual dj 8   getting startedVirtual dj 8   getting started
Virtual dj 8 getting started
Hugo Marquez Pajuelo
 
Virtual dj 8 getting started
Virtual dj 8   getting startedVirtual dj 8   getting started
Virtual dj 8 getting started
Daniel Silva
 
Virtual dj 8 getting started
Virtual dj 8   getting startedVirtual dj 8   getting started
Virtual dj 8 getting started
felipemedina666
 
Virtual dj 8 getting started
Virtual dj 8   getting startedVirtual dj 8   getting started
Virtual dj 8 getting started
Alejandra Alvarado Gallegos
 

Similar to 2 Boot To Vhd (20)

Microsoft Windows Server 2012 R2 Hyper V server overview
Microsoft Windows Server 2012 R2 Hyper V server overviewMicrosoft Windows Server 2012 R2 Hyper V server overview
Microsoft Windows Server 2012 R2 Hyper V server overview
 
Dual boot with a vhd final
Dual boot with a vhd finalDual boot with a vhd final
Dual boot with a vhd final
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting started
 
Practical Implementation of Virtual Machine
Practical Implementation of Virtual MachinePractical Implementation of Virtual Machine
Practical Implementation of Virtual Machine
 
Mounting virtual hard drives
Mounting virtual hard drivesMounting virtual hard drives
Mounting virtual hard drives
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting started
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting started
 
Manual de Uso para Virtual DJ 7
Manual de Uso para Virtual DJ  7  Manual de Uso para Virtual DJ  7
Manual de Uso para Virtual DJ 7
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting started
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting started
 
Virtual dj 7 getting started
Virtual dj 7   getting startedVirtual dj 7   getting started
Virtual dj 7 getting started
 
Storage and hyper v - the choices you can make and the things you need to kno...
Storage and hyper v - the choices you can make and the things you need to kno...Storage and hyper v - the choices you can make and the things you need to kno...
Storage and hyper v - the choices you can make and the things you need to kno...
 
Tech X Virtualization Tips
Tech X Virtualization TipsTech X Virtualization Tips
Tech X Virtualization Tips
 
Let’s talk virtualization
Let’s talk virtualizationLet’s talk virtualization
Let’s talk virtualization
 
The Holy Grail of Deployment
The Holy Grail of DeploymentThe Holy Grail of Deployment
The Holy Grail of Deployment
 
Virtual dj 8 getting started
Virtual dj 8   getting startedVirtual dj 8   getting started
Virtual dj 8 getting started
 
Virtual dj 8 getting started
Virtual dj 8   getting startedVirtual dj 8   getting started
Virtual dj 8 getting started
 
Virtual dj 8 getting started
Virtual dj 8   getting startedVirtual dj 8   getting started
Virtual dj 8 getting started
 
Virtual dj 8 getting started
Virtual dj 8   getting startedVirtual dj 8   getting started
Virtual dj 8 getting started
 
Virtual dj 8 getting started
Virtual dj 8   getting startedVirtual dj 8   getting started
Virtual dj 8 getting started
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 

2 Boot To Vhd

  • 2. What Will We Cover? Boot-to-VHD Windows XP Mode Windows Server 2008 R2 Hyper-V Managing Hyper-V with System Center Virtual Machine Manager
  • 3. Agenda Native Boot to VHD What is Native Boot? Benefits and Performance Inside look at Boot to VHD Partitions Common Scenarios Installing … OS Media or Network Boot Step By Step – Native Boot to VHD with No underlying OS Step By Step – Native Boot to VHD with Underlying OS An Inside Look at BCDEdit Limitations Guidelines, Here is the proof => Next…
  • 4. Introduction to Native Boot to VHD What is a Virtual Hard Disk (VHD) Fixed Disks Larger (slower to deploy) Recommended for production systems Dynamic disks Grow as data is added Smaller (faster to deploy) As used with Virtual PC / Virtual Server / Hyper-V Supported Platforms Windows 7 (Enterprise, Ultimate) Windows Server 2008 R2 (Full and Core) Standard, Enterprise, Datacenter, Web Itanium-based systems Tools (See Resources for details) DiskPart,Disk Management (MMC),BCDEdit, BCDBoot, DISM, Hyper-V Manager, Sysprep, ImageX (AIK)
  • 5. Benefits of Native Boot to VHD Possible to boot a VHD directly on hardware Can run Windows Virtualization Platform Deploy either as physical or virtual using same file Use the same management tools Support multiple boot scenarios Fast deployment for re-usable environments Parent of a differencing disk can be a fixed, dynamic, or differencing disk (differencing chain) Negligible performance difference from Native
  • 7. System and VHD Partitions System Partition Primary Partition Bootmgr C:indows D: BCD C:agefile.sys D: C:hdindows7Dynamic.vhd D: Phy Physical Disk Virtual VHD C:indows VHD Boot Parent volume of the VHD is available after boot with a different volume letter LOOK: Watch your disk space go to maximum VHD Capacity + Physical Used
  • 8. Common Scenarios Image management ‘Attach’ a VHD and access as a drive letter Common VHD image for both physical and virtual environments Native boot hardware with no installed OS One or multiple local VHDs within a single partition E.g. for kiosk machines, early adopters Developers, Trainers Demo, Proof of Concept Virtual Appliances Centrally stored VHDs for network deployment Copy locally and then start Network boot to VHD using WDS
  • 9. Install From Media Or Network Boot Start Installation Format Media (if doing bare metal insall) You should be on the “Where do you want to install Windows?” screen of the installation press Shift-F10 to drop to command prompt Find installation drive (dir c:, dir d:, dir e:, etc) Diskpart Create vdisk file=e:ootDemo.vhd type=expandable maximum=40000 Attach vdisk Exit Click “Refresh” button Select “New Drive” and perform normal installation Using this method, the BCD will be updated automatically
  • 10. BCDEdit – Windows Server 2008 R2 Running on Metal In this example, we have an OS running on Metal and a VHD Boot menu also available
  • 11. BCDEdit – Host with NO OS Installed Natively In this example, we have only one OS and it is running in a VHD on an empty hard drive DEMO
  • 12. Preparing for Native Boot and BCDEdit If host system is Vista SP1: Replace Bootmgr and BcdEdit.exe with Windows 7 versions Create bootable VHD file Disk Manager, Hyper-V Manager, ImageX, SCVMM, DiskPart,Etc Copy bootable VHD to a directory on the host system (e.g. ‘c:hdootWin.vhd’) Use BcdEdit to copy the existing boot entry (from administrativecmd prompt) bcdedit /copy {current} /d “Windows VHD Boot” Look at the new entry bcdedit /v Use BcdEdit to Edit the VHD system bcdedit /set {GUID} device vhd=[c:]hdootWin.vhd bcdedit /set {GUID} osdevicevhd=[c:]hdootWin.vhd bcdedit /set {GUID} detecthal on Use BCDEdit to change the description, default start item, menu order, timeout, etc. bcdedit /set {GUID} description “New Menu Description Goes Here!” bcdedit /default {GUID} bcdedit /displayorder {GUID_1} {GUID_2} bcdedit /timeout 10 If using virtualization on the system… (Make sure you cold boot after making changes) Enable Virtualization in BIOS bcdedit /set {GUID} hypervisorlaunchtype auto
  • 13. An Inside Look at BCDEdit Let’s look at BCDEdit in some detail
  • 14. Limitations Native Boot is only for Windows 7 and 2008 R2 Native Boot does not support Hibernation Sleep mode is supported Native Boot does not support BitLocker No Over Allocation of Disk Space No “Nested” boot to VHD Maximum size of dynamic VHD = 2TB (2048 GB) Parent of Differencing disk must be on same volume
  • 15. VHD Boot Guidelines Native VHD boot requires Windows 7 Boot Manager (Bootmgr) and BCDEdit utility Use BCDboot.exe from attached VHD Pagefile and boot manager are outside Virtual Hard Disk (VHD) Dynamic VHD expanded during boot Plan physical disk free space accordingly Store user data outside of the OS VHD
  • 16. Creating Differencing Disks Create the VHD’s diskpart create vdisk file="D:IN7_Diff0.vhd" parent="D:IN7.vhd“ exit This takes care of creating the VHD’s and setting up the parent – child relationship. To be able to boot to the differencing disk, the BCD store will need to be updated to reflect our intended changes. Update the BCD store. BCDEdit.exe /set {GUID} device VHD=[D:]in7_Diff0.vhd BCDEdit.exe /set {GUID} osdevice VHD=[D:]in7_Diff0.vhd
  • 17. Thin Provisioning – Be Very Careful registry entry will prevent the disk from expanding to its full size. Open the registry editor, browse to the location that’s displayed  below and alter the value to “4”. [HKEY_LOCAL_MACHINEYSTEMurrentControlSetervicessDependsarameters] "VirtualDiskExpandOnMount"=dword:00000004
  • 18. Resources How to Perform Common Tasks  http://technet.microsoft.com/en-us/library/dd979534(WS.10).aspx   What's New for IT Pros in Windows 7 http://technet.microsoft.com/en-us/library/dd349334(WS.10).aspx What's New in Virtual Hard Disks http://technet.microsoft.com/en-us/library/dd440864(WS.10).aspx What's New in Deployment Tools http://technet.microsoft.com/en-us/library/dd744386(WS.10).aspx  Windows(R) Image to Virtual Hard Disk (WIM2VHD) Converter http://code.msdn.microsoft.com/wim2vhd  
  • 19. Tools Resources Appendix: Tools, Scripts, and APIs. The following tools are included in Windows 7 and Windows Server 2008 R2: DiskPart   A command-line tool that you can use to create, attach, and detach VHDs. You can also perform more advanced tasks like compacting, expanding, and merging VHDs. For more information, see DiskPart on Microsoft TechNet (http://go.microsoft.com/fwlink/?LinkId=128458). Disk Management   A Microsoft Management Console (MMC) snap-in that you can use to create, attach, and detach VHDs. BCDEdit   A command-line tool that you use to manage boot configuration data (BCD) stores. For more information, see BCDEdit on Microsoft TechNet (http://go.microsoft.com/fwlink/?LinkId=128459). BCDBoot   A command-line tool that you can use to manage and create new BCD stores and BCD boot entries. BCDBoot can be used to create a new boot entry when configuring a system to boot from a new VHD. For more information, see BCDBoot Command-Line Options on Microsoft TechNet (http://go.microsoft.com/fwlink/?LinkID=155166). Deployment Image Servicing and Management (DISM)   A command-line tool that you use to apply updates, drivers, and language packs to a Windows image. For more information, see Deployment Image Servicing and Management Technical Reference on Microsoft TechNet (http://go.microsoft.com/fwlink/?LinkId=155029). Windows Hyper-V Manager   An MMC snap-in that supports VHD image creation. You can specify the type and size of VHD and install Windows from a CD or DVD, or from an ISO Image file. The Hyper-V Manager is only available on computers that are running Windows Server 2008 or Windows Server 2008 R2 with the Hyper-V role installed. Sysprep   A tool that enables you to remove user and computer-specific data from the operating system image. This enables you to capture the image and deploy it to other computers. For more information, see Sysprep Technical Reference on Microsoft TechNet (http://go.microsoft.com/fwlink/?LinkId=155027). The following tool are included in the Windows Automated Installation Kit (Windows AIK): ImageX   A command line tool that enables you to capture, create, modify, and apply Windows images. For more information, see ImageX Technical Reference on Microsoft TechNet (http://go.microsoft.com/fwlink/?LinkId=155340).