RE: Installer not reading preseed.cfg

2013-04-09 Thread keshav prabhakar
really apologize for not responding sooner.
 Date: Fri, 22 Mar 2013 06:08:13 -0400
 Subject: Re: Installer not reading preseed.cfg
 From: tomh0...@gmail.com
 To: debian-user@lists.debian.org
 
 On Tue, Mar 19, 2013 at 5:43 PM, keshav prabhakar kes...@hotmail.com wrote:
 
  I just remembered, I'm using a linux 5 template ('Guest OS: Debian
  GNU/Linux 5 (64-bit)') to install Debian 6. not sure if that's causing the
  issue, somehow. (I'm using ESXi 4.0 server, which is quite old and it
  doesn't support 'Debian GNU/Linux 6' as one of the templates). Let me try
  with a Debian 5 ISO and see if the installer can find the disk.
 
  I was in fact (unknowingly) using a Debian 5 ISO over a 'Debian GNU/Linux 5
  (64-bit)' template which was causing it not to get me into the shell on root
  partition file system. Now, with a debian-6.0.7-amd64-netinst.iso, I was
  able to get to shell on the root file system in rescue mode.
 
  Then I ran `update-initramfs -u -v` followed by `update-grub`. They both
  appear to run fine (without showing any errors) though I didn't understand
  much about why they needed to be run. Is there anything in the output that
  I should be looking for?
 
  I tried running the preseed file again after this but the installer stopped
  at the same place as before (No root file system found).
 
  perhaps, I should try recreating a new initramfs? (`update-initramfs -d`
  followed by `update-initramfs -c`)?
 
 I don't understand. Did you reboot into your install after rebuilding
 the initramfs or did you re-install?
 
 Did you get No root file system found after rebuilding the initramfs
 or after the re-install?
 
 
 -- 
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/CAOdo=SyRvZhQFic7b2=chh3tzsm94kd-x0tvwknuyeu+t3k...@mail.gmail.com
 
  

RE: Installer not reading preseed.cfg

2013-04-09 Thread keshav prabhakar
hit the 'send' button too soon. sorry.
 I don't understand. Did you reboot into your install after rebuilding
 the initramfs or did you re-install?
 
 Did you get No root file system found after rebuilding the initramfs
 or after the re-install?
 

apologies for not being clear earlier. Yes, I rebooted into the new install 
after rebuilding the root file system using `update-initramfs` and it worked 
just fine. That is, now the new OS is operational and running. The question I 
have is, why did I get the error ('no root file system found' during install) 
in the first place and is there a way fix it?
Thanks again for the clue regarding update-initramfs! At least, I know that the 
install is successful.
From: kes...@hotmail.com
To: tomh0...@gmail.com; debian-user@lists.debian.org
Subject: RE: Installer not reading preseed.cfg
Date: Tue, 9 Apr 2013 10:43:44 -0500




really apologize for not responding sooner.
 Date: Fri, 22 Mar 2013 06:08:13 -0400
 Subject: Re: Installer not reading preseed.cfg
 From: tomh0...@gmail.com
 To: debian-user@lists.debian.org
 
 On Tue, Mar 19, 2013 at 5:43 PM, keshav prabhakar kes...@hotmail.com wrote:
 
  I just remembered, I'm using a linux 5 template ('Guest OS: Debian
  GNU/Linux 5 (64-bit)') to install Debian 6. not sure if that's causing the
  issue, somehow. (I'm using ESXi 4.0 server, which is quite old and it
  doesn't support 'Debian GNU/Linux 6' as one of the templates). Let me try
  with a Debian 5 ISO and see if the installer can find the disk.
 
  I was in fact (unknowingly) using a Debian 5 ISO over a 'Debian GNU/Linux 5
  (64-bit)' template which was causing it not to get me into the shell on root
  partition file system. Now, with a debian-6.0.7-amd64-netinst.iso, I was
  able to get to shell on the root file system in rescue mode.
 
  Then I ran `update-initramfs -u -v` followed by `update-grub`. They both
  appear to run fine (without showing any errors) though I didn't understand
  much about why they needed to be run. Is there anything in the output that
  I should be looking for?
 
  I tried running the preseed file again after this but the installer stopped
  at the same place as before (No root file system found).
 
  perhaps, I should try recreating a new initramfs? (`update-initramfs -d`
  followed by `update-initramfs -c`)?
 
 I don't understand. Did you reboot into your install after rebuilding
 the initramfs or did you re-install?
 
 Did you get No root file system found after rebuilding the initramfs
 or after the re-install?
 
 
 -- 
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: 
 http://lists.debian.org/CAOdo=SyRvZhQFic7b2=chh3tzsm94kd-x0tvwknuyeu+t3k...@mail.gmail.com
 

  

Re: Installer not reading preseed.cfg

2013-03-22 Thread Tom H
On Tue, Mar 19, 2013 at 5:43 PM, keshav prabhakar kes...@hotmail.com wrote:

 I just remembered, I'm using a linux 5 template ('Guest OS: Debian
 GNU/Linux 5 (64-bit)') to install Debian 6. not sure if that's causing the
 issue, somehow. (I'm using ESXi 4.0 server, which is quite old and it
 doesn't support 'Debian GNU/Linux 6' as one of the templates). Let me try
 with a Debian 5 ISO and see if the installer can find the disk.

 I was in fact (unknowingly) using a Debian 5 ISO over a 'Debian GNU/Linux 5
 (64-bit)' template which was causing it not to get me into the shell on root
 partition file system. Now, with a debian-6.0.7-amd64-netinst.iso, I was
 able to get to shell on the root file system in rescue mode.

 Then I ran `update-initramfs -u -v` followed by `update-grub`. They both
 appear to run fine (without showing any errors) though I didn't understand
 much about why they needed to be run. Is there anything in the output that
 I should be looking for?

 I tried running the preseed file again after this but the installer stopped
 at the same place as before (No root file system found).

 perhaps, I should try recreating a new initramfs? (`update-initramfs -d`
 followed by `update-initramfs -c`)?

I don't understand. Did you reboot into your install after rebuilding
the initramfs or did you re-install?

Did you get No root file system found after rebuilding the initramfs
or after the re-install?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=SyRvZhQFic7b2=chh3tzsm94kd-x0tvwknuyeu+t3k...@mail.gmail.com



Re: Installer not reading preseed.cfg

2013-03-19 Thread Tom H
On Mon, Mar 18, 2013 at 3:48 PM, keshav prabhakar kes...@hotmail.com wrote:
 sorry, I got distracted by some other project for the past week..


 It's /usr/sbin/update-initramfs. Do you have /usr mounted?

 no. it's not mounted. see below.


 What choices did you make for rescue mode?

 I think I chose the correct options:

 1. booted off of CD drive

 2. Installer boot menu - Advanced options - Rescue mode

 3. select language menu

 4. country menu

 5. keymap menu

 6. installer loads 'additional components..'

 7. network configuration

 8. hostname and domain name selection

 9. 'setting up the clock' and timezone selection

 10. Detecting disks..

 and I see the following dialog:

 [!!] Enter rescue mode

 The installer could not find any partitions, so you will not be able to
 mount a root file system. This may be caused by the kernel failing to detect
 your hard disk drive or failing to read the partition table, or the disk may
 be unpartitioned. If you wish you may investigate this from a shell in the
 installer environment.

 No partitions found.

It all looks OK except for the fact that d-i can't see your disks.

Are your disks still attached?! While at that screen, go to VT2 and
run fdisk -l.


 Not sure if it matters but I should mention that I'm using a vmware instance
 as the target install system. So, the hard disk is a virtual disk (16 GB in
 size) and listed as a 'SCSI (0:0) Hard disk 1'.


 Without knowing much about the hard drives and partitions, I tried with two
 different ways - once by trying on the rescue mode without any previously
 installed OS on the hard disk. A second time by installing os first (of
 course, partition creation all went well and the os was installed
 successfully) and then trying to boot into rescue mode. Again, this may not
 matter at all..

 but in both cases, in rescue mode, it just doesn't appear to find the
 partition at all.

 Could it be something related to VMs or just that I could be missing
 something? Back to the issue I have had with seeding where it stopped at
 finding the 'root file system', wonder if it was not an issue with my
 preseed.cfg but something else (VM-related, installer (?)).

The wheezy and squeeze installs that I ran with your preseed file were
VMWare VMs.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=sxby4atahijtk7nqktg0jglbjdadxudvowuqiqmu81...@mail.gmail.com



RE: Installer not reading preseed.cfg

2013-03-19 Thread keshav prabhakar


 
 It all looks OK except for the fact that d-i can't see your disks.
 
 Are your disks still attached?! While at that screen, go to VT2 and
 run fdisk -l.
yes, it looks like it.
~ # fdisk -l
Disk /dev/sda: 17.1 GB, 17179869184 bytes255 heads, 63 sectors/track, 2088 
cylindersUnits = cylinders of 16065 * 412 = 8225280 bytesDisk identifier: 
0x00071b4c
Device  Boot  Start   EndBlocksId 
System/dev/sda1*   11995 1602480683
Linux/dev/sda21996   2088 747022+5  
  Extended/dev/sda51996   2088 746991   
  82Linux swap / Solaris~ #
 The wheezy and squeeze installs that I ran with your preseed file were
 VMWare VMs.
 
ah, good to know.. Did you use SCSI or some other type of virtual disk?I just 
remembered, I'm using a linux 5 template ('Guest OS: Debian GNU/Linux 5 
(64-bit)') to install Debian 6. not sure if that's causing the issue, somehow. 
(I'm using ESXi 4.0 server, which is quite old and it doesn't support 'Debian 
GNU/Linux 6' as one of the templates). Let me try with a Debian 5 ISO and see 
if the installer can find the disk.. 

  

RE: Installer not reading preseed.cfg

2013-03-19 Thread keshav prabhakar



I just remembered, I'm using a linux 5 template ('Guest OS: Debian GNU/Linux 5 
(64-bit)') to install Debian 6. not sure if that's causing the issue, somehow. 
(I'm using ESXi 4.0 server, which is quite old and it doesn't support  
'Debian GNU/Linux 6' as one of the templates). Let me try with a Debian 5 ISO 
and see if the installer can find the disk.. 
I was in fact (unknowingly) using a Debian 5 ISO over a 'Debian GNU/Linux 5 
(64-bit)' template which was causing it not to get me into the shell on root 
partition file system. Now, with a debian-6.0.7-amd64-netinst.iso, I was able 
to get to shell on the root file system in rescue mode.Then I ran 
`update-initramfs -u -v` followed by `update-grub`. They both appear to run 
fine (without showing any errors) though I didn't understand much about why 
they needed to be run.. Is there anything in the output that I should be 
looking for?I tried running the preseed file again after this but the installer 
stopped at the same place as before (No root file system found).perhaps, I 
should try recreating a new initramfs? (`update-initramfs -d` followed by 
`update-initramfs -c`)?


  

RE: Installer not reading preseed.cfg

2013-03-19 Thread keshav prabhakar

I also just did a `update-initramfs -d` followed by `initramfs -c -k 
2.6.26-2-amd64` and `update-grub`.  Anything in particular that I should be 
looking for in the output?
  

RE: Installer not reading preseed.cfg

2013-03-18 Thread keshav prabhakar









sorry, I got distracted by some other project for the past week.. 


 It's /usr/sbin/update-initramfs. Do you have /usr mounted?
 
no. it's not mounted. see below.


 What choices did you make for rescue mode?
 
I think I chose the correct options:
1. booted off of CD drive 
2. Installer boot menu - Advanced options - Rescue mode
3. select language menu
4. country menu
5. keymap menu
6. installer loads 'additional components..'
7. network configuration
8. hostname and domain name selection
9. 'setting up the clock' and timezone selection
10. Detecting disks..
and I see the following dialog:



[!!] Enter rescue mode


The installer could not find any partitions, so you will not be able to mount a 
root file system. This may be caused by the kernel failing to detect your hard 
disk drive or failing to read the partition table, or the disk may be 
unpartitioned. If you wish you may investigate this from a shell in the 
installer environment.


No partitions found. 



Not sure if it matters but I should mention that I'm using a vmware instance as 
the target install system. So, the hard disk is a virtual disk (16 GB in size) 
and listed as a 'SCSI (0:0) Hard disk 1'.


Without knowing much about the hard drives and partitions, I tried with two 
different ways - once by trying on the rescue mode without any previously 
installed OS on the hard disk. A second time by installing os first (of course, 
partition creation all went well and the os was installed successfully) and 
then trying to boot into rescue mode. Again, this may not matter at all..
but in both cases, in rescue mode, it just doesn't appear to find the partition 
at all.
Could it be something related to VMs or just that I could be missing something? 
Back to the issue I have had with seeding where it stopped at finding the 'root 
file system', wonder if it was not an issue with my preseed.cfg but something 
else (VM-related, installer (?)).
Thanks again.
  

RE: Installer not reading preseed.cfg

2013-03-18 Thread keshav prabhakar



 That looks like you ran a shell in the installer environment.  You
 want to run the shell in the target environment.
 Thanks for your response.you were right. The shell was in the installer 
 environment. I couldn't get the rescue mode to find the disk partition at 
 all.. (I posted the details in an earlier post a minute ago).


  

Re: Installer not reading preseed.cfg

2013-03-13 Thread Tom H
On Tue, Mar 12, 2013 at 10:43 AM, keshav prabhakar kes...@hotmail.com wrote:

 looks like I didn't 'reply all' before..

 As a start and without diagnosing further, I'd boot from an install CD
 in rescue mode and re-create the initramfs either with
 update-initramfs -u -k ... or update-initramfs -d -k ... ;
 update-initramfs -c -k 

 You might want to run update-grub after that, for good measure; or
 even grub-install ... ; update-grub.

 hm, this is all new to me.. I tried the steps as you suggested - using a
 netinstall CD of 6.0.7, i went to rescue mode but I can't find
 update-initramfs anywhere.

 ~# update-initramfs -u
 /bin/sh: update-initramfs: not found
 ~#
 ~# find / -name update-initramfs
 ~#

It's /usr/sbin/update-initramfs. Do you have /usr mounted?

What choices did you make for rescue mode?

AFAIR, there are two screens where you have to make the right choice.

There's a screen to choose a root filesystem. Did you choose a right one?

There's a screen to execute a shell. Did you choose to execute a shell
within the root filesystem that you chose above?

If you make the right choices, you'll be chrooted into your install a /.

If /boot, /usr, /var, or ... are on a separate partition you
have to mount them manually.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=sxte766cqd3ser-c9vmf_bodgi-rxazfp0ikgu7xm2...@mail.gmail.com



RE: Installer not reading preseed.cfg

2013-03-12 Thread keshav prabhakar

looks like I didn't 'reply all' before..
 As a start and without diagnosing further, I'd boot from an install CD
 in rescue mode and re-create the initramfs either with
 update-initramfs -u -k ... or update-initramfs -d -k ... ;
 update-initramfs -c -k 
 
 You might want to run update-grub after that, for good measure; or
 even grub-install ... ; update-grub.
 
hm, this is all new to me.. I tried the steps as you suggested - using a 
netinstall CD of 6.0.7, i went to rescue mode but I can't find update-initramfs 
anywhere..
~# update-initramfs -u /bin/sh:  update-initramfs: not found~#~# find / -name 
update-initramfs~#
  

Re: Installer not reading preseed.cfg

2013-03-12 Thread Bob Proulx
keshav prabhakar wrote:
 looks like I didn't 'reply all' before..
  As a start and without diagnosing further, I'd boot from an install CD
  in rescue mode and re-create the initramfs either with
  update-initramfs -u -k ... or update-initramfs -d -k ... ;
  update-initramfs -c -k 
  
  You might want to run update-grub after that, for good measure; or
  even grub-install ... ; update-grub.

 hm, this is all new to me.. I tried the steps as you suggested - using a 
 netinstall CD of 6.0.7, i went to rescue mode but I can't find 
 update-initramfs anywhere..
 ~# update-initramfs -u /bin/sh:  update-initramfs: not found~#~# find / -name 
 update-initramfs~#

That looks like you ran a shell in the installer environment.  You
want to run the shell in the target environment.

I have posted instructions several times recently.  Here is one:

  http://lists.debian.org/debian-user/2013/01/msg00363.html

Bob


signature.asc
Description: Digital signature


Re: Installer not reading preseed.cfg

2013-03-10 Thread Tom H
On Sat, Mar 9, 2013 at 7:54 AM, keshav prabhakar kes...@hotmail.com wrote:

 oh wow! Frankly, this is the best, most detailed response I have ever gotten
 on any list so far. :)
 but seriously, I can't thank enough for your time and interest. really
 appreciate it.
 I didn't pay much attention to my preseed.cfg yet since I was still trying
 to figure mirror issue. Also, I haven't tried the 'd-i mirror/country string
 manual' part yet and can't wait to try..
 but unfortunately I have to go out now so won't be able to try this for the
 next couple of hours.
 I'll the post details as soon as I try.
 Many Thanks!

You're most welcome.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=Sw5Jz+kEfA=vMqTZ20=wcmcctk2k99+wbrcf8026zj...@mail.gmail.com



Re: Installer not reading preseed.cfg

2013-03-10 Thread Tom H
On Sat, Mar 9, 2013 at 8:20 AM, Brian a...@cityscape.co.uk wrote:
 On Fri 08 Mar 2013 at 22:22:25 -0500, Tom H wrote:
 On Fri, Mar 8, 2013 at 8:30 PM, Brian a...@cityscape.co.uk wrote:
 On Fri 08 Mar 2013 at 19:04:41 -0600, keshav prabhakar wrote:


 netcfg/wireless_wep string#d-i mirror/country string USd-i

 The first post at

 http://ubuntuforums.org/showthread.php?t=1601750

 is your situation. The second post gives a solution which is discussed
 further at

 https://bugs.launchpad.net/ubuntu/+source/kickseed/+bug/662931

 The downside is it's for a different distribution. But you never know.

 When it comes to d-i and preseed, Debian and Ubuntu are the same,
 except for the version names and the installation of a basic system
 (Debian's is d-i tasksel/first multiselect system and Ubuntu's is
 d-i tasksel/first multiselect standard).

 I was being cautious :) and at the time hadn't looked at what the
 preseed recommendations for Mirror settings are at

 http://www.debian.org/releases/squeeze/example-preseed.txt

 Now I have I see
 d-i mirror/country string manual
 is mentioned.

Ubuntu's tweaked d-i here and there (two things that I remember
off-hand is that you have to press F6 to select the expert install and
you're asked whether you want to install grub to all members of an
array when you use mdraid) but it's pretty much the same d-i that
Debian uses.

I have to correct some nonsense above... I interverted Debian and
Ubuntu's d-i tasksel  Debian's basic task is standard and
Ubuntu's is server (not system!). Ubuntu also has standard and
minimal but I've never checked how much smaller than server they
are. Friday night brain-tiredness. Sorry!


 I've never tried it but I think that you can even use kickseed with
 Debian's d-i.

 I wasn't aware of it until it cropped up in the LP bug report. It
 appears to be an alternative to using preconfiguration files with d-i.

When Ubuntu started going after RHEL customers, the latter must've
said that they wanted to stick to kickstart so Ubuntu developed a way
to preseed d-i with kickstart files to a certain extent.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=sy6voormszw8qkxx0rpe8z3tjze85udp4jh6cohvzx...@mail.gmail.com



Re: Installer not reading preseed.cfg

2013-03-10 Thread Tom H
On Sat, Mar 9, 2013 at 6:25 PM, keshav prabhakar kes...@hotmail.com wrote:

 d-i mirror/country string manual
 d-i mirror/suite string stable

 yes, those two lines did the magic! Thanks.
 It started reading from the local server but...now, it's stopping next at
 this error:

No root file system
 No root file system is defined.

 Please correct this from the partitioning menu.

 I googled around and tried replacing 'lvm' with regular:

 #d-i partman-auto/method string lvm
 d-i partman-auto/method string regular

 (and commenting out the related lvm lines)

 and tried replacing 'home' with 'atomic' as well:

 #d-i partman-auto/choose_recipe select home
 d-i partman-auto/choose_recipe select atomic

 no luck so far. will look into the details in the morning.

I thought that it might be a squeeze v/s wheezy problem so I
downloaded a squeeze netinst and ran your lvm preseed against it. The
VM installed and booted fine.

As a start and without diagnosing further, I'd boot from an install CD
in rescue mode and re-create the initramfs either with
update-initramfs -u -k ... or update-initramfs -d -k ... ;
update-initramfs -c -k 

You might want to run update-grub after that, for good measure; or
even grub-install ... ; update-grub.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=szhcjtytnvki0-mdexx6ednpssuhvsb9y82bemqodf...@mail.gmail.com



Re: Installer not reading preseed.cfg

2013-03-09 Thread Tom H
On Fri, Mar 8, 2013 at 10:12 PM, Tom H tomh0...@gmail.com wrote:
 On Fri, Mar 8, 2013 at 8:04 PM, keshav prabhakar kes...@hotmail.com wrote:

 Also 1483 seems like a very small preseed file.

 It is.
 # ls -l preseed_Debian-6.0.7.cfg
 -rw-r--r-- 1 root root 1488 Mar  8 14:00 preseed_Debian-6.0.7.cfg
 # more preseed_Debian-6.0.7.cfg
 #d-i netcfg/dhcp_timeout string 60
 #d-i debian-installer/locale string en_US
 #d-i console-keymaps-at/keymap select us
 #d-i keyboard-configuration/xkb-keymap select us
 #d-i netcfg/choose_interface select eth0
 #d-i netcfg/get_nameservers string x.x.x.x
 #d-i netcfg/get_hostname string myhostname
 #d-i netcfg/get_domain string mydomain
 #d-i netcfg/get_hostname seen true
 #d-i netcfg/get_domain seen true
 #d-i netcfg/get_ipaddress string y.y.y.y
 #d-i netcfg/get_netmask string 255.x.x.x
 #d-i netcfg/get_gateway string z.z.z.z
 #d-i netcfg/confirm_static boolean true
 d-i netcfg/wireless_wep string
 #d-i mirror/country string US
 d-i mirror/protocol string http
 d-i mirror/http/hostname string 192.168.1.12
 d-i mirror/http/directory string /Debian-6.0.7-amd64/debian/
 d-i passwd/make-user boolean false
 d-i passwd/root-password password 
 d-i passwd/root-password-again password 
 d-i clock-setup/utc boolean true
 d-i time/zone string US/Eastern
 d-i clock-setup/ntp boolean true
 d-i partman-auto/disk string /dev/sda
 d-i partman-auto/method string lvm
 d-i partman-lvm/device_remove_lvm boolean true
 d-i partman-lvm/confirm boolean true
 d-i partman-auto/choose_recipe select home
 d-i base-installer/kernel/linux/initramfs-generators string initramfs-tools
 d-i base-installer/kernel/image string linux-image-2.6-486
 d-i debian-installer/allow_unauthenticated boolean true
 d-i finish-install/keep-consoles boolean true
 d-i finish-install/reboot_in_progress note

 d-i mirror/country string manual

 and

 d-i mirror/suite string stable
 or
 d-i mirror/suite string squeeze
 or
 d-i mirror/codename string squeeze

Looking at this again, there's at least one ...confirm_nooverwrite... missing.

You'll need d-i partman-lvm/confirm_nooverwrite boolean true and
possibly d-i partman/confirm_nooverwrite boolean true too.

What does this preseed config install? A base install or a desktop
install? If it's a desktop install, you'll only be able to log in to a
console because you're not creating a non-root user.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=SxiVrfFXU0G+1mUgeRRPRtkcEd=m2esnrzuj5morvz...@mail.gmail.com



Re: Installer not reading preseed.cfg

2013-03-09 Thread Tom H
On Sat, Mar 9, 2013 at 4:32 AM, Tom H tomh0...@gmail.com wrote:
 On Fri, Mar 8, 2013 at 10:12 PM, Tom H tomh0...@gmail.com wrote:
 On Fri, Mar 8, 2013 at 8:04 PM, keshav prabhakar kes...@hotmail.com wrote:

 Also 1483 seems like a very small preseed file.

 It is.
 # ls -l preseed_Debian-6.0.7.cfg
 -rw-r--r-- 1 root root 1488 Mar  8 14:00 preseed_Debian-6.0.7.cfg
 # more preseed_Debian-6.0.7.cfg
 #d-i netcfg/dhcp_timeout string 60
 #d-i debian-installer/locale string en_US
 #d-i console-keymaps-at/keymap select us
 #d-i keyboard-configuration/xkb-keymap select us
 #d-i netcfg/choose_interface select eth0
 #d-i netcfg/get_nameservers string x.x.x.x
 #d-i netcfg/get_hostname string myhostname
 #d-i netcfg/get_domain string mydomain
 #d-i netcfg/get_hostname seen true
 #d-i netcfg/get_domain seen true
 #d-i netcfg/get_ipaddress string y.y.y.y
 #d-i netcfg/get_netmask string 255.x.x.x
 #d-i netcfg/get_gateway string z.z.z.z
 #d-i netcfg/confirm_static boolean true
 d-i netcfg/wireless_wep string
 #d-i mirror/country string US
 d-i mirror/protocol string http
 d-i mirror/http/hostname string 192.168.1.12
 d-i mirror/http/directory string /Debian-6.0.7-amd64/debian/
 d-i passwd/make-user boolean false
 d-i passwd/root-password password 
 d-i passwd/root-password-again password 
 d-i clock-setup/utc boolean true
 d-i time/zone string US/Eastern
 d-i clock-setup/ntp boolean true
 d-i partman-auto/disk string /dev/sda
 d-i partman-auto/method string lvm
 d-i partman-lvm/device_remove_lvm boolean true
 d-i partman-lvm/confirm boolean true
 d-i partman-auto/choose_recipe select home
 d-i base-installer/kernel/linux/initramfs-generators string initramfs-tools
 d-i base-installer/kernel/image string linux-image-2.6-486
 d-i debian-installer/allow_unauthenticated boolean true
 d-i finish-install/keep-consoles boolean true
 d-i finish-install/reboot_in_progress note

 d-i mirror/country string manual

 and

 d-i mirror/suite string stable
 or
 d-i mirror/suite string squeeze
 or
 d-i mirror/codename string squeeze

 Looking at this again, there's at least one ...confirm_nooverwrite... 
 missing.

 You'll need d-i partman-lvm/confirm_nooverwrite boolean true and
 possibly d-i partman/confirm_nooverwrite boolean true too.

 What does this preseed config install? A base install or a desktop
 install? If it's a desktop install, you'll only be able to log in to a
 console because you're not creating a non-root user.

I was curious so I did two installs to answer my questions above.

I don't have a repository or a pxe server so I did them booted from a
wheezy iso, and typing in the url and co stuff at the kernel line.

Not specifying a task creates a desktop install (so I restricted the
second test to the standard task for the sake of speed).

For the first test, I added d-i partman/confirm_nooverwrite boolean
true and d-i partman-lvm/confirm_nooverwrite boolean true but that
wasn't enough to have an automatic install.

For the second (successful) test, I added d-i
partman/confirm_nooverwrite boolean true and d-i
partman-lvm/confirm_nooverwrite boolean true as well d-i
partman/choose_partition select finish.

begin_preseed

# preseeded by both of us at the cmdline

d-i auto-install/enable boolean true
d-i debconf/priority select critical
d-i netcfg/choose_interface select eth1



# preseeded by you at the cmdline

d-i debian-installer/country string US
d-i debian-installer/keymap string us
d-i debian-installer/language string en
d-i debian-installer/locale string en_US

d-i console-keymaps-at/keymap string us

d-i netcfg/get_domain string h0665.int
d-i netcfg/get_nameservers string 8.8.8.8
d-i netcfg/get_hostname string tom



# your preseed file - rearranged so it's clearer to my eyes

#d-i debconf/priority select critical

# not needed for a regular install
#d-i debian-installer/allow_unauthenticated boolean true

#d-i debian-installer/country string US
#d-i debian-installer/keymap string us
#d-i debian-installer/language string en
#d-i debian-installer/locale string en_US

#d-i console-keymaps-at/keymap string us
d-i keyboard-configuration/xkb-keymap string us

# not needed for a static address
#d-i netcfg/dhcp_timeout string 60
#d-i netcfg/confirm_static boolean true

#d-i netcfg/choose_interface select eth0
#d-i netcfg/choose_interface select eth1
#d-i netcfg/get_domain string mydomain
#d-i netcfg/get_hostname string myhostname
#d-i netcfg/get_nameservers string 8.8.8.8
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/get_ipaddress string 192.168.1.61
d-i netcfg/get_netmask string 255.255.255.0

# not needed
#d-i netcfg/wireless_wep string

# the problematic entry and its replacement
# not needed for a cd install
d-i mirror/country string US
#d-i mirror/country string manual
#d-i mirror/suite string stable

# not needed for a cd install
#d-i mirror/http/directory string /Debian-6.0.7-amd64/debian/
#d-i mirror/http/hostname string 192.168.1.12
#d-i mirror/protocol string 

RE: Installer not reading preseed.cfg

2013-03-09 Thread keshav prabhakar

oh wow! Frankly, this is the best, most detailed response I have ever gotten on 
any list so far. :) but seriously, I can't thank enough for your time and 
interest. really appreciate it.I didn't pay much attention to my preseed.cfg 
yet since I was still trying to figure mirror issue. Also, I haven't tried the 
'd-i mirror/country string manual' part yet and can't wait to try..but 
unfortunately I have to go out now so won't be able to try this for the next 
couple of hours. I'll the post details as soon as I try.
Many Thanks!
  

