Re: complex partitioning preseeding, Qemu setup
On Wed, 13 Jun 2007 14:00:15 Geert Stappers wrote: Op 08-06-2007 om 01:54 schreef Matthew Johnson: On Thu, 7 Jun 2007 22:49 Geert Stappers wrote: What I know from qemu, is that it can handle one single disk image. Please tell more about your qemu setup. ( I think the 'qemu-img' and the 'qemu' commands will do ) I'm using qemu -hda hda -hdb hdb -cdrom debian-testing-i386-netinst.iso -boot d -usb -std-vga so raid over two disks. Okay, Qemu handles the second disk image with -hdb, thanks for telling. (p.s.: the Qemu manual page even mentions -hdc and -hdd ) Except -hdc doesn't work with -cdrom (it becomes hdc) and it turns out it doesn't work at all with -hdd for some other reason. How big should the disk images been? ( please provide the 'qemu-img' command line ) Oh, I just did: dd if=/dev/zero of=hda seek=100 bs=1M count=1 to create a 100Mb sparse file to use. Should I have done something else (that worked fine, and they are only 23Mb after having partitioned and done part of the install onto them) Matt -- Matthew Johnson signature.asc Description: Digital signature
Re: complex partitioning preseeding, Qemu setup
Op 08-06-2007 om 01:54 schreef Matthew Johnson: On Thu, 7 Jun 2007 22:49 Geert Stappers wrote: What I know from qemu, is that it can handle one single disk image. Please tell more about your qemu setup. ( I think the 'qemu-img' and the 'qemu' commands will do ) I'm using qemu -hda hda -hdb hdb -cdrom debian-testing-i386-netinst.iso -boot d -usb -std-vga so raid over two disks. Okay, Qemu handles the second disk image with -hdb, thanks for telling. (p.s.: the Qemu manual page even mentions -hdc and -hdd ) How big should the disk images been? ( please provide the 'qemu-img' command line ) Cheers Geert Stappers -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: complex partitioning preseeding
Matthew Johnson wrote: On Thu, 7 Jun 2007 22:49 Geert Stappers wrote: What I know from qemu, is that it can handle one single disk image. Please tell more about your qemu setup. ( I think the 'qemu-img' and the 'qemu' commands will do ) I'm using qemu -hda hda -hdb hdb -cdrom debian-testing-i386-netinst.iso -boot d -usb -std-vga so raid over two disks. script: http://mjj29.matthew.ath.cx/partition config: http://mjj29.matthew.ath.cx/custom-partition.txt I also have it packaged as a udeb with the script as the postinst, which preempts partman in the menu. Is the source of the udeb also available? Yup, http://mjj29.matthew.ath.cx/debian-upload/custom-partitioner/ I've changed it so that it just reads the script in order, allowing the most flexible configuration possible. The things which I still need help on are: - when installing things with anna-install in the script it says queueing for later; but when I run anna-install from a shell it installs right away. Should I depend on everything which could possibly be needed (will this affect how it appears in the menu); or should I install the udebs as I need them, so that you don't download/install udebs you don't need? My guess would be playing with the Menu-item number in the udeb. It's currently set so that it appears just before partman-base. I don't see why that would affect anna-install. To clarify, anna-install package works where as udpkg -i from the same shell at the same time doesn't work. For people trying stuff interactively, using multiple virtual machines and setups, qemu-launcher is the software to have installed. I propose the following motto :-) : „Qemu-launcher, unleashes the true power of qemu” P.S.: qemu-launcher should also work with kvm, is just a matter of changing the path to the qemu binary -- Regards, EddyP = Imagination is more important than knowledge A.Einstein signature.asc Description: OpenPGP digital signature
Re: complex partitioning preseeding
On Fri, June 8, 2007 02:54, Matthew Johnson wrote: The things which I still need help on are: - when installing things with anna-install in the script it says queueing for later; but when I run anna-install from a shell it installs right away. Should I depend on everything which could possibly be needed (will this affect how it appears in the menu); or should I install the udebs as I need them, so that you don't download/install udebs you don't need? I'd say install udebs on-demand. This is similar to what partman-crypto does and I wouldn't be surprised if more packages did it in the future since it can help cut down on the amount of memory that is required. -- David Härdeman -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: complex partitioning preseeding
On Wed May 23 16:58, Matthew Johnson wrote: I have written a short script illustrating how it might work (http://mjj29.matthew.ath.cx/partition) which reads a file of that name and prints the commands that would be needed to do the setup. I'd like comments on this approach, I'm happy to write at least a basic version of this, although I may need some help with all the debconf magic. After discussing this with fjp on IRC I have an improved version which I have been testing in the installer in qemu. script: http://mjj29.matthew.ath.cx/partition config: http://mjj29.matthew.ath.cx/custom-partition.txt I also have it packaged as a udeb with the script as the postinst, which preempts partman in the menu. I've changed it so that it just reads the script in order, allowing the most flexible configuration possible. The things which I still need help on are: - when installing things with anna-install in the script it says queueing for later; but when I run anna-install from a shell it installs right away. Should I depend on everything which could possibly be needed (will this affect how it appears in the menu); or should I install the udebs as I need them, so that you don't download/install udebs you don't need? - I'm trying to test the partman dialog, but I'm finding it hard to test. What I want to do is . /lib/partman/definitions.sh and then be able to run open_dialog to test them. When I do this it prints execv: Not found (or similar) and then exits my shell... - Presumably there is a function to turn /dev/hda into /dev/ide//disc? - Are there udebs for creating dos/ntfs filesystems? Thanks, Matt -- Matthew Johnson signature.asc Description: Digital signature
Re: complex partitioning preseeding
Op 07-06-2007 om 14:48 schreef Matthew Johnson: On Wed May 23 16:58, Matthew Johnson wrote: I have written a short script illustrating how it might work (http://mjj29.matthew.ath.cx/partition) which reads a file of that name and prints the commands that would be needed to do the setup. I'd like comments on this approach, I'm happy to write at least a basic version of this, although I may need some help with all the debconf magic. After discussing this with fjp on IRC I have an improved version which I have been testing in the installer in qemu. What I know from qemu, is that it can handle one single disk image. Please tell more about your qemu setup. ( I think the 'qemu-img' and the 'qemu' commands will do ) script: http://mjj29.matthew.ath.cx/partition config: http://mjj29.matthew.ath.cx/custom-partition.txt I also have it packaged as a udeb with the script as the postinst, which preempts partman in the menu. Is the source of the udeb also available? I've changed it so that it just reads the script in order, allowing the most flexible configuration possible. The things which I still need help on are: - when installing things with anna-install in the script it says queueing for later; but when I run anna-install from a shell it installs right away. Should I depend on everything which could possibly be needed (will this affect how it appears in the menu); or should I install the udebs as I need them, so that you don't download/install udebs you don't need? My guess would be playing with the Menu-item number in the udeb. - I'm trying to test the partman dialog, but I'm finding it hard to test. What I want to do is . /lib/partman/definitions.sh and then be able to run open_dialog to test them. When I do this it prints execv: Not found (or similar) and then exits my shell... - Presumably there is a function to turn /dev/hda into /dev/ide//disc? - Are there udebs for creating dos/ntfs filesystems? Thanks, Matt Cheers Geert Stappers -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: complex partitioning preseeding
On Thu, 7 Jun 2007 22:49 Geert Stappers wrote: What I know from qemu, is that it can handle one single disk image. Please tell more about your qemu setup. ( I think the 'qemu-img' and the 'qemu' commands will do ) I'm using qemu -hda hda -hdb hdb -cdrom debian-testing-i386-netinst.iso -boot d -usb -std-vga so raid over two disks. script: http://mjj29.matthew.ath.cx/partition config: http://mjj29.matthew.ath.cx/custom-partition.txt I also have it packaged as a udeb with the script as the postinst, which preempts partman in the menu. Is the source of the udeb also available? Yup, http://mjj29.matthew.ath.cx/debian-upload/custom-partitioner/ I've changed it so that it just reads the script in order, allowing the most flexible configuration possible. The things which I still need help on are: - when installing things with anna-install in the script it says queueing for later; but when I run anna-install from a shell it installs right away. Should I depend on everything which could possibly be needed (will this affect how it appears in the menu); or should I install the udebs as I need them, so that you don't download/install udebs you don't need? My guess would be playing with the Menu-item number in the udeb. It's currently set so that it appears just before partman-base. I don't see why that would affect anna-install. To clarify, anna-install package works where as udpkg -i from the same shell at the same time doesn't work. Matt -- Matthew Johnson signature.asc Description: Digital signature
complex partitioning preseeding
I have just finished setting up a preseeded d-i for some servers at work, and I'm in general very impressed. One thing which I found missing was a way to do more complicated partitioning via preseeding. What we wanted was a 2 or 4 disk raid used as the PV for an LVM containing all the partitions, with /boot on a 2 disk raid. This is not currently possible with pure preseeding, so I wrote a udeb which replaces partman-base in the menu and runs a script in it's postinst to do all the partitioning, formatting and mounting etc. As a follow up to that I'd like to propose a more general way of doing this and would like comments on it. What I envisage is a udeb for a partitioner specifically for complicated preseeding. It would take an input similar to this: http://mjj29.matthew.ath.cx/custom-partition.txt I have written a short script illustrating how it might work (http://mjj29.matthew.ath.cx/partition) which reads a file of that name and prints the commands that would be needed to do the setup. I'd like comments on this approach, I'm happy to write at least a basic version of this, although I may need some help with all the debconf magic. A few notes about what I have at the moment: - it always assumes you are layering in the order partitions raid encryption lvm filesystems. While I'm fairly happy with this being correct for partitions, raid, lvm, and filesystems; encryption could be an exception. - there's no progress/error handling - partitioning needs to be handled, preferably in a platform-independent way - I haven't looked at password input for encryption - obviously it should trigger installs of the correct FS/MD/LVM/crypt packages Matt -- Matthew Johnson signature.asc Description: Digital signature