This is a discussion on Teleportation Cool feature of the Oracle/Sun VirtualBox 3.1 - Solaris Rss ; Teleportation is the term given to process migration ,with this feature, you can move running virtual machines between different hosts. You can move them across different architectures, different host operating systems, and between servers and clients. this feature makes it ...
Teleportation is the term given to process migration ,with this feature, you can move running virtual machines between different hosts. You can move them across different architectures, different host operating systems, and between servers and clients. this feature makes it possible to service your hardware without shutting down your VMs, as you can simply move them to another piece of hardware for the time being. The ability to teleport running virtual machines from one computer to another allows system administrators to perform essential maintenance with zero downtime of their IT systems. Teleporting happens over any TCP/IP network; the source and the target only need to agree on a TCP/IP port which is specified below. At this time, there are a few prerequisites for this to work, however:
- On the target host, you must configure a virtual machine in VirtualBox with exactly the same hardware settings as the machine on the source that you want to teleport. This does not apply to settings which are merely descriptive, such as the VM name, but obviously for teleporting to work, the target machine must have the same amount of memory and other hardware settings. Otherwise teleporting will fail with an error message.
- The two virtual machines on the source and the target must share the same storage (hard disks as well as floppy and CD/DVD images). This means that they either use the same iSCSI targets or that the storage resides somewhere on the network and both hosts have access to it via NFS or SMB/CIFS. This also means that neither the source nor the target machine can have any snapshots.
Vbox host Configuration
- Create the skeleton of the Virtual Machine
# VBoxManage createvm --name Machine1 --ostype Windows7 ?register
- Add Controller
# VBoxManage storagectl Mach1 --name "IDE Controller" --add ide --controller PIIX4
- Add the Disk by using the iqn retrieved from the Storage server.
# VBoxManage addiscsidisk --server Storage-server-name --target iqn.1986-03.com.sun:02:1f1ca1f1-9221-c139-9aef- 9c9f5dd59590
Note: the above command returns the UUID similar like UUID:8483094f-4dad-47bf-8537-66e5a7620c7d
- Attach the Storage
# VBoxManage storageattach Mach1 --storagectl "IDE Controller" --port0 --device0 --type hdd --medium 8483094f-4dad-47bf-8537-66e5a7620c7d
then at this step open the VirtualBox UI by typing the command
# VirtualBox &
- Select the the Virtual machine , in our case Machine1 and go to settings from the menu then add the Cdrom image of your Operating system.Check the minimum RAM for instance Windows7 needs minimum of 1GB. Check the Disk controller and the disks
- Finally start the machine and install the OS.
Target Machine Configuration
- On the target host, configure the virtual machine to wait for a teleport request to arrive when it is started, instead of actually attempting to start the machine. This is done with the following VBoxManage command:
# VBoxManage modifyvm --teleporter on --teleporterport 1234 --teleporterpassword password --teleporteraddress
- '1234' is the TCP/IP port( Note:you can assign a different unused port number but it has to be the same for both the target and the source )
- The password is your target machine password
- Ip address is the target machine address
- Start the VM on the target host. You will see that instead of actually running, it will show a progress dialog. indicating that it is waiting for a teleport request to arrive.
- Start the machine on the source host as usual. When it is running and you want it to be teleported, issue the following command on the source host:
#VBoxManage controlvm teleport --port 1234 --host --password password
- '1234' is the TCP/IP port
- the password is your source machine password
- ip address is the target machine address
Read More about [Teleportation Cool feature of the Oracle/Sun VirtualBox 3.1...