vm.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:28:53 +0200
changeset 2227 1e9323e7ec88
parent 1912 8b81a8f0f692
child 2228 837f1337c59b
permissions -rw-r--r--
Removed files: I don't longer have interest on topic.

.. -*- coding: utf-8; -*-

========================
 VM (virtual machines).
========================
.. contents::
   :local:

Virtualization projects.
========================

VMware, VirtualBox, QEMU, Bochs, DosBox.

VirtualBox.
===========

About VirtualBox.
-----------------

  http://www.virtualbox.org/wiki/Guest_OSes
                Guest OSes support status for VirtualBox.

Copy and resize VirtualBox disk.
--------------------------------

I have clear copies of several OSes for VirtualBox. When I need new one I copy
and resize them to get desired size.

To copy I make a copy::

  $ vboxmanage clonehd /path/to/Hurd.vdi /path/to/Hurd-new.vdi

determine size::

  $ vboxmanage showhdinfo /path/to/Hurd-new.vdi

  UUID:                 63b87983-3130-4db3-cd8c-6d693dcfd92b
  Accessible:           yes
  Logical size:         2996 MBytes
  Current size on disk: 1660 MBytes
  Type:                 normal (base)
  Storage format:       VDI
  Format variant:       dynamic default
  In use by VMs:        Hurd (UUID: f7591848-2c60-4c7c-3886-b66bdb35e425)
  Location:             /path/to/Hurd-new.vdi

and then apply new size (in MiB)::

  $ vboxmanage modifyhd --resize 35000 /path/to/Hurd-new.vdi

Next I mount ``parted-magic`` and boot to it and use ``gparted`` to extend
existing fs to free space.

VMWare.
=======

VMWare remote graphical client.
===============================
::

  $ vmware-vmrc.exe -h 192.168.1.2 -u user -p passwd "dir/file.vmx"