59:tuto_vboxmanage
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
59:tuto_vboxmanage [2012/04/10 10:39] – créée auntiee | 59:tuto_vboxmanage [2012/04/29 10:19] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ** | ||
It's a common problem: you run VirtualBox, create a virtual machine, probably with a dynamic disk, at your best guess at an adequate disk size, run it for a while, then find you're running out of space. | It's a common problem: you run VirtualBox, create a virtual machine, probably with a dynamic disk, at your best guess at an adequate disk size, run it for a while, then find you're running out of space. | ||
Ligne 8: | Ligne 9: | ||
This is a command-line application, | This is a command-line application, | ||
+ | ** | ||
+ | C'est un problème courant : vous lancez VirtualBox, créez une machine virtuelle, sans doute avec un disque dynamique, à une taille disque suffisante selon votre meilleure estimation, vous l' | ||
+ | |||
+ | Vous pouvez facilement agrandir la taille du disque dur dans VirtualBox en utilisant la commande : | ||
+ | |||
+ | VBoxManage modifyhd --resize | ||
+ | |||
+ | L' | ||
+ | |||
+ | C'est une application en ligne de commande, donc vous devez ouvrir une session Terminal pour lancer la commande et changer de répertoire vers l' | ||
+ | |||
+ | ** | ||
Two important notes: | Two important notes: | ||
• Shutdown the running virtual machine before you mess with the disk! | • Shutdown the running virtual machine before you mess with the disk! | ||
Ligne 22: | Ligne 35: | ||
• --resize 10240 Next is the desired new size for the virtual disk. That's two dashes before the word " | • --resize 10240 Next is the desired new size for the virtual disk. That's two dashes before the word " | ||
Also remember that you'll need to increase the size of your guest partition on the disk, or create an additional partition in the new space. In this respect, you'll need to do the work with disk utilities appropriate to your guest operating system just as if it were a real PC with real spinning rust (magnetic disks). | Also remember that you'll need to increase the size of your guest partition on the disk, or create an additional partition in the new space. In this respect, you'll need to do the work with disk utilities appropriate to your guest operating system just as if it were a real PC with real spinning rust (magnetic disks). | ||
+ | ** | ||
+ | Deux remarques importantes : | ||
+ | |||
+ | • Arrêtez le fonctionnement de la machine virtuelle avant de mettre la pagaille sur le disque ! | ||
+ | |||
+ | • Sauvegardez l' | ||
+ | |||
+ | La commande dont vous avez besoin suit ce modèle : | ||
+ | |||
+ | VBoxManage modifyhd XP_newdisk.vdi --resize 10240 | ||
+ | |||
+ | • VBoxManage est la suite utilitaire qui est livrée avec VirtualBox ; | ||
+ | • modifyhd est la commande pour redimensionner le disque virtuel ; | ||
+ | • XP_newdisk.vdi est mon nom de disque par exemple, vous devrez le changer pour correspondre à votre nom de disque, et n' | ||
+ | • --resize 10240 est la nouvelle taille souhaitée pour le disque virtuel. Il y a deux tirets avant le mot « resize » suivi par un certain nombre de méga-octets ; 10240 étant équivalent à 10 Go ; | ||
+ | | ||
+ | |||
+ | ** | ||
Note:.vmdk disks cannot be expanded by modifyhd commands. Try this command line and you'll get the error: VBoxManage: error: Resize hard disk operation for this format is not implemented yet! | Note:.vmdk disks cannot be expanded by modifyhd commands. Try this command line and you'll get the error: VBoxManage: error: Resize hard disk operation for this format is not implemented yet! | ||
Ligne 33: | Ligne 64: | ||
[--compact] | [--compact] | ||
[--resize < | [--resize < | ||
+ | ** | ||
+ | Remarque : les disques .vmdk ne peuvent pas être élargis par des commandes modifyhd. Essayez cette ligne de commande et vous obtiendrez le message d' | ||
+ | |||
+ | Vous pouvez trouver le manuel de VirtualBox d' | ||
+ | où la syntaxe complète de la commande ressemble à ceci : | ||
+ | VBoxManage modifyhd | ||
+ | [--type normal|writethrough|immutable|shareable| | ||
+ | readonly|multiattach] | ||
+ | [--autoreset on|off] | ||
+ | [--compact] | ||
+ | [--resize < | ||
+ | |||
+ | ** | ||
The --compact option can be used to shrink disk images, that is, remove blocks of empty space (containing zeroes). This will shrink a dynamically allocated image by reducing the physical size of the image without affecting the logical size of the virtual disk. | The --compact option can be used to shrink disk images, that is, remove blocks of empty space (containing zeroes). This will shrink a dynamically allocated image by reducing the physical size of the image without affecting the logical size of the virtual disk. | ||
Ligne 39: | Ligne 83: | ||
Note: instructions and links relate to the Oracle VirtualBox version and not to the VirtualBox OSE package contained in the official Ubuntu repositories. | Note: instructions and links relate to the Oracle VirtualBox version and not to the VirtualBox OSE package contained in the official Ubuntu repositories. | ||
+ | ** | ||
+ | |||
+ | L' | ||
+ | |||
+ | | ||
+ | |||
+ | |
59/tuto_vboxmanage.1334047191.txt.gz · Dernière modification : 2012/04/10 10:39 de auntiee