简体   繁体   English

如何将Cloudera Hadoop“ vbox” VMDK转换为VirtualBox VDI

[英]How to convert Cloudera Hadoop “vbox” VMDK to VirtualBox VDI

Hi guys : I am trying to run the Cloudera Hadoop VM in Virtual box. 大家好:我正在尝试在“虚拟”框中运行Cloudera Hadoop VM。

  • First, I noted that the download is a .vmdk file. 首先,我注意到下载是一个.vmdk文件。 Of course, this suffix is for VMWare, so that was a bit odd. 当然,该后缀是针对VMWare的,因此有点奇怪。

  • Luckily, I found a tutorial on how to convert the cloudera vmdk into a virtual box file here : http://www.ubuntugeek.com/howto-convert-vmware-image-to-virtualbox-image.html . 幸运的是,我在这里找到了有关如何将cloudera vmdk转换为虚拟盒文件的教程: http ://www.ubuntugeek.com/howto-convert-vmware-image-to-virtualbox-image.html。 However, when I tried to convert the vmdk file to a virtual box file by using convertdd, and ultimately got a message that "Failed to write to disk image "cdh.vdi" VERR_DISK_FULL" 但是,当我尝试通过使用convertdd将vmdk文件转换为虚拟盒文件时,最终收到一条消息“无法写入磁盘映像“ cdh.vdi” VERR_DISK_FULL”

  • So my question is , how do you run the Cloudera Hadoop VM in vbox ? 所以我的问题是,如何在vbox中运行Cloudera Hadoop VM? I found a site http://www.facebook.com/note.php?note_id=108313592002 here, but it does not appear to work (this site suggests loading the VMDK image as a new hard disk, but "new" hard disks are not enabled in my fresh virtual box install). 我在这里找到了一个站点http://www.facebook.com/note.php?note_id=108313592002 ,但似乎无法正常工作(该站点建议将VMDK映像作为新硬盘加载,但是将“新”硬盘加载)在我的全新虚拟盒子安装中未启用)。 I only get "remove" and "refresh" options in my VBox disk manager. 我在VBox磁盘管理器中仅获得“删除”和“刷新”选项。

OUTPUT FROM VBOX CONVERTING TO CDH 从VBOX转换为CDH的输出

~/Development$ VBoxManage convertdd /tmp/vh.bin cdh.vdi Converting from raw image file="/tmp/vh.bin" to file="cdh.vdi"... Creating dynamic image with size 5475663872 bytes (5222MB)... VBoxManage: error: Failed to write to disk image "cdh.vdi": VERR_DISK_FULL :~/Development$ ls 〜/ Development $ VBoxManage convertdd /tmp/vh.bin cdh.vdi从原始图像file =“ / tmp / vh.bin”转换为file =“ cdh.vdi” ...创建大小为5475663872字节(5222MB)的动态图像... VBoxManage:错误:无法写入磁盘映像“ cdh.vdi”:VERR_DISK_FULL:〜/ Development $ ls

  1. VBox supports VMDK since v2.0 AFAIR. 从v2.0 AFAIR开始,VBox支持VMDK。

  2. VBox UI of Virtual Media Manager changed in 4.0 version, so there is no direct option of adding hard disk in Virtual Media Manager (there used to be one -- strange decision in my opinion). Virtual Media Manager的VBox UI在4.0版本中进行了更改,因此在Virtual Media Manager中没有直接添加硬盘的选项(在我看来,这曾经是一个奇怪的决定)。

    Although, you can create a new virtual machine in Virtualbox, and in the stage of choosing disk, choose existing one (VMDK) so you don't need to convert VMDK to VDI (there is a dropdown, but besides, also a button to choose a hard disk file not listed yet in Virtual Media Manager. 虽然可以在Virtualbox中创建一个新的虚拟机,然后在选择磁盘的阶段选择现有的虚拟机(VMDK),所以您无需将VMDK转换为VDI(有一个下拉菜单,但还有一个按钮选择Virtual Media Manager中尚未列出的硬盘文件。

这是Cloudera自己提供的指南: http ://www.cloudera.com/blog/2009/07/cloudera-training-vm-virtualbox/

I created a new VM using Red Hat 64b. 我使用Red Hat 64b创建了一个新的VM。 Chose existing drive and opened the vmdk file. 选择现有驱动器并打开vmdk文件。 Gave it 2G Ram and it started up fine. 给它2G Ram,它开始正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM