I can confirm this:
$ 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/bruce/.testdriverc
INFO: Using configuration in /home/bruce/.testdriverc
INFO: Trying config in /home/bruce/.config/testdrive/testdriverc
INFO: Using KVM for virtual machine hosting...
INFO: Retrieving the Ubuntu ISO list from cache...
Welcome to Testdrive!
1. Ubuntu Gnome Desktop (utopic-amd64)
+-cache--> [2014-10-16 18:27:16] utopic-desktop-amd64.iso
2. Ubuntu Gnome Desktop (utopic-i386)
3. Other (prompt for ISO URL)
Select an image to testdrive [1]: 1
INFO: Syncing the specified ISO...
rsync://cdimage.ubuntu.com/cdimage/ubuntu-gnome/daily-live/current/utopic-desktop-amd64.iso
receiving incremental file list
INFO: Validating Virtualization Method....
INFO: Setting up Virtual Machine...
INFO: Creating disk image
[/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img]...
sh: 1: kvm-img: not found
ERROR: Command failed
`kvm-img create -f qcow2
/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img 8G`
INFO: Launching Virtual Machine...
INFO: Running the Virtual Machine...
qemu-system-x86_64 -uuid 092eeef1-b9e8-40ed-b933-c501d020b48f -m 2048
-smp 2 -cdrom
/home/bruce/.cache/testdrive/iso/ubuntugnome_utopic-desktop-amd64.iso -drive
file=/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img,if=virtio,cache=writeback,index=0
-usb -usbdevice tablet -net nic,model=virtio -net user -soundhw es1370 -vga
cirrus -enable-kvm
INFO: Cleaning up disk image
[/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img]...
INFO:testdrive:Cleaning up disk image
[/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img]...
INFO: You may wish to clean up the cache directory...
INFO:testdrive:You may wish to clean up the cache directory...
/home/bruce/.cache/testdrive/iso and /home/bruce/.cache/testdrive/img
tanagra ~ ยป qemu-img create -f qcow2
/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img 8G
Formatting '/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img',
fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 lazy_refcounts=off
$ kvm-img create -f qcow2
/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img 8G
zsh: command not found: kvm-img
$ sudo apt-get install kvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'qemu-kvm' instead of 'kvm'
qemu-kvm is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ sudo apt-get remove qemu-kvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
at dctrl-tools devscripts distro-info-data dput libcommon-sense-perl
libdistro-info-perl libexporter-lite-perl libio-stringy-perl libjson-perl
libjson-xs-perl libparse-debcontrol-perl libtie-ixhash-perl python-cheetah
python3-magic
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
python-vm-builder qemu-kvm ubuntu-vm-builder
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 4,512 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 289777 files and directories currently installed.)
Removing ubuntu-vm-builder (0.12.4+bzr489-0ubuntu2) ...
Removing python-vm-builder (0.12.4+bzr489-0ubuntu2) ...
Removing qemu-kvm (2.1+dfsg-4ubuntu6) ...
Processing triggers for man-db (2.7.0.2-2) ...
$ sudo apt-get install kvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'qemu-kvm' instead of 'kvm'
The following packages were automatically installed and are no longer required:
at dctrl-tools devscripts distro-info-data dput libcommon-sense-perl
libdistro-info-perl libexporter-lite-perl libio-stringy-perl libjson-perl
libjson-xs-perl libparse-debcontrol-perl libtie-ixhash-perl python-cheetah
python3-magic
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
qemu-kvm
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/7,248 B of archives.
After this operation, 101 kB of additional disk space will be used.
Selecting previously unselected package qemu-kvm.
(Reading database ... 289452 files and directories currently installed.)
Preparing to unpack .../qemu-kvm_2.1+dfsg-4ubuntu6_amd64.deb ...
Unpacking qemu-kvm (2.1+dfsg-4ubuntu6) ...
Processing triggers for man-db (2.7.0.2-2) ...
$ qemu-img create -f qcow2
/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img 8G
Formatting '/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img',
fmt=qcow2 size=8589934592 encryption=off cluster_size=65536 lazy_refcounts=off
$ kvm-img create -f qcow2
/home/bruce/.cache/testdrive/img/testdrive-disk-VhkkR6.img 8G
zsh: command not found: kvm-img
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1377487
Title:
testdrive fails to create a virtual disk when launched from command
line
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/testdrive/+bug/1377487/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs