VM's von VMwares Server2 zu ESXi migrieren: Unterschied zwischen den Versionen
| Zeile 1: | Zeile 1: | ||
| − | == | + | == Transfer der vmdk (Virtuellen Festplatten) Dateien und Konvertierung in das neue Format == |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Die Virtuelle Festplatte muss als SCSI Device und nicht als IDE Device eingebunden sein! | Die Virtuelle Festplatte muss als SCSI Device und nicht als IDE Device eingebunden sein! | ||
Version vom 22. Februar 2013, 11:11 Uhr
Transfer der vmdk (Virtuellen Festplatten) Dateien und Konvertierung in das neue Format
Die Virtuelle Festplatte muss als SCSI Device und nicht als IDE Device eingebunden sein! (Rechtsklick, Einstellungen der VM -> Hardware)
1. VM ausschalten (kein Pausieren!)
2. per scp alles auf den Ziel-ESXi kopieren
3. neue VM auf ESXi erstellen
4. die alten Disks müssen zuerst konvertiert werden, dazu wechseln wir in den Pfad, wo die alten vmdk Files liegen und Konvertieren diese in eine neue File (Beachtet dabei dass aus mehrere vmdk Dateien nun eine einzige Datei generiert wird.)
cd /vmfs/volumes/datastore1/copyvmserver1 vmkfstools -i hdd0.vmdk -d zeroedthick hdd0_esx.vmdk
5. Danach wird die konvertierte Disk in das Verzeichnis verschoben wo wir unsere Virtuelle Maschine angelegt haben.
mv /vmfs/volumes/datastore1/copyvmserver1/hdd0_esx.vmdk /vmfs/volumes/datastore1/debiantest1/debiantest1.vmdk
6. Nachdem die Konvertierung abgeschlossen ist kann die Virtuelle Maschine editiert werden, die bestehende, temporäre Disk gelöscht und die beiden konvertierten Disks eingebunden werden:
7. VM starten
IDE zu SCSI konvertieren
I recently had a Vmware virtual disk that was setup as IDE. Unfortunately I needed to extend the drive size, which is done, in part by mounting the drive on another virtual machine, to complete the extend. IDE drives cannot be mounted on another virtual machine. So, the easy fix was to convert the drive from IDE to SCSI, which is very easy to do!
1) Shut down virtual machine
2) Find the virtual disk location on your specific datastore. It will be a .vmdk file, and they usually are numbered, in the order they were added to the vm. ( usually with the virtual machine)
3) From either the ESX console, or SSH / secret console of ESXi, edit the .vmdk file. I chose to use vi to edit the file.
4) Find the line that reads ddb.adapterType = "ide"
5) Change that line to ddb.adapterType = "lsilogic"
(You also can change it to Bus Logic, by changing it to ddb.adapterType = "buslogic"
6) Save
7) From within the vSphere client, select Edit Settings for corresponding vm
8) Select the IDE disk
9) Remove the disk from the vm, but DO NOT SELECT Remove from Disk!
10) Click Add, and select new Hard Disk
11) Select Use Existing Virtual Disk, and navigate the location of the modified disk ( usually with the virtual machine)
12) Choose the SCSI as the adapter type, and the SCSI ID of SCSI 0:0
13) Boot the virtual machine, and let it make the needed changes
14) It will usually prompt you to reboot again, now that the new drive setup is complete
15) Enjoy your SCSI drive!
Mehr Infos und Bilder:
http://www.sysadminslife.com/virtualization/howto-virtuelle-maschine-von-vmware-server-2-x-1-x-auf-esxi-migrieren/ http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1881