RE: Installer not reading preseed.cfg

2013-03-09 Thread keshav prabhakar

Thanks for the pointer. I'll try this and let you all know how it goes.
  

Re: Installer not reading preseed.cfg

2013-03-09 Thread Brian
On Fri 08 Mar 2013 at 22:22:25 -0500, Tom H wrote:

 On Fri, Mar 8, 2013 at 8:30 PM, Brian a...@cityscape.co.uk wrote:
  On Fri 08 Mar 2013 at 19:04:41 -0600, keshav prabhakar wrote:
 
  netcfg/wireless_wep string#d-i mirror/country string USd-i
 
  The first post at
 
 http://ubuntuforums.org/showthread.php?t=1601750
 
  is your situation. The second post gives a solution which is discussed
  further at
 
 https://bugs.launchpad.net/ubuntu/+source/kickseed/+bug/662931
 
  The downside is it's for a different distribution. But you never know.
 
 When it comes to d-i and preseed, Debian and Ubuntu are the same,
 except for the version names and the installation of a basic system
 (Debian's is d-i tasksel/first multiselect system and Ubuntu's is
 d-i tasksel/first multiselect standard).

I was being cautious :) and at the time hadn't looked at what the
preseed recommendations for Mirror settings are at

   http://www.debian.org/releases/squeeze/example-preseed.txt

