[fedora-virt] install to new lvm storage pool fails

fp.to.anomalyst at xoxy.net fp.to.anomalyst at xoxy.net
Fri Jan 21 19:15:55 UTC 2011


Looks like the attachment was stripped.
Here's the info inline

==================================
Fri, 21 Jan 2011 11:02:47 DEBUG    Launched with command line:
/usr/bin/virt-install --name junkfoo1 --debug --description=site:junk
role:foo --ram=512 --virt-type=kvm --vcpus=1 --check-cpu --accelerate
--os-type=linux os-variant=fedor14 --initrd-inject=/iso/ks/foo.ks
--extra-args ks=file:/foo.ks --video=vmvga --disk
vol=VGlv2/junkfoo1.img,bus=ide,device=disk --vnc
--location=/iso/Fedora-14-x86_64-DVD.iso
Fri, 21 Jan 2011 11:02:47 DEBUG    Requesting libvirt URI default
Fri, 21 Jan 2011 11:02:47 DEBUG    Received libvirt URI qemu:///system
Fri, 21 Jan 2011 11:02:47 DEBUG    Requesting virt method 'default',
hv type 'kvm'.
Fri, 21 Jan 2011 11:02:47 DEBUG    Received virt method 'hvm'
Fri, 21 Jan 2011 11:02:47 DEBUG    Hypervisor name is 'kvm'
Fri, 21 Jan 2011 11:02:47 DEBUG    Parsed volume: as pool='VGlv2'
vol='junkfoo1.img'
Fri, 21 Jan 2011 11:02:47 DEBUG    parse_disk: returning {'format':
None, 'bus': 'ide', 'readOnly': False, 'volInstall': None, 'path':
'VGlv2/junkfoo1.img', 'device': 'disk', 'volName': ('VGlv2',
'junkfoo1.img'), 'conn': <libvirt.virConnect instance at 0x1609bd8>,
'size': None, 'driverType': None, 'driverCache': None, 'shareable':
False, 'driverName': None, 'sparse': True}
Fri, 21 Jan 2011 11:02:47 DEBUG    Overwriting 'path' with value from
StorageVolume object.
Fri, 21 Jan 2011 11:02:47 DEBUG    DistroInstaller location is a local
file/path: /iso/Fedora-14-x86_64-DVD.iso

Starting install...
Fri, 21 Jan 2011 11:02:47 DEBUG    Preparing mount at
/var/lib/libvirt/boot/virtinstmnt.wirs7a
Fri, 21 Jan 2011 11:02:47 DEBUG    Attempting to detect distro:
Fri, 21 Jan 2011 11:02:47 DEBUG    Fetching URI:
/var/lib/libvirt/boot/virtinstmnt.wirs7a/.treeinfo
Fri, 21 Jan 2011 11:02:47 DEBUG    Saved file to
/var/lib/libvirt/boot/virtinst-.treeinfo.jz10Od
Retrieving file .treeinfo...
                                                               | 2.0
kB     00:00 ...
Fri, 21 Jan 2011 11:02:47 DEBUG    Fetching URI:
/var/lib/libvirt/boot/virtinstmnt.wirs7a/images/pxeboot/vmlinuz
Fri, 21 Jan 2011 11:02:48 DEBUG    Saved file to
/var/lib/libvirt/boot/virtinst-vmlinuz.nNPKiR
Retrieving file vmlinuz...
                                                               | 7.2
MB     00:00 ...
Fri, 21 Jan 2011 11:02:48 DEBUG    Fetching URI:
/var/lib/libvirt/boot/virtinstmnt.wirs7a/images/pxeboot/initrd.img
Fri, 21 Jan 2011 11:02:48 DEBUG    Saved file to
/var/lib/libvirt/boot/virtinst-initrd.img.EVIRsy
Retrieving file initrd.img...
                                                               |  61
