Contents
Abstract
Depending on the format of your appliance, deploy it on hardware or on virtual environments. This chapter describes how to deploy your appliance.
Live CDs or DVDs are bootable mediums to run a complete operating system. Usually they are used to demonstrate certain aspects of a full functioning operating system. For example, a KDE Live CD/DVD shows the KDE desktop and comes with lots of KDE applications bundled.
Proceed as follows to deploy a Live CD/DVD on your hardware.
Create an appliance as explained in Chapter 2, Creating Appliances and select the format in the tab.
Download the Live CD/DVD from SUSE Studio and save it to your hard disk.
Burn the .iso file with your favorite burning
application as K3b, Brasero, or others.
Start or reboot your computer and check the BIOS configuration of your machine. Your BIOS should allow you to start from CD/DVD drive and change the order of the media.
Boot the Live CD/DVD.
A “raw” image or a disk image is a complete, bitwise copy of a hard disk. To dump the image to your hard disk or USB stick, proceed as follows:
Procedure 4.1. Deploying USB- and Hard Disk Images
Create an appliance as explained in Chapter 2, Creating Appliances and select the format in the tab.
Download the compressed disk image. Usually it has the file extension
.oem.tar.gz.
Open a shell and log in as system administrator.
Attach the USB stick or the USB hard disk to your computer. If you have a PATA hard disk, you first need to shutdown your computer, insert your hard disk, and reboot your computer.
Dump the disk image to your hard disk (usually something like
/dev/sdb, /dev/sdc, etc.)
with the following commands:
zcat NAME.oem.tar.gz | dd of=/dev/sdb
Replace /dev/sdb with the correct device name,
otherwise your data is lost!
Reboot your system.
If you configured your appliance to use first boot for your network, enter the hostname and domain name and decide, if you want to use DHCP. Find more information in the Deployment Guide, see http://www.novell.com/documentation/sles11/book_sle_deployment/data/cha_deployment_firstboot.html
To deploy a preload ISO image, proceed as follows:
Procedure 4.2. Deploying a Preload Image
Create an appliance as explained in Chapter 2, Creating Appliances and select the format in the tab.
Download the ISO image and burn it to a CD/DVD.
Boot from the preloaded CD/DVD.
Select the item from the boot menu.
Select from the question in order to dump the embedded disk image on the ISO CD/DVD to your hard disk.
After the dump, the hard disk is verified. If the verification is successfull, the system will boot the Kernel and the respective services. In case of errors, repeat the step or replace the hard disk.
Log in with the correct username and password.
VMware, VirtualBox, and KVM are virtualization technologies to create a guest virtual machine on a host system. All have a graphical user interface to create, import, and start virtual machines.
To start an appliance in VirtualBox, proceed as follows:
Procedure 4.3. Starting an Appliance in VirtualBox¶
Create an appliance as explained in Chapter 2, Creating Appliances and select the format in the tab.
Download and extract your file from Step 1.
Start VirtualBox. If the program is not available, install VirtualBox with YaST.
Click + and select the
.vmdk file extracted in
Step 2.
Create a new virtual machine:
Click the button or use +.
Insert a name for your virtual machine.
As operating system choose and as version or . The last entry is only available, if you have a 64-bit CPU. If your appliance is built for 64-bit, your host computer must support this architecture too.
Choose the base memory size.
Click and select the filename of your hard disk from Step 2.
Check the parameters that are displayed in the window and finialize with .
If you want to customize the settings of the virtual machine, click .
Execute the virtual machine by clicking the button.
Due to license issues, we cannot offer special packages for VMware at the moment. Download and install the VMware Player on your system and proceed as follows:
Procedure 4.4. Installing VMware Player¶
Install the kernel-source
package.
Download the VMware Player from https://www.vmware.com/support/product-support/player/. Registration with VMware is required, but it is free.
Run the bundle file:
sh VMware-Player-VERSION--BUILD.ARCH.bundle
Accept the EULA (end user license agreement) to continue.
Optionally select or for product updates and usage statistics.
Click and then .
When VMware Player asks for the root password, it compiles and
installs a Kernel module. As this is done completely without any
package manager, you cannot use neither YaST nor
zypper to check or uninstall it. Use
/usr/bin/vmware-uninstall to uninstall.
The VMware images produced by SUSE Studio runs on VMware Player and Workstation. However, the format for VMware Server, ESX, and ESXi is different and hence it needs to be converted into a compatible .vmdk format. If you use VMware ESX 4, use the following command on your ESX host:
vmkfstools -d thin -i old.vmdk new.vmdk
To start an appliance in VMware Player, proceed as follows:
Procedure 4.5. Starting an Appliance With VMware Player¶
Create an appliance as explained in Chapter 2, Creating Appliances and select the format in the tab.
Download the .vmdk file from SUSE Studio.
Unpack the .vmx.tar.gz file:
tar xzvf NAME.vmx.tar.gzStart VMware Player by pressing Alt+F2 and entering vmplayer.
Click .
Select the .vmx file from the archive. You may
enter a directory with the name of your appliance first to find this
file.
Click to start your appliance. More information can be found in the Getting Started Guide–VMware Player at http://www.vmware.com/support/pubs/player_pubs.html.
Another method is to use a Kernel-based virtualization machine (KVM) with Qemu. Proceed as follows:
Procedure 4.6. Starting an Appliance with KVM¶
Install the qemu package.
Execute the following command and replace
VMDK_FILE with the respective
.vmdk file:
qemu-kvm VMDK_FILEThis section is mainly for the experienced user. Xen is a hypervisor or a virtual-machine monitor; it allows several operating systems to be executed concurrently as guests on your host hardware. To execute your appliance as Xen guest, proceed as follows:
Check your host system. Your machine must be booted with a special Xen-enabled Kernel. Find more information about the prerequisites and the installation of Xen in http://www.novell.com/documentation/sles11/book_xen/data/book_xen.html.
Select the format and build your appliance as described in Chapter 2, Creating Appliances.
Download the built Xen appliance and extract the archive (extension
.xen.tar.gz).
Open the Xen configuration file (extension
.xenconfig) and do the following:
Replace RAW with the path were your raw
file is located:
disk=[ "tap:aio:RAW,xvda,w" ]
Replace the line beginning with vif with the
following line:
vif=[ "bridge=br0" ]
Activate your Xen guest on your Xen server with the following command:
xm create -c PATH_TO_XENCONFIG