testdrive fails to recognise and use virtualbox 3.2

Bug #602987 reported by MoLE
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
TestDrive
Fix Released
Undecided
Andres Rodriguez

Bug Description

I suspect this is a regression as it was working fine prior to the latest testdrive update via the ppa.

Now I get the following output from testdrive - it seems to be wanting to use KVM.

purging and reinstalling testdrive fails to fix the issue (doesn't install kvm as I guess the dependency checker sees I have virtualbox 3.2 installed)

~$ testdrive
INFO: version passed: False
INFO: config passed: None
INFO: Trying config in /etc/testdriverc
INFO: Using configuration in /etc/testdriverc
INFO: Trying config in /home/mole/.testdriverc
INFO: Trying config in /home/mole/.config/testdrive/testdriverc
INFO: Using KVM for virtual machine hosting...
INFO: Retrieving the Ubuntu ISO list from cache...

Welcome to Testdrive!

  1. Ubuntu Desktop (maverick-amd64)
     +-cache--> [2010-06-27 16:39:17] maverick-desktop-amd64.iso
  2. Ubuntu Desktop (maverick-i386)
     +-cache--> [2010-06-26 13:37:18] maverick-desktop-i386.iso
  3. Ubuntu Alternate (maverick-amd64)
  4. Ubuntu Alternate (maverick-i386)
  5. Ubuntu DVD (maverick-amd64)
  6. Ubuntu DVD (maverick-i386)
  7. Ubuntu Netbook (maverick-i386)
     +-cache--> [2010-07-07 11:42:26] maverick-netbook-i386.iso
  8. Ubuntu Server (maverick-amd64)
  9. Ubuntu Server (maverick-i386)
  10. Other (prompt for ISO URL)

Select an image to testdrive [1]: 7
INFO: Syncing the specified ISO...
      rsync://cdimage.ubuntu.com/cdimage/ubuntu-netbook/daily-live/current/maverick-netbook-i386.iso
receiving file list ...
1 file to consider

sent 138 bytes received 100 bytes 14.42 bytes/sec
total size is 732227584 speedup is 3076586.49
INFO: Validating Virtualization Method....
INFO: Your CPU supports KVM extensions
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm kvm_amd
KVM acceleration can NOT be used
INFO: Setting up Virtual Machine...
Creating disk image [/home/mole/.cache/testdrive/img/testdrive-disk-gMHCND.img]...
sh: kvm-img: not found
Command failed
    `kvm-img create -f qcow2 /home/mole/.cache/testdrive/img/testdrive-disk-gMHCND.img 6G`
INFO: Launching Virtual Machine...
Running the Virtual Machine...

ERROR: Unable to launch Virtual Machine

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi MoLe,

Have you indicated in the config file that testdrive should use virtualbox instead of kvm?

Revision history for this message
MoLE (moleonthehill) wrote :

How does one do this? Shouldn't testdrive autoconfigure the virtualisation software it's using? At install time the package checks to see which program is installed or needs to install?

There's nothing in man testdrive to indicate how to do this.

Revision history for this message
MoLE (moleonthehill) wrote :

My understanding is that the primary goal of testdrive is " to provide a very simple method for allowing non-technical Ubuntu users to test and provide feedback on the current Ubuntu release under development."

IMHO, having to hack a config file to get testdrive working isn't targeting non-technical ubuntu users.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi again,

Sorry for the delay but I was doing some changes related to the virt methods. Could you please update the latest package from PPA and confirm the behavior?

Changed in testdrive:
status: New → Incomplete
Revision history for this message
MoLE (moleonthehill) wrote :

behaviour confirmed in latest ppa build

mole@ubuntu-home-workstation:~$ testdrive
INFO: version passed: False
INFO: config passed: None
INFO: Trying config in /etc/testdriverc
INFO: Using configuration in /etc/testdriverc
INFO: Trying config in /home/mole/.testdriverc
INFO: Trying config in /home/mole/.config/testdrive/testdriverc
INFO: Using KVM for virtual machine hosting...
INFO: Retrieving the Ubuntu ISO list from cache...

Welcome to Testdrive!

  1. Ubuntu Desktop (maverick-amd64)
     +-cache--> [2010-07-07 16:39:28] maverick-desktop-amd64.iso
  2. Ubuntu Desktop (maverick-i386)
     +-cache--> [2010-07-07 16:40:10] maverick-desktop-i386.iso
  3. Ubuntu Alternate (maverick-amd64)
  4. Ubuntu Alternate (maverick-i386)
  5. Ubuntu DVD (maverick-amd64)
  6. Ubuntu DVD (maverick-i386)
  7. Ubuntu Netbook (maverick-i386)
     +-cache--> [2010-07-14 11:44:03] maverick-netbook-i386.iso
  8. Ubuntu Server (maverick-amd64)
  9. Ubuntu Server (maverick-i386)
  10. Other (prompt for ISO URL)

Select an image to testdrive [1]: 7
INFO: Syncing the specified ISO...
      rsync://cdimage.ubuntu.com/cdimage/ubuntu-netbook/daily-live/current/maverick-netbook-i386.iso
receiving file list ...
1 file to consider

sent 138 bytes received 100 bytes 68.00 bytes/sec
total size is 737789952 speedup is 3099957.78
INFO: Validating Virtualization Method....
INFO: Your CPU supports KVM extensions
INFO: /dev/kvm does not exist
HINT: sudo modprobe kvm_amd
KVM acceleration can NOT be used
INFO: Setting up Virtual Machine...
Creating disk image [/home/mole/.cache/testdrive/img/testdrive-disk-OwqMl2.img]...
sh: kvm-img: not found
Command failed
    `kvm-img create -f qcow2 /home/mole/.cache/testdrive/img/testdrive-disk-OwqMl2.img 6G`
INFO: Launching Virtual Machine...
Running the Virtual Machine...

ERROR: Unable to launch Virtual Machine

MoLE (moleonthehill)
Changed in testdrive:
status: Incomplete → Confirmed
MoLE (moleonthehill)
Changed in testdrive:
status: Confirmed → New
Changed in testdrive:
status: New → In Progress
assignee: nobody → Andres Rodriguez (andreserl)
Changed in testdrive:
status: In Progress → Fix Committed
Changed in testdrive:
status: Fix Committed → Fix Released
Revision history for this message
Neil Wallace (rowinggolfer) wrote :

Hi mMole, Andres,

on my system (ubuntu 10.04 64bit, but using the oracle ppa for virtualbox), I have a similar problem.
Virtualbox 3.2 is found and recognised, but not used.

regards

Neil.

neil@slim-maroon:~$ testdrive
INFO: version passed: False

INFO: Obtaining Ubuntu Development Release codename from Launchpad...

INFO: Retrieving Ubuntu Development Release codename from cache...

INFO: config passed: None

INFO: Trying config in /etc/testdriverc

INFO: Using configuration in /etc/testdriverc

INFO: Trying config in /home/neil/.testdriverc

INFO: Trying config in /home/neil/.config/testdrive/testdriverc

INFO: Using VirtualBox for virtual machine hosting...

Welcome to Testdrive!

  1. Ubuntu Desktop (maverick-amd64)
  2. Ubuntu Server (maverick-amd64)
  3. Ubuntu Alternate (maverick-amd64)
  4. Ubuntu DVD (maverick-amd64)
  5. Ubuntu Desktop (maverick-i386)
  6. Ubuntu Server (maverick-i386)
  7. Ubuntu Alternate (maverick-i386)
  8. Ubuntu DVD (maverick-i386)
  9. Ubuntu Netbook (maverick-i386)
  10. Other (prompt for ISO URL)

Select an image to testdrive [1]: 5
INFO: Syncing the specified ISO...

      rsync://cdimage.ubuntu.com/cdimage/daily-live/current/maverick-desktop-i386.iso

receiving file list ...
1 file to consider
maverick-desktop-i386.iso
   763295744 100% 145.35kB/s 1:25:28 (xfer#1, to-check=0/1)

sent 145 bytes received 763552121 bytes 148826.09 bytes/sec
total size is 763295744 speedup is 1.00

ERROR: Unsupported version (3.2) of VirtualBox; please install v3.0 or v3.1.

neil@slim-maroon:~$

Revision history for this message
Neil Wallace (rowinggolfer) wrote :

sidenote.. virtualbox3.2 does run the iso, and maverick is a thing of beauty.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Neil,

Well this is certainly weird given that for the output given, you might not have installed the version that actually supports vbox3.2.

Is this something you got fixed to run the iso? If not, please do a fresh install of testdrive and try again and let me know.

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.