[Pkg-libvirt-maintainers] Bug#762668: virtinst --initrd-inject does not copy files
martin f krafft
madduck at debian.org
Wed Sep 24 09:37:46 UTC 2014
Package: virtinst
Version: 0.600.1-3+deb7u1
Severity: normal
This is not the same as #745537, as it occurs on a wheezy system
without backports. Weirdly, it has worked before, and I cannot
figure out what has changed in the last half year or so.
Packages:
ii python-libvirt 0.9.12.3-1 amd64
ii qemu-kvm 1.1.2+dfsg-6+deb7u3 amd64
ii virtinst 0.600.1-3+deb7u1 all
Here is the debug log output. Look down for "******"
[Wed, 24 Sep 2014 11:29:57 virt-install 31080] DEBUG (cli:226) Launched with command line:
/usr/bin/virt-install --connect=qemu:///system -n ambassador.madduck.net -r 1024 --disk vol=default/virt-ambassador.madduck.net -w bridge=wan --graphics=vnc --serial=pty --watchdog i6300esb,action=reset --os-variant=debianwheezy -l /srv/virt/vinst/installer-amd64/wheezy --initrd-inject=/srv/virt/vinst/preseed/wheezy/preseed.cfg --initrd-inject=/home/madduck/.tmp/tmp.mUSWfRLMoA/commands.tar --extra-args=auto console=tty0 console=ttyS0,115200n8 hostname=ambassador domain=madduck.net netcfg/disable_dhcp=true netcfg/get_ipaddress=111.222.121.166 netcfg/get_netmask=255.255.255.224 netcfg/get_gateway=111.222.121.161 netcfg/get_nameservers=111.222.121.163 --prompt --noautoconsole --autostart --debug
[Wed, 24 Sep 2014 11:29:57 virt-install 31080] DEBUG (cli:332) Requesting libvirt URI qemu:///system
[Wed, 24 Sep 2014 11:29:57 virt-install 31080] DEBUG (cli:334) Received libvirt URI qemu:///system
[Wed, 24 Sep 2014 11:29:58 virt-install 31080] DEBUG (virt-install:259) Requesting virt method 'hvm', hv type 'default'.
[Wed, 24 Sep 2014 11:29:58 virt-install 31080] DEBUG (virt-install:469) Received virt method 'hvm'
[Wed, 24 Sep 2014 11:29:58 virt-install 31080] DEBUG (virt-install:470) Hypervisor name is 'kvm'
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (Guest:471) Setting os type to 'linux' for variant 'debianwheezy'
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (cli:1511) Parsed volume: as pool='default' vol='virt-ambassador.madduck.net'
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (DistroInstaller:205) DistroInstaller location is a network source.
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (OSDistro:65) Attempting to detect distro:
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/.treeinfo
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/Fedora
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/Server
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/Client
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/RedHat
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/CentOS
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/SL
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/directory.yast
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:83) Fetching URI: /srv/virt/vinst/installer-amd64/wheezy/current/images/MANIFEST
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:94) Saved file to /var/tmp/virtinst-MANIFEST.S5NZmb
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (OSDistro:938) Detected a Debian distro
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (virt-install:623) Guest.has_install_phase: True
Starting install...
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (Installer:182) scratchdir=/home/madduck/.virtinst/boot
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (OSDistro:65) Attempting to detect distro:
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/.treeinfo
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/Fedora
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/Server
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/Client
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/RedHat
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/CentOS
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/SL
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:169) local hasFile: Couldn't find /srv/virt/vinst/installer-amd64/wheezy/directory.yast
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:83) Fetching URI: /srv/virt/vinst/installer-amd64/wheezy/current/images/MANIFEST
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:94) Saved file to /home/madduck/.virtinst/boot/virtinst-MANIFEST.IOQF5f
Retrieving file MANIFEST... | 3.3 kB 00:00 ...
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (OSDistro:938) Detected a Debian distro
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:83) Fetching URI: /srv/virt/vinst/installer-amd64/wheezy/current/images/netboot/debian-installer/amd64/linux
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:94) Saved file to /home/madduck/.virtinst/boot/virtinst-linux.uu9Qi4
Retrieving file linux... | 5.4 MB 00:00 ...
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:83) Fetching URI: /srv/virt/vinst/installer-amd64/wheezy/current/images/netboot/debian-installer/amd64/initrd.gz
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (ImageFetcher:94) Saved file to /home/madduck/.virtinst/boot/virtinst-initrd.gz.9oGrhf
Retrieving file initrd.gz... | 21 MB 00:00 ...
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (DistroInstaller:284) Copying /srv/virt/vinst/preseed/wheezy/preseed.cfg to the initrd.
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (DistroInstaller:284) Copying /home/madduck/.tmp/tmp.mUSWfRLMoA/commands.tar to the initrd.
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (DistroInstaller:287) Appending to the initrd.
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (DistroInstaller:328) Uploading kernel/initrd media
******
It says it copied the file preseed.cfg, but when I inspect the
initrd using gunzip and cpio, there is no such file present.
Consequently, preseeding does not work as it should.
[Wed, 24 Sep 2014 11:29:59 virt-install 31080] DEBUG (DistroInstaller:72) Existing pool 'boot-scratch' found for /var/lib/libvirt/boot
[Wed, 24 Sep 2014 11:30:00 virt-install 31080] DEBUG (VirtualDisk:240) Path '/var/lib/libvirt/boot' is target for pool 'boot-scratch'. Creating volume 'virtinst-linux.uu9Qi4'.
[Wed, 24 Sep 2014 11:30:00 virt-install 31080] DEBUG (Storage:1195) Creating storage volume 'virtinst-linux.uu9Qi4' with xml:
<volume>
<name>virtinst-linux.uu9Qi4</name>
<capacity>2837920</capacity>
<allocation>0</allocation>
<target>
<format type='raw'/>
</target>
</volume>
Allocating 'virtinst-linux.uu9Qi4' | 2.7 MB 00:00
[Wed, 24 Sep 2014 11:30:00 virt-install 31080] DEBUG (Storage:1218) Storage volume 'virtinst-linux.uu9Qi4' install complete.
[Wed, 24 Sep 2014 11:30:01 virt-install 31080] DEBUG (Storage:1252) Couldn't lookup storage volume in prog thread.
Transferring virtinst-linux.uu9Qi4 | 2.7 MB 00:00
[Wed, 24 Sep 2014 11:30:02 virt-install 31080] DEBUG (VirtualDisk:240) Path '/var/lib/libvirt/boot' is target for pool 'boot-scratch'. Creating volume 'virtinst-initrd.gz.9oGrhf'.
[Wed, 24 Sep 2014 11:30:02 virt-install 31080] DEBUG (Storage:1195) Creating storage volume 'virtinst-initrd.gz.9oGrhf' with xml:
<volume>
<name>virtinst-initrd.gz.9oGrhf</name>
<capacity>10772680</capacity>
<allocation>0</allocation>
<target>
<format type='raw'/>
</target>
</volume>
Allocating 'virtinst-initrd.gz.9oGrhf' | 10 MB 00:00
[Wed, 24 Sep 2014 11:30:02 virt-install 31080] DEBUG (Storage:1218) Storage volume 'virtinst-initrd.gz.9oGrhf' install complete.
[Wed, 24 Sep 2014 11:30:02 virt-install 31080] DEBUG (Storage:1252) Couldn't lookup storage volume in prog thread.
Transferring virtinst-initrd.gz.9oGrhf | 10 MB 00:02
[Wed, 24 Sep 2014 11:30:04 virt-install 31080] DEBUG (Guest:1286) Generated install XML:
<domain type='kvm'>
<name>ambassador.madduck.net</name>
<uuid>57825beb-6ee8-9dde-10ee-0fc9a23ff463</uuid>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64'>hvm</type>
<kernel>/var/lib/libvirt/boot/virtinst-linux.uu9Qi4</kernel>
<initrd>/var/lib/libvirt/boot/virtinst-initrd.gz.9oGrhf</initrd>
<cmdline> auto console=tty0 console=ttyS0,115200n8 hostname=ambassador domain=madduck.net netcfg/disable_dhcp=true netcfg/get_ipaddress=111.222.121.166 netcfg/get_netmask=255.255.255.224 netcfg/get_gateway=111.222.121.161 netcfg/get_nameservers=111.222.121.163</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>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/charade/virt-ambassador.madduck.net'/>
<target dev='vda' bus='virtio'/>
</disk>
<interface type='bridge'>
<source bridge='wan'/>
<mac address='52:54:00:d6:96:e6'/>
<model type='virtio'/>
</interface>
<input type='tablet' bus='usb'/>
<graphics type='vnc' port='-1'/>
<serial type='pty'/>
<video>
<model type='cirrus'/>
</video>
<watchdog model='i6300esb' action='reset'/>
</devices>
</domain>
[Wed, 24 Sep 2014 11:30:04 virt-install 31080] DEBUG (Guest:1287) Generated boot XML:
<domain type='kvm'>
<name>ambassador.madduck.net</name>
<uuid>57825beb-6ee8-9dde-10ee-0fc9a23ff463</uuid>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<vcpu>1</vcpu>
<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>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/charade/virt-ambassador.madduck.net'/>
<target dev='vda' bus='virtio'/>
</disk>
<interface type='bridge'>
<source bridge='wan'/>
<mac address='52:54:00:d6:96:e6'/>
<model type='virtio'/>
</interface>
<input type='tablet' bus='usb'/>
<graphics type='vnc' port='-1'/>
<serial type='pty'/>
<video>
<model type='cirrus'/>
</video>
<watchdog model='i6300esb' action='reset'/>
</devices>
</domain>
Creating domain... | 0 B 00:01
[Wed, 24 Sep 2014 11:30:06 virt-install 31080] DEBUG (Guest:1317) Started guest, connecting to console if requested
[Wed, 24 Sep 2014 11:30:06 virt-install 31080] DEBUG (Guest:1325) XML fetched from libvirt object:
<domain type='kvm' id='4'>
<name>ambassador.madduck.net</name>
<uuid>57825beb-6ee8-9dde-10ee-0fc9a23ff463</uuid>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc-1.1'>hvm</type>
<kernel>/var/lib/libvirt/boot/virtinst-linux.uu9Qi4</kernel>
<initrd>/var/lib/libvirt/boot/virtinst-initrd.gz.9oGrhf</initrd>
<cmdline> auto console=tty0 console=ttyS0,115200n8 hostname=ambassador domain=madduck.net netcfg/disable_dhcp=true netcfg/get_ipaddress=111.222.121.166 netcfg/get_netmask=255.255.255.224 netcfg/get_gateway=111.222.121.161 netcfg/get_nameservers=111.222.121.163</cmdline>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/charade/virt-ambassador.madduck.net'/>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
<controller type='usb' index='0'>
<alias name='usb0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:d6:96:e6'/>
<source bridge='wan'/>
<target dev='vnet6'/>
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/9'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/9'>
<source path='/dev/pts/9'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<input type='tablet' bus='usb'>
<alias name='input0'/>
</input>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5906' autoport='yes'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<watchdog model='i6300esb' action='reset'>
<alias name='watchdog0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</watchdog>
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</memballoon>
</devices>
<seclabel type='none'/>
</domain>
[Wed, 24 Sep 2014 11:30:06 virt-install 31080] DEBUG (Installer:407) Removing /home/madduck/.virtinst/boot/virtinst-linux.uu9Qi4
[Wed, 24 Sep 2014 11:30:06 virt-install 31080] DEBUG (Installer:407) Removing /home/madduck/.virtinst/boot/virtinst-initrd.gz.9oGrhf
[Wed, 24 Sep 2014 11:30:06 virt-install 31080] DEBUG (Installer:411) Removing volume 'virtinst-linux.uu9Qi4'
[Wed, 24 Sep 2014 11:30:06 virt-install 31080] DEBUG (Installer:411) Removing volume 'virtinst-initrd.gz.9oGrhf'
[Wed, 24 Sep 2014 11:30:06 virt-install 31080] DEBUG (virt-install:707) Domain state after install: 1
--
.''`. martin f. krafft <madduck at d.o> @martinkrafft
: :' : proud Debian developer
`. `'` http://people.debian.org/~madduck
`- Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: digital_signature_gpg.asc
Type: application/pgp-signature
Size: 1107 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)
URL: <http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20140924/af7fa603/attachment-0001.sig>
More information about the Pkg-libvirt-maintainers
mailing list