The Holy Java

Building the right thing, building it right, fast

Posts Tagged ‘vmware’

Manually restoring raw partclone partition image to a VMWare

Posted by Jakub Holý on February 6, 2011

This post sums up how to manually restore a partition backup create by Clonezilla (using partclone) into a VMware virtual machine, which can be then either executed or its (virtual) disk mounted. The difficult points are “manual” and “partition backup” (would be much easier with a full disk backup). Normally I restore a backup by running Clonezilla from a virtual machine with sufficiently large virtual disk, but at times it isn’t possible, e.g. because the Clonezilla kernel has a buggy USB driver which tends to disconnect at times (at least with my version & flash disk). Read the rest of this entry »

Posted in Tools | Tagged: , , , | Comments Off

Booting from a USB stick in VMware Player

Posted by Jakub Holý on June 10, 2010

It isn’t possible to boot from a USB stick under VMware player 3.0.0, because its BIOS is ignorant of USB, but fortunately there is an easy workaround:

  1. Download the PLoP boot manager (e.g. plpbt-5.0.10.zip), which supports usb booting
  2. Decide whether you want to install PLoP to the virtual hard disk (useful if you will boot from the USB stick more often) or not
    1. Using PLoP without installing it to the virtual disk:
      1. Extract the ISO image plpbt-5.0.10/plpbt.iso from the archive
      2. Attach the extraced ISO image to you VMware virtual machine as a CD/DVD
      3. Boot the vmware machine from this virtual CD. (VMware should automatically try it as a boot device, if not, press Esc at the virtual machine start to enter the boot device selection menu).
      4. PLoP will be started, ses below.
    2. Installing PLoP to the virtual disk (you may want to check the PLoP installation guide):
      1. Extract the ISO image plpbt-5.0.10/install/plpbtin.iso from the archive
      2. Attach the extraced ISO image to you VMware virtual machine as a CD/DVD
      3. Boot the vmware machine from this virtual CD. (VMware should automatically try it as a boot device, if not, press Esc at the virtual machine start to enter the boot device selection menu).
      4. PLoP installation menu will show up, press 1 to select the option “Full boot manager install” and answer “y” to the question whether you want to proceed
      5. When the installation finishes, power off the virtual machine
      6. Remove the CD/DVD device from the virtual machine, we won’t need it anymore
      7. Start the virtual machine, which will boot PLoP from the virtual hard disk.
  3. Once PLoP is started, it will give you a selection of devices to boot from including your USB stick. (Make sure that the USB stick is connected to the virtual machine, if not, connect it and restart the machine via the menu VM – Power – Reset).

PS: You can do the same for VirtualBox, which also doesn’t support booting from USB.

Posted in General | Tagged: , , | 7 Comments »

VMWare: Shrink image even though it’s a snapshot

Posted by Jakub Holý on August 21, 2007

I needed to shrink a vmware image to save space but it wasn’t possible because it wasn’t an independent disk but a snapshot (rhel3_ws_u4-000001.vmdk etc.) dependant upon the original disk (rhel3_ws_u4-s001.vmdk etc). The steps were:

  1. Join the snapshot and the parent disk into one: use the free VMWare Converter (see vmware.com) – perform transformation (import+export) from a standalone virt. machine to an stanalone virt. machine; it’s necessary to import all the disk, preserving its size (by selecting “select volumes and resize…” I got an unbootable disk); than check “Create a full clone” and “Allow virtual disk files to grow” (don’t pre-allocate space!!!).
  2. Shrink: After the successfull conversion run the system and verify that the disk is of the type independant-persistent and perhaps disable snapshots). Iinstall there vmware tools (from the vmware menu while the system is running), run the command vmware-toolbox and in its user interface select “shrink disk”.

Posted in Tools | Tagged: , | 1 Comment »