testdrive fails to create VM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
testdrive (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: testdrive
Running in Ubuntu 9.10 with VirtualBox 3.0.8.
Welcome to Testdrive!
1. Ubuntu Desktop (i386) (lucid)
+-cache--> [2010-02-17 04:03:16] lucid-desktop-
2. Ubuntu Server (i386) (lucid)
3. Ubuntu Alternate (i386) (lucid)
4. Ubuntu DVD (i386) (lucid)
5. Ubuntu Netbook (lucid)
6. Other (prompt for ISO URL)
Command line output follows:
Select an ISO to testdrive: 1
WARNING: Your CPU's lack of VT will seriously impact performance.
INFO: Using VirtualBox for virtual machine hosting...
INFO: Syncing the specified ISO...
rsync:
receiving file list ...
1 file to consider
sent 120 bytes received 97 bytes 144.67 bytes/sec
total size is 738897920 speedup is 3405059.54
INFO: VirtualBox 3.0 detected.
INFO: Creating disk image...
VirtualBox Command Line Management Interface Version 3.0.8_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
0%...10%
Disk image created. UUID: 8ca4e0ec-
VirtualBox Command Line Management Interface Version 3.0.8_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
ERROR: Could not find a registered machine named 'testdrive'
Details: code VBOX_E_
Context: "FindMachine(
INFO: Creating the Virtual Machine...
Traceback (most recent call last):
File "/usr/bin/
os.
OSError: [Errno 2] No such file or directory: '/home/
This is a problem in the code to delete existing vm images. The "if os.path.exists()" call has an erroneous == 0 at the end causing the os.path.unlink() to always run even if the file doesn't exist. This causes a python exception trying to delete a file that does not exist.