Difference between revisions of "Virtual Machines"
Jump to navigation
Jump to search
(→Can't Commit Snapshot: Elaborated) |
(Added "Upgrade ESX3 to ESX4") |
||
Line 176: | Line 176: | ||
** <code> vmware-cmd /vmfs/volumes/SAN1/ServerA/ServerA.vmx stop hard </code> | ** <code> vmware-cmd /vmfs/volumes/SAN1/ServerA/ServerA.vmx stop hard </code> | ||
** <code> stop(hard) = 1 </code> | ** <code> stop(hard) = 1 </code> | ||
== Upgrade ESX3 to ESX4 == | |||
=== Preparation === | |||
* Clean up the VM | |||
*# Stop any snapshots, and ensure there's no remnant snapshot files (*.vmsd, *-0000x.vmdk, *-delta.vmdk) | |||
*# No CD/floppy file attached | |||
* Clean up the guest OS | |||
*# Delete unnecessary files | |||
*# Ensure VM Tools is up to date | |||
*# Perform a reboot (without any changes) | |||
*# Check logs to ensure machine started without any significant errors | |||
* Record IP settings (they will get lost!) | |||
*# <code> ipconfig/all </code> | |||
*# <code> route print </code> if there might be static/persistent routes | |||
* Ensure you know the machines admin account (inc domain if on domain) | |||
* Shut the VM down | |||
=== Procedure === | |||
Procedure assumes your migrating machines from a VI3 infrastructure to a new VI4/vSphere infrastructure. | |||
# Export machine as a Virtual Appliance from VI3 infrastructure | |||
#* In the VI Client, select the VM and go to '''File | Virtual Appliance | Export...''' | |||
# Import machine into new vSphere infrastructure | |||
#* In the VI Client, select the VM and go to '''File | Deploy OVF Template...''', and select the appropriate options in the resulting wizard | |||
# Start the virtual machine to verify its survived the export/import then shutdown | |||
# Take a snapshot (if you make an irreversible mistake its quicker to revert to snapshot than reimport) | |||
# Upgrade the virtual hardware | |||
#* Right-click and select '''Upgrade Virtual Hardware''' | |||
# Upgrade the network adapter to VMXNET3 | |||
#* Remove existing network adapters (note the networks they're connected to!), then add the same quota of VMXNET3 adapters (connected to the same networks in the same order) | |||
# Upgrade the SCSI controller - part 1 (if required) | |||
#* Add a new temporary disk, on the next bus (eg SCSI node 1:x), and change the type to ''VMware Paravirtual'' | |||
# Restore network config | |||
#* Restart VM, and re-apply recorded network config (answer Yes when asked whether to remove duplicate config on non-existent adapter) | |||
# Upgrade the SCSI controller - part 2 (if required) | |||
#* Shutdown the VM, and remove the temporary disk added, and change the original SCSI controller to ''VMware Paravirtual''. Restart the machine. | |||
# Delete/Commit the snapshot | |||
== Troubleshooting == | == Troubleshooting == |