标签 ‘VirtualBox’ 归档文章

Convert and Extend VMDK to VDI for Virtualbox on Mac

Shutdown VM, On Mac Terminal, use below command to convert the VMDK to VDI first, then resize to 80000 MB.

alberts-mbp-2:MacOS albertxu$ ./VBoxManage modifyhd /Users/albertxu/Documents/VDI/win7.vmdk –resize 80000
0%…
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage: error: Resize hard disk operation for this format is not implemented yet!
alberts-mbp-2:MacOS albertxu$ ./VBoxManage clonehd /Users/albertxu/Documents/VDI/win7.vmdk /Users/albertxu/Documents/VDI/win7.vdi –format vdi
0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%
Clone hard disk created in format ‘vdi’. UUID: 6941a00d-6634-4ea5-a76c-61b1a7ae7195
alberts-mbp-2:MacOS albertxu$ ./VBoxManage modifyhd /Users/albertxu/Documents/VDI/win7.vdi –resize 80000
0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%
alberts-mbp-2:MacOS albertxu$ ls -al /Users/albertxu/Documents/VDI/win7.vmdk
-rw——-  1 albertxu  staff  21478768640  4 Jan 13:46 /Users/albertxu/Documents/VDI/win7.vmdk
alberts-mbp-2:MacOS albertxu$ ls -al /Users/albertxu/Documents/VDI/win7.vdi
-rw——-  1 albertxu  staff  21460156416  4 Jan 13:54 /Users/albertxu/Documents/VDI/win7.vdi
alberts-mbp-2:MacOS albertxu$

On Virtualbox, Change the VM storage to the new VDI file. Start the VM, In Win7 Seachbox, input disk management, or run diskmgmt.msc, Select C: drive, right click, choose to extend volume, it can automatically detect the expandable space, confirm,

Then refresh your c: drive in “My Computer”, it will be in new size.

Note: gparted is not needed to expand the space in this case.

在 Solaris 11 的 Virtualbox 里向 VM 发送 F12 键

由于某种原因,在 Virtualbox 里按 F12 不能被 VM 识别。 Virtualbox 提供命令模拟发送键盘指令给虚拟机:

VBoxManage controlvm mywin7vm keyboardputscancode 07 58

其他的一些键盘扫描码:

1d 38 e0 53 Ctrl + Alt + Delete Start Windows logon screen.
38 3b Alt + F1 Invoke OS/2 recovery screen.
06 3c F2 Standard F2 keypress.
06 42 F8 You will need this to agree to XP license terms.
07 58 F12 Press F12 to open BIOS.

 

原文:http://www.micromux.com/2009/08/25/virtual-box-virtual-keys/

Compact VDI Image file

Compacted my Windows XP 6GB VDI Image to 4GB  today according to this article.

Steps:

  1. Defragment Guest
  2. Defragment Guest Again
  3. copy nullfile to guest, and run nullfile on guest
  4. shutdown guest
  5. On Host, Run: VBoxManage modifyvdi XP.vdi compact

Virtualbox 3.0 Beta

VirtualBox
Image via Wikipedia

As said in the article, Sun 的虚拟化产品是否太多了?Oracle 收购后, Oracle 自己也有好几个虚拟化产品呢!3.0 主要的更新是允许 guest OS? 支持多个虚拟 CPU。心急的用户可以点击这里下载。

(更多…)

Ubuntu 9.0.4 Desktop on top of Virtualbox 2.2.2

VirtualBox
Image via Wikipedia

IT for most ordinary people, including those called themselves in the industry, may still had the complexity. Different version, different platform.

在这个五一小长假里,做的一件有意义的事情就是把机器里的 VirtualBox 从 2.2.0 升级到 2.2.2 ,因为看到 2.2.0 上的那些?? GuestOS 运行起来都有问题。

然后,安装了 Ubuntu 9.0.4 的 Desktop 版本到 VBox 上。安装的过程有点慢,特别是配置 apt-get 镜像的时候,那个时候,必须断开一下网络,重新连接,否则网络的 timeout 估计遥遥无期了。断开的方式很简单,在 VBox 的右下菜单右键点击那个网卡按钮,不选中网卡即可。

网络上的文章谈到的不能安装 Guest ,恐怕是不对的,我的机器上安装了 Guest Edition ,没有看到不稳定的情形。显卡的? 3D 加速功能也很正常。

(更多…)

Google+