Tag Archives: virtualbox

How to convert vdi to qcow2 image

vdi file is a type of disk image used by VirtualBox. qcow2, on the other hand, is the format of disk image used by KVM.

Recently, I want to move some existing virtual machines running on VirtualBox to KVM. To do that I need to convert the disk image from vdi to qcow2. Here’s one way to achieve that:

# qemu-img convert -f vdi -O qcow2 disk.vdi disk.qcow2

Ref: How to convert VirtualBox vid to KVM qcow2

How to get IP of guest OS in VirtualBox

After upgrading my VM running Fedora 23 beta to the release version, Gnome Desktop Manager (GDM) no longer started again. This is the same issue with newer version of xorg-x11-*, and it’s not yet supported by VirtualBox 5.0.

I previously posted a quick fix by downgrading xorg-x11-* packages. To do that, I need to ssh into the VM.

Here’s how we can find the IP address of running VMs.

Let’s list the VMs available:

~$ vboxmanage list runningvms
"banan" {0c92f898-316d-4efb-a6ea-bc555c4064ff}
"Windows7" {7f7a27a0-4bc0-47e2-ae92-0a1e360a3d81}
"f23" {7645e5b9-1dba-4850-9745-117029bb82ab}

I’m interested in “f23”. To list all IPs associated with available NICs run:

~$ vboxmanage guestproperty enumerate "f23" | grep IP
Name: /VirtualBox/GuestInfo/Net/0/V4/IP, value: 192.168.1.110, timestamp: 1447197251856159000, flags: 
Name: /VirtualBox/GuestInfo/Net/1/V4/IP, value: 192.168.122.1, timestamp: 1447197286865156000, flags:

Note that, if you don’t see any IPs listed, it’s likely that your VM is not running or/and the VM Guest Addition is not installed on that VM.

Ref: https://forums.virtualbox.org/viewtopic.php?f=1&t=36592

Installing Linux Mint 17 on Virtualbox

You may or may not have problem installing Linux Mint 17 on VirtualBox depending on the setting of your Virtualbox VM. I had this problem and took me a while to fix it.

Basically, ensure that you set the system memory of your VM to be larger than 512MB, otherwise you might see black screen after booting your VM from the Mint DVD installation.

Once the installation is finished, feel free to reduce the VM’s system memory to 512MB or smaller.