- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
1#
发表于 2012-5-9 13:14:52
|
查看: 2573 |
回复: 0
How to Export VirtualBox Host Templates Within Virtual Desktop Infrastructure 3.0
Applies to:
Oracle Virtual Desktop Infrastructure - Version: 3.0 to 3.0 - Release: 3.0 to 3.0
Information in this document applies to any platform.
Goal
Following procedure describes the procedure to manually export VirtualBox host templates within Virtual Desktop Infrastructure (VDI) version 3.0.
Note: This functionality was formally added to the product with the 3.1 release. Administrators of any subsequent releases of VDI should use the built-in export functionality for the fastest, and smoothest user experience.
Solution
To export VirtualBox hosts from Virtual Desktop Infrastructure:
1. Convert template to a Desktop:
As an administrator, launch the VDI Admin Console
Select the Pools tab.
Select the desired pool.
Select the desired host template.
Copy to desktop.
Note! It is good administrative practice to duplicate the template first, and work with the copy so that you do not disturb cloning in a production system.
2. Start the desktop machine (or template). This step is needed to display the template in the output of the VBoxManage list command.
Within the VDI Admin Console,
Select the Pools tab,
Select the desired Pool,
select the desired virtual machine, and Start it.
3. Tell the iSCSI initiator to accept static iSCSI connections:
/usr/sbin/iscsiadm modify discovery --static enable
4. Identify the IQN of the iSCSI target.
The easiest way to do this is to look at the VM as it is registered on the VirtualBox hosts.
/usr/bin/VBoxManage list vms
It will show also the IQN and the host of the connected LUN
5. Mount the LUN into your Solaris VBox host:
/usr/sbin/iscsiadm add static-config IQN,IP
Note: Record the virtual machine's unique IP, not the hostname.
6. List the new target
/usr/sbin/iscsiadm list target -S
The last line contains the important output, for example:
OS Device Name: /dev/rdsk/c1t600144F04A97EBB50000144FEDF91800d0s2
7. Make a row copy of the content. The following command demonstrates the syntax, and will need to be updated with values from the reader's environment.
/usr/bin/dd if=/dev/rdsk/c1t600144F04A97EBB50000144FEDF91800d0p0 of=/var/tmp/test.out
Note: It is necessary to replace the 's2' displayed at the end of the raw disk name with 'p0.'
8. Convert the raw file into a VDI file. The following command demonstrates the syntax, and will need to be updated with values from the reader's environment.
# /usr/bin/VBoxManage convertdd /var/tmp/test.out \\
/var/tmp/Ubuntu-test.vdi
9. Umount the LUN mounted in step 5.
/usr/sbin/iscsiadm remove static-config IQN,IP |
|