VirtualBox
Redimensionner un disque VDI
Si vous manquez de place sur votre disque virtuel.
Création de la nouvelle machine et clonage
Avec l'IHM de
VirtualBox, créer une nouvelle machine virtuelle avec l'espace disque désiré :
newmachine.vdi
Cloner la machine virtuelle à redimensionner.
vboxmanage clonehd oldmachine.vdi --existing newmachine.vdi
En cas de pb d'UUID déjà référencé par VirtualBox
Copier la machine virtuelle source
cp oldmachine.vdi copy.vdi
Changer l'UUID de la copie
vboxmanage internalcommands setvdiuuid copy.vdi
Cloner la copie vers la nouvelle machine
vboxmanage clonehd oldmachine.vdi --existing newmachine.vdi
Supprimer la copie
rm copy.vdi
NB : plutôt que de la copier, le plus simple doit être de déréférencer la machine virtuelle source (mais je n'ai pas eu l'occasion d'essayer).
Pré-requis pour redimensionner une partition NTFS
Commencer par démarrer sur la nouvelle machine virtuelle.
Lancer la commande suivante dans une invite de commande.
chkdisk /f
La commande devrait indiquer que le disque étant en cours d'utilisation, la vérification ne pourra être réalisée qu'au reboot, répondre
Oui.
Rebooter, la vérification devrait être réaliser et corriger des erreurs
Une fois démarrée, vous pouvez éteindre la machine virtuelle.
Redimensionnement de la partition
Télécharger une image ISO d'un
LiveCD contenant
GParted (Ubuntu par exemple).
Dans l'IHM de
VirtualBox (gestionnaire de disques virtuels), configurer le support CDROM de votre machine pour démarrer avec l'image du
LiveCD.
Démarrer la machine virtuelle (qui démarre sur le
LiveCD).
Depuis le
LiveCD, lancer
GParted et redimensionner la partition NTFS.
Eteindre la machine virtuelle, retirer le
LiveCD de la machine virtuelle, puis relancer la machine.
Après un dernier
chkdisk votre OS devrait redémarrer normalement.
HowTo : Create a MS Internet Explorer testing environment on Ubuntu 10.04 using Microsoft FREE VHD images
Microsoft fournit des
machines virtuelles (XP, Vista) qui permet de tester vos développements Web avec vos navigateurs préférés ;-) :
IE6,
IE7 et
IE8.
Use Microsoft test VHD images with Ubuntu :
This is a
VirtualBox experimented user oriented how-to.
I used the non-free
VirtualBox software (the one with
Vbox.... commands)
It assumes you know how to use
VirtualBox :
- create a virtual machine
- create a snapshot
- install VirtualBox Guest Additions
Download the VHD image you want to use here
To extract self extracting files in current directory on linux :
unrar e the-windows-file-to-extract.exe
Create virtual machine.
Create virtual machine on Vbox HMI
NB : if you already create a virtual machine from MS VHD images, you will probably have to change your new VHD image UUID before installing :
VBoxManage internalcommands setvdiuuid new_ms_image.vhd
Runnning Windows
Create a first
SnapShot before running your VHD image for the fist time. It will avoid you to activate your Windows version by phone in case of network driver installation error.
Cancel all prompt windows and install Guest Additions.
DO NOT RESTART (or you won't be able to perform your windows internet registration).
Installing network adapter drivers to activate windows
Now go to
Start > Run and paste the following to extract
VirtualBox drivers :
D:\VBoxWindowsAdditions-x86.exe /extract /D=C:\Drivers
Now setup the Network Adapter : go to
Start > Administrative Tools > Computer Management and select the Device Manager there. Navigate to Network Adapters, Ethernet Controller. Right click it and choose “Update Driver…“. Select “Yes, now and every…” and click Next. Select “Install from a list or specific location“, click Next. In the Location box paste in “C:\Drivers\x86\Network\AMD” or navigate to it manually. Click Finish.
Troubleshooting
- If drivers folder
C:\Drivers\AMD\
doesn't appear on guest additions you'll need to download them as described here
- Tutorial to install missing XP SP3 dirvers (battery state and so...)
- Qwerty keyboard : so Password1 will become Pqsszord& with AZERTY keyboard
End
You should have a working ethernet connection now. You can also activate your Windows.
Restart your virtual machine to perform driver installation.
When all drivers installed, shutdown.
Take another snapshot of your fresh VHD install in case of future problems....
That's all...
I was inspired from this how-to :
http://zytzagoo.net/blog/2009/03/20/howto-running-ie6-ie7-and-ie8-on-ubuntu-intrepid-810-using-virtualbox/