MB     00:00 ...
Fri, 21 Jan 2011 11:02:48 DEBUG    Cleaning up mount at
/var/lib/libvirt/boot/virtinstmnt.wirs7a
Fri, 21 Jan 2011 11:02:48 DEBUG    Unpacking initrd.
Fri, 21 Jan 2011 11:02:49 DEBUG    Copying /iso/ks/foo.ks to the initrd.
Fri, 21 Jan 2011 11:02:49 DEBUG    Repacking the initrd.
Fri, 21 Jan 2011 11:02:53 DEBUG    Generated install XML:
<domain type='kvm'>
  <name>junkfoo1</name>
  <currentMemory>524288</currentMemory>
  <memory>524288</memory>
  <uuid>072866f2-e7d2-e4d3-770e-3764bf023086</uuid>
  <description>site:junk role:foo</description>
  <os>
    <type arch='x86_64'>hvm</type>
    <kernel>/var/lib/libvirt/boot/virtinst-vmlinuz.nNPKiR</kernel>
    <initrd>/var/lib/libvirt/boot/virtinst-initrd.img.EVIRsy</initrd>
    <cmdline> ks=file:/foo.ks</cmdline>
  </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='block' device='disk'>
      <driver name='qemu' type='raw'/>
      <source dev='/dev/VGpool2/junkfoo1.img'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu'/>
      <source file='/iso/Fedora-14-x86_64-DVD.iso'/>
      <target dev='hdb' bus='ide'/>
      <readonly/>
    </disk>
    <interface type='network'>
      <source network='default'/>
      <mac address='52:54:00:a2:5e:e8'/>
    </interface>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' keymap='en-us'/>
    <console type='pty'/>
    <video>
      <model type='vmvga'/>
    </video>
  </devices>
</domain>

Fri, 21 Jan 2011 11:02:53 DEBUG    Removing
/var/lib/libvirt/boot/virtinst-vmlinuz.nNPKiR
Fri, 21 Jan 2011 11:02:53 DEBUG    Removing
/var/lib/libvirt/boot/virtinst-initrd.img.EVIRsy
Fri, 21 Jan 2011 11:02:53 ERROR    internal error Process exited while
reading console log output: char device redirected to /dev/pts/4
qemu-kvm: -device
ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1: Can't use
a read-only drive
qemu-kvm: -device
ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1: Device
'ide-drive' could not be initialized

Fri, 21 Jan 2011 11:02:53 DEBUG    Traceback (most recent call last):
  File "/usr/bin/virt-install", line 1019, in main
    start_time, guest.start_install)
  File "/usr/bin/virt-install", line 1061, in do_install
    dom = install_func(conscb, progresscb, wait=(not wait))
  File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line
1023, in start_install
    return self._do_install(consolecb, meter, removeOld, wait)
  File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line
1088, in _do_install
    "install")
  File "/usr/lib/python2.7/site-packages/virtinst/Guest.py", line
1059, in _create_guest
    dom = self.conn.createLinux(start_xml, 0)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1277, in
createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed',
conn=self)
libvirtError: internal error Process exited while reading console log
output: char device redirected to /dev/pts/4
qemu-kvm: -device
ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1: Can't use
a read-only drive
qemu-kvm: -device
ide-drive,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1: Device
'ide-drive' could not be initialized
==================================

