Posts

Showing posts with the label VirtualBox

Convert format, resize vdi and set uuid of virtual disks in VirtualBox

Convert format: VBoxManage clonehd source.vdi target.vmdk --format VMDK Resize vdi: VBoxManage modifyhd YOUR_HARD_DISK.vdi --resize SIZE_IN_MB   Set harddisk uuid: vboxmanage internalcommands sethduuid "Windows 8.1 Pro.vdi" f8acb710-46c9-4d77-b7d3-52a1845d06c7

Set custom time for VirtualBox virtual machines

Open VirtualBox and identify the name of the virtual machine that you want to work on. Go to the VirtualBox executable page (In Windows, it is usually C:\Program Files\Oracle\VirtualBox). Run the following command to stop the VM to sync its clock with the host. VBoxManage setextradata "My Virtual Machine" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1 Use the following command to set the time offset between the host and the guest. A positive value will set the time of the virtual machine ahead of the host. BoxManage modifyvm "VM name" --biossystemtimeoffset Reference

Network for VM under proxy environment

Use bridge networking mode rather than the default NAT. Then the VM is like an additional machine in the local network, and its proxy setting can be configured as any other machine in the network. Reference

Turning wubi installation to VirtualBox virtual machine

Create a new VM in VirtualBox menu. Set up two CD/DVD devices. The first device should mount a Linux Live CD. The other should mount the Guest Addition ISO. You should also put the root.disk to be imported as VirtualBox VM to somewhere in the host OS, and set up "Shared Folder" that points to the respective directory. Boot up the VM and take the "Try" option. When the VM boots up, call gparted and create partitions on the VM harddisk for swap and primary partition. You should get at two /dev/sdax/ devices. Mount the Guest Addition CD and install Guest Addition. Inside the VM, mount the host OS "Shared Folder" that contains root.disk ( Ref ): sudo mount -t vboxsf share ~/host Use the MigrateWubi script to migrate the root.disk content to the VM devices you created above: sudo bash wubi-move.sh --root-disk=/media/win/ubuntu/disks/root.disk /dev/sda1 /dev/sda2