Now I have I see

   d-i mirror/country string manual

is mentioned.

 I've never tried it but I think that you can even use kickseed with
 Debian's d-i.

I wasn't aware of it until it cropped up in the LP bug report. It
appears to be an alternative to using preconfiguration files with d-i.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130309132033.GJ32477@desktop



RE: Installer not reading preseed.cfg

2013-03-09 Thread keshav prabhakar

d-i mirror/country string manual
d-i mirror/suite string stable

yes, those two lines did the magic! Thanks.It started reading from the local 
server but...now, it's stopping next at this error:
   No root file systemNo root file system is defined.
Please correct this from the partitioning menu.
I googled around and tried replacing 'lvm' with regular:
#d-i partman-auto/method string lvmd-i partman-auto/method string regular
(and commenting out the related lvm lines)
and tried replacing 'home' with 'atomic' as well:
#d-i partman-auto/choose_recipe select homed-i partman-auto/choose_recipe 
select atomic
no luck so far. will look into the details in the morning.

  

Re: Installer not reading preseed.cfg

2013-03-08 Thread Brian
On Thu 07 Mar 2013 at 16:45:08 -0600, keshav prabhakar wrote:

 I am trying to understand an issue i'm having with preseed'ing over
 the network. wondering if anyone has experienced this in the past
 and/or have a solution to it.

 My pxeboot server (running on centos 6.3) runs dhcpd and tftp from
 where I'm trying to boot and install debian 6.0.7.  I’m able to get
 past the questions on locale, keyboard etc. by using the kernel boot
 parameters on 'append' line in my pxelinux file. At the end of the
 list on ‘append’ line, I also have a
 ‘preseed/url=http://mywebserver/path/to/preseed.cfg’ to get my
 preseed.cfg from an internal web server.The issue I’m having is, after
 the installer correctly sets the locale, keyboard etc as specified on
 the 'append' line, it just appears to ignore my ‘preseed/url’
 parameter and moves on to display the main menu to choose a mirror
 site (‘ftp.us.debian.org’, etc.). 