the command also fails when creating the volume with pool
==================================
Fri, 21 Jan 2011 11:12:10 DEBUG    Launched with command line:
/usr/bin/virt-install --name junkfoo1 --debug --description=site:junk
role:foo --ram=512 --virt-type=kvm --vcpus=1 --check-cpu --accelerate
--os-type=linux os-variant=fedor14 --initrd-inject=/iso/ks/foo.ks
--extra-args ks=file:/foo.ks --video=vmvga --disk
pool=VGlv2,size=8,bus=ide,device=disk --vnc
--location=/iso/Fedora-14-x86_64-DVD.iso
Fri, 21 Jan 2011 11:12:10 DEBUG    Requesting libvirt URI default
Fri, 21 Jan 2011 11:12:10 DEBUG    Received libvirt URI qemu:///system
Fri, 21 Jan 2011 11:12:10 DEBUG    Requesting virt method 'default',
hv type 'kvm'.
Fri, 21 Jan 2011 11:12:10 DEBUG    Received virt method 'hvm'
Fri, 21 Jan 2011 11:12:10 DEBUG    Hypervisor name is 'kvm'
Fri, 21 Jan 2011 11:12:10 DEBUG    parse_disk: returning {'format':
None, 'bus': 'ide', 'readOnly': False, 'volInstall':
<virtinst.Storage.LogicalVolume object at 0x1b0d190>, 'path': 'VGlv2',
'device': 'disk', 'volName': None, 'conn': <libvirt.virConnect
instance at 0x1b07bd8>, 'size': 8.0, 'driverType': None,
'driverCache': None, 'shareable': False, 'driverName': None, 'sparse':
True}
Fri, 21 Jan 2011 11:12:10 DEBUG    Overwriting 'path' with value from
StorageVolume object.
Fri, 21 Jan 2011 11:12:10 DEBUG    DistroInstaller location is a local
file/path: /iso/Fedora-14-x86_64-DVD.iso

Starting install...
Fri, 21 Jan 2011 11:12:11 DEBUG    Preparing mount at
/var/lib/libvirt/boot/virtinstmnt.0ukb__
Fri, 21 Jan 2011 11:12:11 DEBUG    Attempting to detect distro:
Fri, 21 Jan 2011 11:12:11 DEBUG    Fetching URI:
/var/lib/libvirt/boot/virtinstmnt.0ukb__/.treeinfo
Fri, 21 Jan 2011 11:12:11 DEBUG    Saved file to
/var/lib/libvirt/boot/virtinst-.treeinfo.A2M14A
Retrieving file .treeinfo...
                                                               | 2.0
kB     00:00 ...
Fri, 21 Jan 2011 11:12:11 DEBUG    Fetching URI:
/var/lib/libvirt/boot/virtinstmnt.0ukb__/images/pxeboot/vmlinuz
Fri, 21 Jan 2011 11:12:11 DEBUG    Saved file to
/var/lib/libvirt/boot/virtinst-vmlinuz.En5FYi
Retrieving file vmlinuz...
                                                               | 7.2
MB     00:00 ...
Fri, 21 Jan 2011 11:12:11 DEBUG    Fetching URI:
/var/lib/libvirt/boot/virtinstmnt.0ukb__/images/pxeboot/initrd.img
Fri, 21 Jan 2011 11:12:11 DEBUG    Saved file to
/var/lib/libvirt/boot/virtinst-initrd.img.TPsuX7
Retrieving file initrd.img...
                                                               |  61
MB     00:00 ...
Fri, 21 Jan 2011 11:12:11 DEBUG    Cleaning up mount at
/var/lib/libvirt/boot/virtinstmnt.0ukb__
Fri, 21 Jan 2011 11:12:11 DEBUG    Unpacking initrd.
Fri, 21 Jan 2011 11:12:12 DEBUG    Copying /iso/ks/foo.ks to the initrd.
Fri, 21 Jan 2011 11:12:12 DEBUG    Repacking the initrd.
Fri, 21 Jan 2011 11:12:16 DEBUG    Creating storage volume
'junkfoo1-1.img' with xml:
<volume>
  <name>junkfoo1-1.img</name>
  <capacity>8589934592</capacity>
  <allocation>0</allocation>
  <target>
  </target>
</volume>

Allocating 'junkfoo1-1.img'
                                                               | 8.0
GB     00:00
Fri, 21 Jan 2011 11:12:18 DEBUG    Storage volume 'junkfoo1-1.img'
install complete.
Fri, 21 Jan 2011 11:12:18 DEBUG    Can't fix selinux context in this case.
======================================================================



More information about the virt mailing list