Jumping VDI

     
 

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


 
 
 
 
 

« August 2009 »
SunMonTueWedThuFriSat
      
1
2
3
4
5
6
7
8
9
10
11
12
14
15
16
17
18
19
20
21
22
23
24
25
26
27
29
30
     
Today

[This is a Roller site]
Theme by Rowell Sotto.
 
© MrDGrobler