fix VMWare

This commit is contained in:
Miguel Bernal Marin
2017-04-05 16:23:48 -05:00
parent 0ecec53d8b
commit b24c20902a
2 changed files with 48 additions and 62 deletions
+32 -52
View File
@@ -16,74 +16,54 @@ Please ensure you have enabled `Intel® Virtualization Technology
Run Clear Linux OS for Intel Architecture
=========================================
#. Download the `latest`_ live version of the disk image.
#. Download the `latest`_ |CL| **live** version (clear-XXXX-live.img.xz)
#. Decompress the downloaded image. Uncompressed image size is ~ **5GB**.
+ On Linux ::
$ xz -d clear-XXXX-live.img.xz
+ On Windows you can use `7zip`_.
- Right-click the file to *extract in the same directory*.
.. image:: _static/images/7zipwin.png
:alt: 7zip extract here command
#. Create a virtual machine with the following configuration:
- **Guest OS**: Linux, Distribution Other 3.x Linux (64-bits)
- **UEFI support**: Clear Linux uses `systemd-boot` as the UEFI boot manager
for EFI images. Find the settings for this option using the vSphere GUI; go
to the configuration settings of the virtual machine and select
**EFI boot firmware**.
for EFI images. To add UEFI support,
find the settings for this option using the vSphere GUI; go
to the "Configuration settings of the virtual machine", " General Tab"
and select **EFI boot firmware**.
- **IDE disk**: Convert to vmdk and attach the Clear Linux image you downloaded
above. To convert Clear Linux image to VMware disk (vmdk) you can use the
- **SCSI Para-virtualized disk**: Convert to VMDK and attach the Clear
Linux image you downloaded above. To convert Clear Linux image to
VMware DisK (VMDK) you can use the
``qemu-img`` command::
$ qemu-img convert -f raw -O vmdk -p clear-vmware.img clear-vmware.vmdk
#. Start the virtual machine
Using an optimized kernel for *VMware*
======================================
Clear Linux provides an optional bundle called *kernel-vmware* that contains a
specialized kernel with specific configuration for VMware hypervisor, including:
* **vmw_balloon** -- A technique for memory reclamation that works like a
balloon. A guest can be inflated to reclaim physical memory. The balloon
can also be deflated to allow the guest free memory pages.
* **vmw_pvscsi** -- A driver that allows use of the para-virtualized SCSI provided
by *VMware* hypervisors.
* **vmxnet3** -- Allows use of VMware virtual ethernet NICs.
* **vmwgfx** -- Allows use of a DRM driver for the VMware virtual hardware
To use these features, add the ``kernel-vmware`` bundle to your Clear Linux install::
# swupd bundle-add kernel-vmware
Now turn off the virtual machine and change the configuration as follows:
- **Guest OS**: Linux / 3.x Linux (64-bits)
- **UEFI support**: Clear Linux uses `systemd-boot` as the UEFI boot manager
for EFI images. To add UEFI support, go to "Configuration settings of the
virtual machine" -> "General Tab" -> "And select EFI boot firmware"
- **SCSI Para-virtualized disk**: Convert the Clear Linux image to an SCSI
VMware disk image and re-attach it.
#. Extract the image from the EXSi server to one Linux machine and use
``qemu-img`` command::
$ qemu-img convert -f raw -O vmdk -o adapter_type=lsilogic -o compat6 -p clear-vmware.img clear-vmware.vmdk
#. Transfer the Clear Linux image to the VMware ESXi server and use the
:command:`vmkfstools` command (you need to access to ESXi command line )::
* On Windows, you can convert the live image to VMDK format
(from RAW format to VMDK) with a tool like *VBoxManage* from
`VirtualBox`_. You can refer on
:ref:`how to create a VM on VirtualBox <create_vm_vbox>` as example.
$ vmkfstools -i clear-vmware.vmdk -d zeroedthick clear-vmware-fix.vmdk
#. Transfer the Clear Linux image to the VMware ESXi server and use the
:command:`vmkfstools` command (you need to access to ESXi command line )::
#. Add the converted image to the guest by using VMware vSphere virtual
machine settings
$ vmkfstools -i clear-vmware.vmdk -d zeroedthick clear-vmware-fix.vmdk
Finally, start the modified virtual machine.
#. Add the converted image to the guest by using VMware vSphere virtual
machine settings
#. Start the virtual machine
.. _latest: https://download.clearlinux.org/image/
.. _7zip: http://www.7-zip.org/
.. _VirtualBox: https://www.virtualbox.org/
+16 -10
View File
@@ -38,16 +38,20 @@ Follow the instructions from the Setup Assistant.
Prepare Image
=============
#. Download the `latest`_ Clear Linux OS for Intel Architecture **live**
disk image, named ``[clear-[version_number]-live.img.xz]``.
#. Download the `latest`_ |CL| **live** version (clear-XXXX-live.img.xz)
#. Decompress the image. Uncompressed image size ~ **5GB**.
#. Decompress the downloaded image. Uncompressed image size is ~ **5GB**.
* On Linux ::
+ On Linux ::
$ unxz clear-VERSION-live.img.xz
$ xz -d clear-XXXX-live.img.xz
* On Windows you can use `7zip`_.
+ On Windows you can use `7zip`_.
- Right-click the file to *extract in the same directory*.
.. image:: _static/images/7zipwin.png
:alt: 7zip extract here command
#. Convert the installer to :abbr:`VMDK (Virtual Machine Disk)` format.
@@ -55,8 +59,10 @@ Prepare Image
$ qemu-img convert -O vmdk clear-VERSION-live.img clear.vmdk
* On Windows, you can convert the live image to vmdk format (from raw format to vmdk)
with a tool like VBoxManage from `VirtualBox`_.
* On Windows, you can convert the live image to VMDK format
(from RAW format to VMDK) with a tool like *VBoxManage* from
`VirtualBox`_. You can refer on
:ref:`how to create a VM on VirtualBox <create_vm_vbox>` as example.
Run using VMware* Player
@@ -85,8 +91,8 @@ Run using VMware* Player
* Remove any default attached hard disk.
* Click on “Add” option below devices list tab and choose Hard disk.
* Choose **SATA** as the virtual disk type.
* Use the existing Clear Linux OS for Intel Architecture virtual disk
* Choose **SATA** as the virtual disk type.
* Use the existing Clear Linux OS for Intel Architecture virtual disk
The live disk must be set as ``SATA 0:1 Hard Disk (SATA)``; you can verify
this under the “Advanced" section of the disk settings.