Posts

Showing posts with the label virtualization

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

Problem running OpenGL program in a virtual machine

In case you encounter the following issue when running OpenGL program in a virtual machine OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x180fb10 OpenGL Warning: Retry with 0x8002 returned 0 visuals Segmentation fault (core dumped) You may set the LIBGL_ALWAYS_INDIRECT environment variable to 1 before running my GLUT programs, as follows. export LIBGL_ALWAYS_INDIRECT=1 Reference