Posts tagged ‘virtualbox’

Make sure proper permissions stay set for VirtualBox in OpenSuse 11.1

suse.png

The problem:

running the following:

$: /usr/lib/virtualbox/VirtualBox

gives you this following:

$: /usr/lib/virtualbox/VirtualBox

/usr/bin/VirtualBox: line 1: /usr/lib/virtualbox/VirtualBox:  Permission denied.

The reason:
If SuSEconfig runs it resets the permissions of the files defined in /etc/permissions*.

The solution:

sudo chmod o+x /usr/lib/virtualbox/VirtualBox
Open the file > /etc/permissions.easy < with vi, goto the end and change the lines of VirtualBox from permission 4750 to 4755.
Save, Quit.

HOWTO: Create VirtualBox Image from Disk

VirtualBox.png

Not quite sure what to backup from a computer I am currently fixing I decided to turn a virus laden XP install into a VirtualBox image on my desktop machine at home.

Enter dd, ssh, and VirtualBox.

After a little reading I came up with this single line to extract the live image from the disk, move it to my desktop machine, and convert it to a 20G VirtualBox image.  First I booted from a live disc, mounted the drive I wanted and ran the following:

sudo dd if=/dev/hda | ssh user@xxx.xxx.xxx.xxx vboxmanage convertdd stdin virusxp.vdi 21474836480

Now upon return if they find I’ve missed anything I can just boot it up and retrieve it for them, and after a month or so after they’ve verified they’re happy with it, just easily delete the machine.

Convert Virtualbox VDI to Qemu

VirtualBox.png

In order to do this, you’ll need the vditool tool contained in the virtualbox-ose package available from the Debian repositories. Here’s how I got it working:

  1. vditool COPYDD vbox-image.vdi raw-image.img
  2. qemu-img convert -f raw raw-image.img -O qcow2 qemu-image.qcow

The first step copies the contents of the image (*.vdi is the VirtualBox filesystem image extension) to a raw disk image. Be advised: this file will be the full size of the virtual hard drive. That means that, unlike *.vdi and *.qcow formats, if the virtual disk has a maximum capacity of 8Gb, the raw image will be 8Gb in size regardless of how full the disk is.

Once you have the raw image, run the second step which uses the QEMU disk image manipulation tool, qemu-img, to convert the raw image into the QCOW2 format. The new QEMU image will be much smaller than the raw image was and it can be made smaller by passing qemu-img the -c option to enable transparent compression. However, seeing as how this just uses zlib on each cluster, this might introduce more overhead to I/O than is desired and will most likely degrade your overall VM performance.

How To Install VirtualBox on Fedora 10

VirtualBox.png

This is a tutorial on how to get VirtualBox up and running on Fedora 10.  Also, this tutorial is for the 32-Bit version of VirtualBox, so you’ll have to customize a little more to get the 64-bit version running. Everything in the “code” sections should be copy/pasted/typed into the terminal. Right, let’s get to it:

Continue reading ‘How To Install VirtualBox on Fedora 10’ »

Getting USB to work on the non-FOSS version of Virtualbox on OpenSuse 11.1

VirtualBox.png

This section does not apply to the Open Source Edition (OSE), as the OSE version does not have USB support.

This section applies only to the commercial version supplied as a binary file. The following instructions were tested using VirtualBox-1.5.0_24069_openSUSE102-2.x86_64.rpm.run on openSUSE 10.3 for x86_64. Before using these instructions be sure you have a successful, working install of VirtualBox. You will need to be logged in under the user ID of root to use these instructions.

Continue reading ‘Getting USB to work on the non-FOSS version of Virtualbox on OpenSuse 11.1’ »

How To: Properly Backup a VirtualBox Machine (.VDI)

VirtualBox.png

Most people don’t realize that making a backup of a VirtualBox Machine (.vdi) is more complex than just copy/paste. If you do that, you’ll soon realize (when it’s too late) that it doesn’t work! This is the proper way to backup your VirtualBox machine:

VBoxManage clonevdi source destination

Example:
VBoxManage clonevdi ~/.VirtualBox/VDI/WindowsXP.vdi ~/WindowsXP_Backup.vdi

Then, wait for it to complete. It may take a while depending on the size of your .vdi file (or how much space you allocated towards your virtual machine).

How To Do Seamless Window and Folder Integration with Linux & VirtualBox

VirtualBox.png

Activating Seamless Integration

With the release of VirtualBox 1.5.0 (the version you just installed via the Ubuntu repositories) Innotek added the seamless integration feature. This is similar to what is available on Parallels on Mac, allowing you to run individual applications from a virtual environment seamlessly on your native desktop.

Continue reading ‘How To Do Seamless Window and Folder Integration with Linux & VirtualBox’ »

How to enable USB on VirtualBox in Ubuntu Hardy

ubuntu.png

As I have seen heaps of topics now in regards USB and different problems, I deceided to post my solution which I have created doing a lot of reading through the all loved www.

It is now all working fine for me and I have experienced all problems, a lot of you guys have or had.
USB not there, USB greyed out, only working without USB 2.0 etc.This would be basically just a summarize of a few topics out of this forum. Please note, I don’t wont credit at all, as this is nothing else then a collection of different information I found.

The running host is Ubuntu 8.04 (hardy) with a Windows XP SP2 guest. After successful installation I installed the client extensions to get the shared folders and a few other nice things running. USB turned out to be a bit of a pain.

Source

Continue reading ‘How to enable USB on VirtualBox in Ubuntu Hardy’ »