Public bug reported:

I uncommented some lines in the testdrive config file to create a six GB
disk image that were in there to choose sizes. I also choose lubuntu as
a flavor. To reproduce launch testdrive --url
http://cdimage.ubuntu.com/lubuntu/daily-live/20141003/utopic-desktop-
amd64.iso and then wait for image to download. Then QEMU will start up.
It says kvm-img

I expected testdrive to create a virtual disk. Instead test drive
launched but got to a screen where there was no disk to create but
listed a virtualdisk in the qemu vm with no media. I think the command
this supposed to launch might be qemu-create which creates a disk image
for a virtaul machine but this might get called by a dependency.

The command line output of testdrive is 
brendanperrine@coolern200refresh:~/.cache/testdrive/iso$ testdrive --url 
http://cdimage.ubuntu.com/lubuntu/daily-live/20141003/utopic-desktop-amd64.iso
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/brendanperrine/.testdriverc
INFO: Trying config in /home/brendanperrine/.config/testdrive/testdriverc
INFO: Using KVM for virtual machine hosting...
INFO: Retrieving the Ubuntu ISO list from cache...
INFO: Syncing the specified ISO...
      
http://cdimage.ubuntu.com/lubuntu/daily-live/20141003/utopic-desktop-amd64.iso
  HTTP/1.1 200 OK
#################### 100.0% 155.8 kBps DONE     

No relevent local data found - I will be downloading the whole file. If that's 
not what you want, CTRL-C out. You should specify the local file is the old 
version of the file to download with -i (you might have to decompress it with 
gzip -d first). Or perhaps you just have no data that helps download the file
downloading from 
http://cdimage.ubuntu.com/lubuntu/daily-live/20141003/utopic-desktop-amd64.iso:
-------------------- 0.0% 8.7 kBps         
#################### 100.0% 228.7 kBps DONE      [[C

verifying download...checksum matches OK
used 0 local, fetched 734003542
INFO: Validating Virtualization Method....
INFO: Setting up Virtual Machine...
INFO: Creating disk image 
[/home/brendanperrine/.cache/testdrive/img/testdrive-disk-v0l9RT.img]...
sh: 1: kvm-img: not found
ERROR: Command failed
    `kvm-img create -f qcow2 
/home/brendanperrine/.cache/testdrive/img/testdrive-disk-v0l9RT.img 6G`
INFO: Launching Virtual Machine...
INFO: Running the Virtual Machine...
        qemu-system-x86_64 -uuid a3fac7e1-d46b-4f8b-9f1b-ae5447633721 -m 1024 
-smp 4 -cdrom 
/home/brendanperrine/.cache/testdrive/iso/other_utopic-desktop-amd64.iso -drive 
file=/home/brendanperrine/.cache/testdrive/img/testdrive-disk-v0l9RT.img,if=virtio,cache=writeback,index=0
 -usb -usbdevice tablet -net nic,model=virtio -net user -soundhw es1370 -vga 
cirrus -enable-kvm

testdrive:
  Installed: 3.26-0ubuntu1
  Candidate: 3.26-0ubuntu1
  Version table:
 *** 3.26-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ utopic/universe amd64 Packages
        100 /var/lib/dpkg/status
Description:    Ubuntu Utopic Unicorn (development branch)
Release:        14.10

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: testdrive 3.26-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-20.27-generic 3.16.3
Uname: Linux 3.16.0-20-generic x86_64
ApportVersion: 2.14.7-0ubuntu3
Architecture: amd64
CurrentDesktop: LXDE
Date: Sat Oct  4 09:30:53 2014
InstallationDate: Installed on 2014-09-30 (3 days ago)
InstallationMedia: Lubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20140930)
PackageArchitecture: all
SourcePackage: testdrive
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: testdrive (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug utopic

** Attachment added: "testdrive config file"
   
https://bugs.launchpad.net/bugs/1377487/+attachment/4224837/+files/testdriverc

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to