Shammer's Philosophy

My private adversaria

Creating wheezy VM on VirtualBox

This site introduces Guest Additions. Guest Additions is like XenServer Tools that optimizing VM guest to Virtual Environments.
Installing Guest Additions into Debian wheezy procedure:

  1. Launch VM
  2. Device menu->Guest Additions のCDイメージを挿入
  3. Open Terminal in VM
  4. su -
  5. cd /media/cdrom0
  6. /bin/sh VBoxLinuxAdditions.run
  7. shutdown -r now

The result is below.

# /bin/sh ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.12 Guest Additions for Linux............
VirtualBox Guest Additions installer
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer.  If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version.  If this is simply an older or a damaged
installation you may safely proceed.

Do you wish to continue anyway? [yes or no]
yes
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Installing X.Org Server 1.12 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.

If there is no file at /media/cdrom0, execute following command.

# mount /dev/cdrom /media/cdrom0