June 2014 Archives

Wed Jun 18 19:04:58 ICT 2014

Partition a disk with GPT

I need to write down the steps to partition a disk with gpart.

This is not compatible with MBR and Windows partitions.
  1. Create the GPT partition scheme:
    gpart create -s GPT da2
    
  2. Create a boot partition:
    gpart add -t freebsd-boot -s 512k da2
    
  3. Create the root partition:
    gpart add -t freebsd-ufs -s 4g da2
    
  4. Create the swap partition:
    gpart add -t freebsd-swap -s 4g da2
    
  5. Create the usr partition:
    gpart add -t freebsd-ufs -s 20g da2
    
  6. Create the var partition:
    gpart add -t freebsd-ufs -s 4g da2
    
  7. Create other partition(s) (omit the -s to use the remaining of the disk):
    gpart add -t freebsd-ufs da2
    
  8. Make the disk bootable:
    gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da2
    
Use gpart show da2 to see the partition table. Now you can create the file system on /dev/da2p2, /dev/da2p4, /dev/da2p5, etc.

Posted by Olivier | Permanent link | File under: administration, freebsd

Thu Jun 5 15:20:02 ICT 2014

VMware vSphere Client on Windows XP

Starting with ESXi 5.5, the VMware vSphere Client cannot run on Windows XP due to some incompatibilities on the cipher used.

You need to modify the rhttpproxy service to reduce the implied security by allowing the host to communicate using weak cipher suites:
  1. Connect to the host via SSH.
  2. Navigate to the directory /etc/vmware/rhttpproxy/
  3. Backup the config.xml file. Do not skip this step.
  4. Edit config.xml and add the <cipherList>ALL</cipherList> parameter between the <ssl>...</ssl> section of the configuration file. Use the model below as an example:
    <config>
       ...
       <vmacore>
          ...
          <ssl>
             <doVersionCheck> false </doVersionCheck>
             <useCompression>true</useCompression>
             <libraryPath>/lib/</libraryPath>
             <handshakeTimeoutMs>120000</handshakeTimeoutMs>
             <cipherList>ALL</cipherList>
          </ssl>
          ...
       </vmacore>
       ...
    </config>
    
  5. Save and close the config.xml file
  6. Reset the rhttpproxy service for the change to take effect by running the command:
    /etc/init.d/rhttpproxy restart
    

Posted by Olivier | Permanent link | File under: administration, vmware