Exporting a virtual disk from VDI 3

Hi,

VDI 3 with VirtualBox is a self-contained system. However there are situations where you have the need to extract a certain image/virtual disk from VDI 3. As there is no in-built functionality yet, here is a procedure how to do it:

  1. First thing is to tell the iSCSI initiator to accept static iSCSI connections:
    iscsiadm modify discovery --static enable
  2. Find out the IQN of the iSCSI target. The easiest way is to look at the VM as it is registered on the VirtualBox hosts. Here you can use the command:
    VBoxManage list vms
    It will show also the IQN and the host of the connected LUN
  3. Mount the LUN into your Solaris VBox host:
    iscsiadm add static-config IQN,IP - Note, take the IP not the host name
  4. List the new target
    iscsiadm list target -S
    The last line contains the important output: OS Device Name: /dev/rdsk/c1t600144F04A97EBB50000144FEDF91800d0s2
  5. Make a row copy of the content:
    dd if=/dev/rdsk/c1t600144F04A97EBB50000144FEDF91800d0p0 of=/var/tmp/test.out
    Note replace the s2 at the end of the raw disk with p0. Don't ask me why ;-)
  6. Convert the raw file into a VDI file:
    convertdd /var/tmp/test.out /var/tmp/Ubuntu-test.vdi

That's it. Very simple and intuitive ;-). We will work on getting this a bit smoother, promised.

-Dirk


Comments:

Hello,
I have a question that is not so related to the topic but it made me wonder:
Is it possible to export vm's/pools from one desktop provider to another? For instance if I have 2 separate VDI environments but one of them has plenty of resources that are not in use and I want the second VDI to use them for it's existing vm's/pools because of lack of resources. Is it possible to use those resources without interfering with the configuration of the first VDI (i want the VM's to stay where they are)?
BW are you palnning to provide a generic tool for different import/export tasks?
Thanks in advance.

Posted by Michael Bazarsky on August 30, 2009 at 05:17 AM CEST #

Hi Michael,

I see your point. Currently there is no good way to do this, except this poor mans solution I have pointed out.

For the next release, we are planning to improve on the import/export side significantly to help to move VMs, templates between pools or the migrate from one pool to another one.

Please stay tuned. More details over the next couple of weeks.

-Dirk

Posted by Dirk Grobler on August 31, 2009 at 02:22 AM CEST #

Thank you for your answer Dirk,
Another question: Will it be possible to import virtual disks of other vendors as templates?(OVF maybe?)

thanks,
Michael.

Posted by Michael Bazarsky on September 01, 2009 at 01:00 AM CEST #

Hi Michael,

Eventually yes. But for the next release we continue to import VDI files. So you would need first to import OVF into VirtualBox and from there VDI can pick it up.

-Dirk

Posted by Dirk Grobler on September 07, 2009 at 02:03 AM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This one is about VDI, Sun Ray, SGD and sports, in particular basketball, and any combination of it. And of course other interesting stuff.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today