This would imply preseeding might have set up networking. Has it? In a
console (ALT-F2) do

   wget www.debian.org

and post the response.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130308082324.GF32477@desktop



RE: Installer not reading preseed.cfg

2013-03-08 Thread keshav prabhakar

 This would imply preseeding might have set up networking. Has it?
Networking is setup by the kernel boot parameters that are on the 'append' 
line. It looks like this:
 append initrd=Debian-6.0.7-amd64/netboot/initrd.gz interface=eth1 
domain=mydomain netcfg/get_nameservers=x.x.x.x netcfg/get_hostname=myhostname 
locale=en_US debian-installer/country=US debian-installer/language=en 
debian-installer/keymap=us console-keymaps-at/keymap=American English 
auto=true priority=critical 
preseed/url=http://192.168.1.12/anaconda/cfg/preseed.cfg
There are two interfaces (eth0 and eth1) on the client. eth1 is connected to 
the pxeboot server, which is an internal setup (hence the 'interface=eth1' on 
append line to fetch preseed.cfg). eth0 goes out to the Internet thru' a proxy 
(which is defined in my preseed.cfg). 
I added the other boot parameters (domain=, get_hostname, locale, etc.) on 
'append' line so that these questions are not asked by the installer. It works 
as expected. That is, all these questions are skipped when I boot but it then 
starts connecting to ftp.us.debian.org for some reason..
Mar 8 11:40:12 kdb-chooser[2338]: INFO: kdb_chooser: setting keymap usMar 8 
11:40:12 main-menu[320]: DEBUG: resolver (libc6-udeb): package doesn't exist 
(ignored)Mar 8 11:40:12 main-menu[320]: INFO: Menu item 'choose-mirror' 
selectedMar 8 11:40:12 anna-install: Queueing udeb apt-mirror-setup for later 
installationMar 8 11:40:12 choose-mirror[2364]: DEBUG: command: wget -q 
http://ftp.us.debian.org/debian/dists/stable/Release -O - | grep -E 
'^(Suite|Codename):'
Does 'DEBUG: resolver (libc6-udeb): package doesn't exist (ignored)' line has 
got to do anything? not sure..
 In a console (ALT-F2) do
 
 wget www.debian.org
 and post the response.
