« Hyperv » : différence entre les versions
Apparence
Ligne 4 : | Ligne 4 : | ||
# Windows → Turn Windows Features on or off | # Windows → Turn Windows Features on or off | ||
# Cocher Hyper-V | # Cocher Hyper-V | ||
= Dossiers = | |||
{| class="wikitable wtp wtmono2" | |||
|- | |||
| Virtual machine configuration folder || C:\ProgramData\Microsoft\Hyper-V | |||
|- | |||
| Checkpount store || C:\Users\Public\Documents\Hyper-V\Virtual hard disks | |||
|- | |||
| Smart Paging folder || C:\Users\Public\Documents\Hyper-V\Virtual hard disks | |||
|} | |||
= Monter un lecteur hote = | = Monter un lecteur hote = |
Version du 31 mai 2020 à 13:34
Activer Hyper-V
- Windows → Turn Windows Features on or off
- Cocher Hyper-V
Dossiers
Virtual machine configuration folder | C:\ProgramData\Microsoft\Hyper-V |
Checkpount store | C:\Users\Public\Documents\Hyper-V\Virtual hard disks |
Smart Paging folder | C:\Users\Public\Documents\Hyper-V\Virtual hard disks |
Monter un lecteur hote
- Connect
- Fenêtre Connect to → Show Options
- onglet Local Resources → More → Drives → C:
Booter sur une machine virtuelle
REM lancer diskpart
diskpart
list volume
REM ajouter le fichier vhdx
select vdisk file="C:\folder\windows.vhdx"
attach vdisk
REM changer la lettre de montage
select volume 3
assign letter=v
REM détacher un vdisk
select vdisk
select vdisk file="C:\folder\windows.vhdx"
detach vdisk
|
# ajouter une nouvelle entrée au boot menu
bcdboot V:\Windows
# connaître l'id ("{default}" et "{current}" désignent les OS par défaut et courant)
bcdedit /v
# changer la description
bcdedit /set "{id}" description "Windows 10 (VHDX)"
# changer l'entrée par défaut
bcdedit /default "{id}"
# ne plus afficher le boot menu
bcdedit /timeout 0
# supprimer une entrée
bcdedit /delete "{id}"
|
![]() |
Configurer le boot menu:
|
VHD_BOOT_HOST_VOLUME NOT ENOUGH SPACE
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\FsDepends\Parameters → VirtualDiskExpandOnMount = 4
Hibernation
You cannot hibernate an operating system that runs on a VHD. However, sleep functionality is available.
Limitation of VHDX native boot
Erreurs
Property ‘MaxInternalSize’ does not exist in class ‘Msvm_VirtualHardDiskSettingData’
Le snapshot ne reconnait plus son parent.
# essayer une première fois sans IgnoreIDMismatch
Set-VHD "C:\folder\Win10_snapshotId.avhdx" -ParentPath "C:\folder\Win10.vhdx" -IgnoreIDMismatch
|