Information Technology Reference
In-Depth Information
Logical Domains provides a Physical to Virtual (P2V) tool to automate conversion
of physical Oracle Solaris systems into guest Logical Domains. This tool moves file
system contents from a physical server to a Logical Domain on the CMT server,
and if necessary, replaces packages geared toward the
sun4u
architecture platform
(all UltraSPARC and SPARC64 systems) with packages for the
sun4v
architecture
provided by the CMT platform. The physical system can be running Solaris 8 or
later on a
sun4u
system, or Solaris 10 running outside of a domain.
P2V migration consists of three phases, which are carried out under the control
of the
ldmp2v
command:
1.
Collection
: Runs on the physical machine and collects a file system image
and configuration data using
ufsdump
or
flarcreate
. The resulting file can
be transmitted to the target system's control domain or stored on an NFS
server that is available to both the physical system and the control domain.
2.
Preparation
: Runs on the control domain of the target platform. It creates
a guest domain, and restores the contents of the collected file system into
virtual disks.
3.
Conversion
: Runs on the control domain of the target platform. It upgrades
the guest domain to prepare it to run as a domain. This process removes
packages, replacing
sun4u
packages with their corresponding
sun4v
versions.
If the physical system is running Solaris 8 or Solaris 9, the P2V process installs
the system image in a Solaris Container using a Solaris 8 Container or Solaris
9 Container under the guest domain's Solaris 10 kernel. That practice lets the
migrated image appear to be the same Solaris version as on the physical machine.
The P2V process can optionally preserve the physical system's network identity
by reusing its MAC address.
The P2V process requires Solaris 10 system images to be available in either
Solaris installation DVD or network install format, with the package
SUNWldmp2v
being installed in the control domain. The file
/etc/ldmp2v.conf
must be popu-
lated with variables indicating the names of the default virtual switch and virtual
disk servers, and the type of disk back-ends to use for virtual disks. The P2V com-
mand must be made available to the physical system, either by NFS mount or by
copying the command to a local disk.
Once these setup tasks are complete, a set of commands can be executed like those
shown in the following example. In this case,
sparcules
indicates the login session
on the physical server, and
primary
indicates the control domain login session. The
collect phase writes a collected image to an NFS-mounted directory that is also ac-
cessed by the control domain. The preparation phase creates a domain and imports
the collected file system image into virtual disks. The conversion phase boots the
Search WWH ::
Custom Search