Here you go:
~ # wget http://www.debian.orgwget: bad address 'www.debian.org'~ #
It fails because wget is trying to access thro' eth1 (configured on the append 
line) which is internal only. So, it fails to connect to www.debian.org. 
Connection to the mirror site ftp.us.debian.org (shown above) also fails for 
the same reason. 
I have debian ISO (4GB size, not the netinstall version) extracted on the 
server which I want to use for the installation. I have the location for the 
extracted ISO as well as for interface eth0 defined in preseed.cfg but is never 
read by the installer:
extract from preseed.cfg:
d-i netcfg/choose_interface select eth0d-i mirror/protocol string httpd-i 
mirror/http/hostname string 192.168.1.12d-i mirror/http/directory string 
/Debian-6.0.7-amd64/debian/
but as I mentioned before, preseed.cfg is fetched but never used:
192.168.1.199 - - [08/Mar/2013:06:36:37 -0500] GET /anaconda/cfg/preseed.cfg 
HTTP/1.1 200 1483 - Wget
Keshav

 Date: Fri, 8 Mar 2013 08:23:24 +
 From: a...@cityscape.co.uk
 To: debian-user@lists.debian.org
 Subject: Re: Installer not reading preseed.cfg
 
 On Thu 07 Mar 2013 at 16:45:08 -0600, keshav prabhakar wrote:
 
  I am trying to understand an issue i'm having with preseed'ing over
  the network. wondering if anyone has experienced this in the past
  and/or have a solution to it.
 
  My pxeboot server (running on centos 6.3) runs dhcpd and tftp from
  where I'm trying to boot and install debian 6.0.7.  I’m able to get
  past the questions on locale, keyboard etc. by using the kernel boot
  parameters on 'append' line in my pxelinux file. At the end of the
  list on ‘append’ line, I also have a
  ‘preseed/url=http://mywebserver/path/to/preseed.cfg’ to get my
  preseed.cfg from an internal web server.The issue I’m having is, after
  the installer correctly sets the locale, keyboard etc as specified on
  the 'append' line, it just appears to ignore my ‘preseed/url’
  parameter and moves on to display the main menu to choose a mirror
  site (‘ftp.us.debian.org’, etc.). 
 
 This would imply preseeding might have set up networking. Has it? In a
 console (ALT-F2) do
 
