This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
Getting started
This chapter describes how to setup a base XenServer system, running a DDK Virtual Machine (VM), for examining the examples provided in this document, and for use in the development of supplemental packs.
If you want to construct supplemental packs as part of your own build systems, consult the appropriate section later in this document.
The high-level process of setting up a DDK VM to create a supplemental pack is:
-
Obtain matching XenServer product and DDK build ISOs.
-
Install XenServer onto a host server.
-
Install the XenCenter administrator console onto a Windows-based machine.
-
Use XenCenter to import the DDK onto the XenServer host as a new virtual machine.
Installing XenServer
Installing XenServer only requires booting from the CD-ROM image, and answering a few basic questions. After setup completes, take note of the host IP address shown, as it is required for connection from XenCenter.
Installing XenCenter
XenCenter, the XenServer administration console, must be installed on a separate Windows-based machine. Inserting the XenServer installation CD will run the XenCenter installer automatically. Once installed, the XenCenter console will be displayed with no servers connected.
Connect XenCenter to the XenServer host
Within XenCenter select the Server > Add menu option and supply the appropriate host name/IP address and password for the XenServer host.
Select the newly connected host in the left-hand tree view.
Importing the DDK VM through XenCenter
Note:
You can also import the DDK directly on the host using the xe Command Line Interface (CLI).
-
Download the XenServer DDK from the XenServer downloads page onto the system where XenCenter is installed.
-
On the File menu, select the Import option. The Import Wizard is displayed.
-
Click Browse and select DDK file that you downloaded.
-
Proceed through the Import Wizard to select the server, storage, and network for your DDK VM.
-
Select Start the new VM automatically as soon as the import is complete.
-
Finish the Import Wizard.
The DDK VM starts automatically.
Importing the DDK VM using the CLI
The DDK VM can also be imported directly on the XenServer host using the xe CLI and standard Linux commands to mount the DDK ISO.
-
Mount the DDK ISO and import the DDK VM:
mkdir -p /mnt/tmp mount <path_to_DDK_ISO>/ddk.iso /mnt/tmp –o loop,ro xe vm-import filename=/mnt/tmp/ddk/ova.xml <!--NeedCopy-->
The universally unique identifier (UUID) of the DDK VM is returned when the import completes.
-
Add a virtual network interface to the DDK VM:
xe network-list <!--NeedCopy-->
Note the UUID of the appropriate network to use with the DDK VM, typically this will be the network with a
name-label
ofPool-wide network associated with eth0
.xe vif-create network-uuid=<network_uuid> vm-uuid=<ddk_vm_uuid> device=0 <!--NeedCopy-->
Note:
Use tab completion to avoid entering more than the first couple of characters of the UUIDs.
-
Start the DDK VM:
xe vm-start uuid=<ddk_vm_uuid> <!--NeedCopy-->
Using the DDK VM
Select the DDK VM in the left pane and then select the Console tab in the right pane to display the console of the DDK VM to provide a terminal window in which you can work.
The DDK VM is Linux-based so you are free to use other methods such as ssh to access the DDK VM. You can also access the DDK VM console directly from the host console.
Adding Extra Packages to the DDK VM
The DDK is built to be as close as possible to the XenServer control domain (Dom0). This means that only a small number of extra packages are present in the DDK (to enable the compilation of kernel modules) as compared to Dom0. In some cases, partners who want to use the DDK as a build environment might want to add extra packages (e.g. NIS authentication) to the DDK.
Because the DDK (and Dom0) are based on CentOS, any package that is available for that distribution can be installed into the DDK, using the Yum package manager. However, it is necessary to explicitly enable the CentOS repositories to allow such installation. Package installation must therefore be carried out using the command:
yum install <packageName>
Accessing the DDK VM console from the host console
The DDK VM text console can be accessed directly from the XenServer host console instead of using XenCenter. Note that using this method disables access to the DDK console from XenCenter.
-
While the DDK VM is shut down, disable VNC access on the VM record:
xe vm-param-set uuid=<ddk_vm_uuid> other-config:disable_pv_vnc=1
-
Start the VM
xe vm-start uuid=<ddk_vm_uuid>
-
Retrieve the underlying domain ID of the VM:
xe vm-list params=dom-id uuid=<ddk_vm_uuid> --minimal
-
Connect to the VM text console:
/usr/lib/xen/bin/xenconsole <dom-id>
-
When complete, exit the xenconsole session using CTRL-]
For more information about using the xe CLI, see the command line interface documentation.
Share
Share
This Preview product documentation is Cloud Software Group Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Cloud Software Group Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Cloud Software Group product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.