informatique:virtualbox
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
informatique:virtualbox [16/03/2011 14:01] – créée cyrille | informatique:virtualbox [14/09/2018 16:34] (Version actuelle) – [modifyhd] add SDelete url cyrille | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Virtualbox ====== | ====== Virtualbox ====== | ||
+ | |||
+ | Menu perdu: Ctrl droit (host) + Home | ||
+ | |||
+ | Guest additions: | ||
+ | * [[https:// | ||
+ | Shared folders: | ||
+ | * [[https:// | ||
+ | |||
+ | ===== Networking ===== | ||
+ | |||
+ | ==== SSH into a VirtualBox Linux guest from your host ==== | ||
+ | |||
+ | Accès réseau à une machine virtuelle depuis le réseau hôte: | ||
+ | |||
+ | Configurer le réseau de la VM en mode Pont (Bridge) : | ||
+ | |||
+ | {{: | ||
===== VBoxManage ===== | ===== VBoxManage ===== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | ==== clonehd ==== | ||
+ | |||
+ | This command duplicates a registered virtual hard disk image to a new image file with a new unique identifier (UUID). The new image can be transferred to another host system or imported into VirtualBox again using the Virtual Media Manager. | ||
+ | |||
+ | VBoxManage clonehd | ||
+ | [--format VDI|VMDK|VHD|RAW|< | ||
+ | [--variant Standard, | ||
+ | [--existing] | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
==== modifyhd ==== | ==== modifyhd ==== | ||
- | With the **--compact** option, can be used to compact disk images, i.e. remove blocks that only contains zeroes. This will shrink a dynamically expanding image again; it will reduce the physical size of the image without affecting the logical size of the virtual disk. Compaction works both for base images and for diff images created as part of a snapshot. | + | With the **–compact** option, can be used to compact disk images, i.e. remove blocks that only contains zeroes. This will shrink a dynamically expanding image again; it will reduce the physical size of the image without affecting the logical size of the virtual disk. Compaction works both for base images and for diff images created as part of a snapshot. |
+ | |||
+ | For this operation to be effective, it is required that free space in the guest system first be zeroed out using a suitable software tool. For Windows guests, you can use the sdelete tool provided by Microsoft. Execute **sdelete -z** (faster than -c) in the guest to zero the free disk space before compressing the virtual disk image. | ||
+ | |||
+ | Please note that compacting is currently only available for VDI images. A similar effect can be achieved by zeroing out free blocks and then cloning the disk to any other dynamically expanding format. You can use this workaround until compacting is also supported for disk formats other than VDI. | ||
+ | |||
+ | * [[https:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | |||
+ | ==== sethduuid ==== | ||
+ | |||
+ | Changer l'UUID d'une image disk: | ||
+ | < | ||
+ | |||
+ | WARNING: This is a development tool and shall only be used to analyse | ||
+ | | ||
+ | |
informatique/virtualbox.txt · Dernière modification : 14/09/2018 16:34 de cyrille