wget www.debian.org
 
 and post the response.
 
 
 -- 
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/20130308082324.GF32477@desktop
 
  

Re: Installer not reading preseed.cfg

2013-03-08 Thread David Sastre Medina
On Fri, Mar 08, 2013 at 06:21:39AM -0600, keshav prabhakar wrote:
 
  This would imply preseeding might have set up networking. Has it?
 Networking is setup by the kernel boot parameters that are on the 'append' 
 line. It looks like this:
  append initrd=Debian-6.0.7-amd64/netboot/initrd.gz interface=eth1 
 domain=mydomain netcfg/get_nameservers=x.x.x.x netcfg/get_hostname=myhostname 
 locale=en_US debian-installer/country=US debian-installer/language=en 
 debian-installer/keymap=us console-keymaps-at/keymap=American English 
 auto=true priority=critical 
 preseed/url=http://192.168.1.12/anaconda/cfg/preseed.cfg

This is a snippet of what I use in the tftp server side, adapt it to your needs:

label debian6_64
  menu label Install - ^Debian Wheezy 64
  kernel debian-installer/amd64/linux
  initrd debian-installer/amd64/initrd.gz
  append locale=en_US.UTF-8 console-keymaps-at/keymap=es auto=true 
priority=critical url=http://10.0.0.2/preseed.cfg

Note it's not 'preseed/url', but 'url' alone.
Hope it's useful.

-- 
Primary key fingerprint: AD8F BDC0 5A2C FD5F A179  60E7 F79B AB04 5299 EC56


signature.asc
Description: Digital signature


Re: Installer not reading preseed.cfg

2013-03-08 Thread Tom H
On Fri, Mar 8, 2013 at 7:21 AM, keshav prabhakar kes...@hotmail.com wrote:

 Networking is setup by the kernel boot parameters that are on the 'append'
 line. It looks like this:

  append initrd=Debian-6.0.7-amd64/netboot/initrd.gz interface=eth1
 domain=mydomain netcfg/get_nameservers=x.x.x.x
 netcfg/get_hostname=myhostname locale=en_US debian-installer/country=US
 debian-installer/language=en debian-installer/keymap=us
 console-keymaps-at/keymap=American English auto=true priority=critical
 preseed/url=http://192.168.1.12/anaconda/cfg/preseed.cfg

 There are two interfaces (eth0 and eth1) on the client. eth1 is connected to
 the pxeboot server, which is an internal setup (hence the 'interface=eth1'
 on append line to fetch preseed.cfg). eth0 goes out to the Internet thru' a
 proxy (which is defined in my preseed.cfg).

 I added the other boot parameters (domain=, get_hostname, locale, etc.) on
 'append' line so that these questions are not asked by the installer. It
 works as expected. That is, all these questions are skipped when I boot but
 it then starts connecting to ftp.us.debian.org for some reason..

Please bottom-post.

When you define interface=eth1 in your append statement, the
entire installation's meant to be done via this NIC. I doubt that you
can switch the NICs around via your preseed file as you're trying to
do - as is evidenced by the fact that d-i tries to contact debian.org
via your internal NIC.

Perhaps you can add d-i netcfg/choose_interface seen false then d-i
netcfg/choose_interface select eth0 to your preseed file to switch
the NICs. I've never used anything seen false so this might not be
the correct use for it. AFAIK, it's used for you to be prompted for
that value not to reset it in order to pass it through the same
preseed file.

You might also want to add DEBCONF_DEBUG=5 to the append line to
get more information about the failure but the latter's cause seems
quite clear nonetheless.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=SzKB6uUKX0sWqsmAaDiokLhFRw9whUiv8EdbE=ar8+...@mail.gmail.com



Re: Installer not reading preseed.cfg

