Partman Cannot Partition Raw Image Made by QEMU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
partman-base (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Since Ubuntu Breezy, I have used QEMU to test my auto-install images. I have used "qemu-image create virtual XXg" as my means of creating the destination disk. Without explicitly setting the format via "-f," qemu-img assumes a blank/raw image format. This has worked fine with the auto-installer in the past. Now with Edgy, the system claims to partition just fine; but after the partitioning finishes, the disk has no partition table and the installer claims that it cannot mount the partitions. If I specify the format to "-f qcow," the installer miraculously creates the partitions and they are seen by performing fdisk in terminal #2 during the install.
Excerpts from the installer include:
(Virtual Terminal #4 )
partman: /sbin/tune2fs: Bad magic number in super-block while trying to open /dev/hda1
...
kernel: unable to find swap-space signature
(fdisk)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite).
Here is my preseed file; some information has been redacted:
#Boot parameters to specify:
#- if you're netbooting:
# preseed/url=http://
# preseed/
#
#- if you're booting a remastered CD:
# preseed/
# preseed/
#
#- if you're installing from USB media (put the preconfiguration file in the
# toplevel directory of the USB stick):
# preseed/
# preseed/
#It's also possible to use DHCP to specify a preconfiguration file to download from the network. DHCP allows specifying a filename. Normally this is a file to netboot, but if it appears to be an URL then installation media that support network preseeding will download the file from the URL and use it as a preconfiguration file. Here is an example of how to set it up in the dhcpd.conf for version 3 of the ISC DHCP server (the dhcp3-server Ubuntu package).
#if substring (option vendor-
# filename "http://
#}
#
# Note that the above example limits this filename to DHCP clients that identify themselves as "d-i", so it will not affect regular DHCP clients, but only the installer. You can also put the text in a stanza for only one particular host to avoid preseeding all installs on your network.
# A good way to use the DHCP preseeding is to only preseed values specific to your network, such as the Ubuntu mirror to use. This way installs on your network will automatically get a good mirror selected, but the rest of the installation can be performed interactively. Using DHCP preseeding to fully automate Ubuntu installs should only be done with care.
d-i debian-
d-i netcfg/
d-i netcfg/get_hostname string unknown
d-i netcfg/get_domain string ima.umn.edu
d-i mirror/country string enter information manually
d-i mirror/
d-i mirror/
# Suite to install.
#d-i mirror/suite string edgy
# Suite to use for loading installer components (optional).
#d-i mirror/udeb/suite string edgy
d-i partman-auto/disk string /dev/hda
d-i partman-
boot-root :: \
500 10000 600 ext3 \
$primary{ } \
. \
1500 9000 2500 ext3 \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext3 } \
mountpoint{ / } \
. \
4550 9500 6500 xfs \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ xfs } \
mountpoint{ /var } \
. \
1000 8500 2000 xfs \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ xfs } \
mountpoint{ /tmp } \
. \
10000 8500 15000 xfs \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ xfs } \
mountpoint{ /usr } \
. \
1000 10000 3000 linux-swap \
method{ swap } \
. \
1000 6000 1000000 xfs \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ xfs } \
mountpoint{ /scratch } \
. \
4500 8500 7000 xfs \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ xfs } \
mountpoint{ /usr/local } \
.
d-i partman/
#d-i partman-
# Manually edit partition table
d-i partman/
Finish partitioning and write changes to disk
d-i partman/confirm boolean true
d-i clock-setup/utc boolean true
d-i time/zone string US/Central
d-i apt-setup/
d-i apt-setup/universe boolean true
d-i apt-setup/backports boolean true
# Uncomment this to avoid adding security sources, or
# add a hostname to use a different server than security.
d-i apt-setup/
# Additional repositories, local[0-9] available
d-i apt-setup/
deb http://
d-i apt-setup/
# Enable deb-src lines
d-i apt-setup/
# URL to the public key of the local repository
d-i apt-setup/
d-i apt-setup/
deb http://
d-i apt-setup/
# Enable deb-src lines
d-i apt-setup/
# URL to the public key of the local repository
d-i apt-setup/
d-i passwd/root-login boolean true
d-i passwd/make-user boolean false
d-i grub-installer/
d-i grub-installer/
tasksel tasksel/first multiselect ubuntu-standard
#d-i pkgsel/include string openssh-server build-essential
popularity-contest popularity-
#d-i preseed/
#d-i preseed/
# Boot parameter console-
d-i console-
# Uncomment this to enable automatic reboot
#d-i finish-
d-i cdrom-detect/eject boolean true
d-i console-
d-i console-
d-i console-
d-i console-
console-setup console-
console-setup console-
console-setup console-
console-setup console-
d-i console-
Since there have been no updates on this bug in almost two years, I was wondering if this is still an issue or can it be reproduced on a newer version of Ubuntu?
Thanks,
~ Mike