Bug 636999 - Win7 (OEM) fails to install - 'VirtualDisk' object has no attribute 'DRIVER_TYPE_RAW'
Summary: Win7 (OEM) fails to install - 'VirtualDisk' object has no attribute 'DRIVER_T...
Keywords:
Status: CLOSED DUPLICATE of bug 628721
Alias: None
Product: Fedora
Classification: Fedora
Component: python-virtinst
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-23 22:04 UTC by John Himpel
Modified: 2010-10-14 16:14 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-10-14 16:14:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Himpel 2010-09-23 22:04:38 UTC
Description of problem:
Fails to install Win7 (OEM)


Version-Release number of selected component (if applicable):
python-virtinst-0.500.4-1.fc15.noarch

How reproducible:
From commandline run python-virtinstall --prompt


Steps to Reproduce:
1. run python-virtinstall
2. Win7 (OEM) DVD
3. 2000M RAM
4. 50G Storage

  
Actual results:
failed installation


Expected results:
clean installation


Additional info:
Thu, 23 Sep 2010 16:37:11 DEBUG    Launched with command line:
/usr/bin/virt-install --prompt --debug
Thu, 23 Sep 2010 16:37:11 DEBUG    Requesting libvirt URI default
Thu, 23 Sep 2010 16:37:11 DEBUG    Received libvirt URI qemu:///system
Thu, 23 Sep 2010 16:37:11 DEBUG    Requesting virt method 'hvm', hv type 'default'.
Thu, 23 Sep 2010 16:37:11 DEBUG    Received virt method 'hvm'
Thu, 23 Sep 2010 16:37:11 DEBUG    Hypervisor name is 'kvm'
What is the name of your virtual machine? Win7
 How much RAM should be allocated (in megabytes)? 2000
 What would you like to use as the disk (file path)? /home/jwhimpel/images/Win7.img
 How large would you like the disk (/home/jwhimpel/images/Win7.img) to be (in gigabytes)? 50
 This will overwrite the existing path '/home/jwhimpel/images/Win7.img'
Do you really want to use this disk (yes or no) yes
Thu, 23 Sep 2010 16:37:46 DEBUG    DISPLAY is set: graphics defaulting to VNC.
 What is the install CD-ROM/ISO or URL? /dev/sr0
Thu, 23 Sep 2010 16:37:52 DEBUG    DistroInstaller location is a local file/path: /dev/sr0
 
Starting install...
Creating storage file Win7.img                           |  50 GB     00:00     
Thu, 23 Sep 2010 16:37:52 DEBUG    Can't fix selinux context in this case.
Thu, 23 Sep 2010 16:37:52 DEBUG    Generated install XML: 
<domain type='kvm'>
  <name>Win7</name>
  <currentMemory>2048000</currentMemory>
  <memory>2048000</memory>
  <uuid>19f846cc-306e-469c-d949-4b49ca549aae</uuid>
  <os>
    <type arch='x86_64'>hvm</type>
    <boot dev='cdrom'/>
  </os>
  <features>
    <acpi/><apic/><pae/>
  </features>
  <clock offset="utc"/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>destroy</on_reboot>
  <on_crash>destroy</on_crash>
  <vcpu>1</vcpu>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/home/jwhimpel/images/Win7.img'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='qemu'/>
      <source dev='/dev/sr0'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
    <interface type='network'>
      <source network='default'/>
      <mac address='52:54:00:79:26:77'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' keymap='en-us'/>
    <console type='pty'/>
    <video>
      <model type='cirrus'/>
    </video>
  </devices>
</domain>

Creating domain...                                       |    0 B     00:02     
Thu, 23 Sep 2010 16:37:55 DEBUG    Started guest, looking to see if it is running
Thu, 23 Sep 2010 16:37:55 DEBUG    Launching console callback
Thu, 23 Sep 2010 16:37:55 DEBUG    Generated boot XML: 
<domain type='kvm'>
  <name>Win7</name>
  <currentMemory>2048000</currentMemory>
  <memory>2048000</memory>
  <uuid>19f846cc-306e-469c-d949-4b49ca549aae</uuid>
  <os>
    <type arch='x86_64'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/><apic/><pae/>
  </features>
  <clock offset="utc"/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <vcpu>1</vcpu>
  <devices>
    <emulator>/usr/bin/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/home/jwhimpel/images/Win7.img'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='block' device='cdrom'>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
    <interface type='network'>
      <source network='default'/>
      <mac address='52:54:00:79:26:77'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' keymap='en-us'/>
    <console type='pty'/>
    <video>
      <model type='cirrus'/>
    </video>
  </devices>
</domain>


(virt-viewer:10867): Bonobo-WARNING **: Bonobo must be initialized before use
Thu, 23 Sep 2010 16:46:36 ERROR    'VirtualDisk' object has no attribute 'DRIVER_TYPE_RAW'
Thu, 23 Sep 2010 16:46:36 DEBUG    Traceback (most recent call last):
  File "/usr/bin/virt-install", line 1022, in main
    if not guest.post_install_check():
  File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line 917, in post_install_check
    return self.installer.post_install_check(self)
  File "/usr/lib/python2.7/site-packages/virtinst/Installer.py", line 346, in post_install_check
    disk.driver_type not in [disk.DRIVER_TYPE_RAW,
AttributeError: 'VirtualDisk' object has no attribute 'DRIVER_TYPE_RAW'

Domain installation does not appear to have been
successful. If it was, you can restart your domain
by running 'virsh start Win7'; otherwise, please
restart your installation.
[root@dubby init.d]#

Comment 1 Cole Robinson 2010-10-14 16:14:49 UTC

*** This bug has been marked as a duplicate of bug 628721 ***


Note You need to log in before you can comment on or make changes to this bug.