2013-03-08 Thread Tom H
On Fri, Mar 8, 2013 at 9:21 AM, David Sastre Medina
d.sastre.med...@gmail.com wrote:
 On Fri, Mar 08, 2013 at 06:21:39AM -0600, keshav prabhakar wrote:

 append initrd=Debian-6.0.7-amd64/netboot/initrd.gz interface=eth1 
 domain=mydomain netcfg/get_nameservers=x.x.x.x 
 netcfg/get_hostname=myhostname locale=en_US debian-installer/country=US 
 debian-installer/language=en debian-installer/keymap=us 
 console-keymaps-at/keymap=American English auto=true priority=critical 
 preseed/url=http://192.168.1.12/anaconda/cfg/preseed.cfg

 This is a snippet of what I use in the tftp server side, adapt it to your 
 needs:

 label debian6_64
   menu label Install - ^Debian Wheezy 64
   kernel debian-installer/amd64/linux
   initrd debian-installer/amd64/initrd.gz
   append locale=en_US.UTF-8 console-keymaps-at/keymap=es auto=true 
 priority=critical url=http://10.0.0.2/preseed.cfg

 Note it's not 'preseed/url', but 'url' alone.

url= is short for preseed/url=.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=sx0sxozupha-mv6r1yybgufxlhjde1_mrswx9mjnj1...@mail.gmail.com



RE: Installer not reading preseed.cfg

2013-03-08 Thread keshav prabhakar

Thanks for responding. 
 When you define interface=eth1 in your append statement, the
 entire installation's meant to be done via this NIC. I doubt that you
 can switch the NICs around via your preseed file as you're trying to
 do - as is evidenced by the fact that d-i tries to contact debian.org
 via your internal NIC.

I wasn't really trying to switch the NICs but just wanted to configure eth0 
with an IP, gateway etc. so that when the installation is complete, I would be 
able to ssh to it from my management network. Anyway, I commented out the that 
line in preseed.cfg so there's no confusion:
#d-i netcfg/choose_interface select eth0
and continue having these lines to use my internal server as the mirror:
d-i mirror/protocol string httpd-i mirror/http/hostname string 192.168.1.12d-i 
mirror/http/directory string /Debian-6.0.7-amd64/debian/ 
well, it just tries to connect to ftp.us.debian.org anyway. 
 
 Perhaps you can add d-i netcfg/choose_interface seen false then d-i
 netcfg/choose_interface select eth0 to your preseed file to switch
 the NICs. I've never used anything seen false so this might not be
 the correct use for it. AFAIK, it's used for you to be prompted for
 that value not to reset it in order to pass it through the same
 preseed file.
I have disconnected eth0 for now and removed it from preseed.cfg so I guess 
this shouldn't matter (?)
 
 You might also want to add DEBCONF_DEBUG=5 to the append line to
 get more information about the failure but the latter's cause seems
 quite clear nonetheless.
 added it and saw that it infact is trying to connect to ftp.us.debian.org. I 
 have no idea where it is getting it from:
debconf: -- GET mirror/http/hostname
debconf: -- 0 ftp.us.debian.org
(I guess '0' indicates it couldn't find a preseed value and falling back to 
using default, which is ftp.us.debian.org?)
Thanks again for your time!   

Re: Installer not reading preseed.cfg

2013-03-08 Thread Tom H
On Fri, Mar 8, 2013 at 2:02 PM, keshav prabhakar kes...@hotmail.com wrote:

 Thanks for responding.

 When you define interface=eth1 in your append statement, the
 entire installation's meant to be done via this NIC. I doubt that you
 can switch the NICs around via your preseed file as you're trying to
 do - as is evidenced by the fact that d-i tries to contact debian.org
 via your internal NIC.

 I wasn't really trying to switch the NICs but just wanted to configure eth0
 with an IP, gateway etc. so that when the installation is complete, I would
 be able to ssh to it from my management network. Anyway, I commented out the
 that line in preseed.cfg so there's no confusion:

 #d-i netcfg/choose_interface select eth0

 and continue having these lines to use my internal server as the mirror:

 d-i mirror/protocol string http
 d-i mirror/http/hostname string 192.168.1.12
 d-i mirror/http/directory string /Debian-6.0.7-amd64/debian/

 well, it just tries to connect to ftp.us.debian.org anyway.

 Perhaps you can add d-i netcfg/choose_interface seen false then d-i
 netcfg/choose_interface select eth0 to your preseed file to switch
 the NICs. I've never used anything seen false so this might not be
 the correct use for it. AFAIK, it's used for you to be prompted for
 that value not to reset it in order to pass it through the same
 preseed file.

 I have disconnected eth0 for now and removed it from preseed.cfg so I guess
 this shouldn't matter (?)

 You might also want to add DEBCONF_DEBUG=5 to the append line to
 get more information about the failure but the latter's cause seems
 quite clear nonetheless.

 added it and saw that it infact is trying to connect to ftp.us.debian.org. I
 have no idea where it is getting it from:

 debconf: -- GET mirror/http/hostname
 debconf: -- 0 ftp.us.debian.org

 (I guess '0' indicates it couldn't find a preseed value and falling back to
 using default, which is ftp.us.debian.org?)

 Thanks again for your time!

You're welcome.

Back to square one...

Can you wget your preseed file from a d-i console?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=swy_owaiskunm9ji+y9e7fv9nmyrft0yadmasd71ox...@mail.gmail.com



Re: Installer not reading preseed.cfg

2013-03-08 Thread Tom H
On Fri, Mar 8, 2013 at 6:42 PM, Tom H tomh0...@gmail.com wrote:
 On Fri, Mar 8, 2013 at 2:02 PM, keshav prabhakar kes...@hotmail.com wrote:

 Thanks for responding.

 When you define interface=eth1 in your append statement, the
 entire installation's meant to be done via this NIC. I doubt that you
 can switch the NICs around via your preseed file as you're trying to
 do - as is evidenced by the fact that d-i tries to contact debian.org
 via your internal NIC.

 I wasn't really trying to switch the NICs but just wanted to configure eth0
 with an IP, gateway etc. so that when the installation is complete, I would
 be able to ssh to it from my management network. Anyway, I commented out the
 that line in preseed.cfg so there's no confusion:

 #d-i netcfg/choose_interface select eth0

 and continue having these lines to use my internal server as the mirror:

 d-i mirror/protocol string http
 d-i mirror/http/hostname string 192.168.1.12
 d-i mirror/http/directory string /Debian-6.0.7-amd64/debian/

 well, it just tries to connect to ftp.us.debian.org anyway.

 Perhaps you can add d-i netcfg/choose_interface seen false then d-i
 netcfg/choose_interface select eth0 to your preseed file to switch
 the NICs. I've never used anything seen false so this might not be
 the correct use for it. AFAIK, it's used for you to be prompted for
 that value not to reset it in order to pass it through the same
 preseed file.

 I have disconnected eth0 for now and removed it from preseed.cfg so I guess
 this shouldn't matter (?)

 You might also want to add DEBCONF_DEBUG=5 to the append line to
 get more information about the failure but the latter's cause seems
 quite clear nonetheless.

 added it and saw that it infact is trying to connect to ftp.us.debian.org. I
 have no idea where it is getting it from:

 debconf: -- GET mirror/http/hostname
 debconf: -- 0 ftp.us.debian.org

 (I guess '0' indicates it couldn't find a preseed value and falling back to
 using default, which is ftp.us.debian.org?)

 Thanks again for your time!

 You're welcome.

 Back to square one...

 Can you wget your preseed file from a d-i console?

Also 1483 seems like a very small preseed file.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=Sz3RpkEgjpZshhJq7RsxDU-uLzRA6xpbb5dFg=3Uj=0...@mail.gmail.com



RE: Installer not reading preseed.cfg

2013-03-08 Thread keshav prabhakar


 Back to square one...
 
 Can you wget your preseed file from a d-i console?

yes, the preseed file downloads successfully with wget. This was the next thing 
I tried after `wget http://www.debian.org` but missed mentioning before.
  

RE: Installer not reading preseed.cfg

2013-03-08 Thread keshav prabhakar


 Also 1483 seems like a very small preseed file.

It is. # ls -l preseed_Debian-6.0.7.cfg -rw-r--r-- 1 root root 1488 Mar  8 
14:00 preseed_Debian-6.0.7.cfg# more preseed_Debian-6.0.7.cfg #d-i 
netcfg/dhcp_timeout string 60#d-i debian-installer/locale string en_US#d-i 
console-keymaps-at/keymap select us#d-i keyboard-configuration/xkb-keymap 
select us#d-i netcfg/choose_interface select eth0#d-i netcfg/get_nameservers 
string x.x.x.x#d-i netcfg/get_hostname string myhostname#d-i netcfg/get_domain 
string mydomain#d-i netcfg/get_hostname seen true#d-i netcfg/get_domain seen 
true#d-i netcfg/get_ipaddress string y.y.y.y#d-i netcfg/get_netmask string 
255.x.x.x#d-i netcfg/get_gateway string z.z.z.z#d-i netcfg/confirm_static 
boolean trued-i netcfg/wireless_wep string#d-i mirror/country string USd-i 
mirror/protocol string httpd-i mirror/http/hostname string 192.168.1.12d-i 
mirror/http/directory string /Debian-6.0.7-amd64/debian/d-i passwd/make-user 
boolean falsed-i passwd/root-password password d-i 
passwd/root-password-again password d-i clock-setup/utc boolean trued-i 
time/zone string US/Easternd-i clock-setup/ntp boolean trued-i 
partman-auto/disk string /dev/sdad-i partman-auto/method string lvmd-i 
partman-lvm/device_remove_lvm boolean trued-i partman-lvm/confirm boolean 
trued-i partman-auto/choose_recipe select homed-i 
base-installer/kernel/linux/initramfs-generators string initramfs-toolsd-i 
base-installer/kernel/image string linux-image-2.6-486d-i 
debian-installer/allow_unauthenticated boolean trued-i 
finish-install/keep-consoles boolean trued-i finish-install/reboot_in_progress 
note#
Do you see anything missing? The first few lines are commented out because I'm 
using most of them as the boot params on 'append' line. 
   

Re: Installer not reading preseed.cfg

2013-03-08 Thread Brian
On Fri 08 Mar 2013 at 19:04:41 -0600, keshav prabhakar wrote:

 netcfg/wireless_wep string#d-i mirror/country string USd-i

The first post at

   http://ubuntuforums.org/showthread.php?t=1601750

is your situation. The second post gives a solution which is discussed
further at

   https://bugs.launchpad.net/ubuntu/+source/kickseed/+bug/662931

The downside is it's for a different distribution. But you never know.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130309013055.GI32477@desktop



Re: Installer not reading preseed.cfg

2013-03-08 Thread Tom H
On Fri, Mar 8, 2013 at 8:04 PM, keshav prabhakar kes...@hotmail.com wrote:

 Also 1483 seems like a very small preseed file.

 It is.
 # ls -l preseed_Debian-6.0.7.cfg
 -rw-r--r-- 1 root root 1488 Mar  8 14:00 preseed_Debian-6.0.7.cfg
 # more preseed_Debian-6.0.7.cfg
 #d-i netcfg/dhcp_timeout string 60
 #d-i debian-installer/locale string en_US
 #d-i console-keymaps-at/keymap select us
 #d-i keyboard-configuration/xkb-keymap select us
 #d-i netcfg/choose_interface select eth0
 #d-i netcfg/get_nameservers string x.x.x.x
 #d-i netcfg/get_hostname string myhostname
 #d-i netcfg/get_domain string mydomain
 #d-i netcfg/get_hostname seen true
 #d-i netcfg/get_domain seen true
 #d-i netcfg/get_ipaddress string y.y.y.y
 #d-i netcfg/get_netmask string 255.x.x.x
 #d-i netcfg/get_gateway string z.z.z.z
 #d-i netcfg/confirm_static boolean true
 d-i netcfg/wireless_wep string
 #d-i mirror/country string US
 d-i mirror/protocol string http
 d-i mirror/http/hostname string 192.168.1.12
 d-i mirror/http/directory string /Debian-6.0.7-amd64/debian/
 d-i passwd/make-user boolean false
 d-i passwd/root-password password 
 d-i passwd/root-password-again password 
 d-i clock-setup/utc boolean true
 d-i time/zone string US/Eastern
 d-i clock-setup/ntp boolean true
 d-i partman-auto/disk string /dev/sda
 d-i partman-auto/method string lvm
 d-i partman-lvm/device_remove_lvm boolean true
 d-i partman-lvm/confirm boolean true
 d-i partman-auto/choose_recipe select home
 d-i base-installer/kernel/linux/initramfs-generators string initramfs-tools
 d-i base-installer/kernel/image string linux-image-2.6-486
 d-i debian-installer/allow_unauthenticated boolean true
 d-i finish-install/keep-consoles boolean true
 d-i finish-install/reboot_in_progress note

d-i mirror/country string manual

and

d-i mirror/suite string stable
or
d-i mirror/suite string squeeze
or
d-i mirror/codename string squeeze


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=SyzYUz=wdekavn_3q_6n7txz5v_wdmfob6e9nuwb2i...@mail.gmail.com



Re: Installer not reading preseed.cfg

2013-03-08 Thread Tom H
On Fri, Mar 8, 2013 at 8:30 PM, Brian a...@cityscape.co.uk wrote:
 On Fri 08 Mar 2013 at 19:04:41 -0600, keshav prabhakar wrote:

 netcfg/wireless_wep string#d-i mirror/country string USd-i

 The first post at

http://ubuntuforums.org/showthread.php?t=1601750

 is your situation. The second post gives a solution which is discussed
 further at

https://bugs.launchpad.net/ubuntu/+source/kickseed/+bug/662931

 The downside is it's for a different distribution. But you never know.

When it comes to d-i and preseed, Debian and Ubuntu are the same,
except for the version names and the installation of a basic system
(Debian's is d-i tasksel/first multiselect system and Ubuntu's is
d-i tasksel/first multiselect standard).

I've never tried it but I think that you can even use kickseed with
Debian's d-i.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=SzC5=tuhqp_4c1yh_jmqv+fhxytzx8_x1k6lo7xejj...@mail.gmail.com