[Solved] Re: LVM preseed install fails on physical server

2014-03-21 Thread Sandeep Raman
On Tue, Mar 18, 2014 at 11:05 PM, Sandeep Raman wrote:

> I'm seeing the same issue per
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740271. I've updated
> the bug with my comments.
>
> ┌──┤ [!!] Partition disks ├───┐
> │ │
> │  Volume group name already in use   │
> │ The volume group name used to automatically partition using LVM is  │
> │ already in use. Lowering the priority for configuration questions   │
> │ will allow you to specify an alternative name.  │
> │ │
> │  │
> │ │
> └─┘
>
> Has anyone seen this before and/or know of a way to sort this?
>
> Cheers,
> Sandeep.
>

There was no need to zero/wipe disk. All that needed to be done was remove
the logical volume.

I booted off gparted iso and from the cli lvremove <>
Rebooted and booted with the OS iso. The preseed was able to partition the
disk w/o any issue.

However grub failed per
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666974. The workaround
mentioned in the bug helped.

I can work around
it if I set grub-installer/only_debian to false, as this skips directly
to step 2 which then obeys the preseeded bootdev properly.

Finally the OS got installed via preseed.

Cheers,

Sandeep.


LVM preseed install fails on physical server

2014-03-18 Thread Sandeep Raman
I'm seeing the same issue per
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740271. I've updated the
bug with my comments.

┌──┤ [!!] Partition disks ├───┐
│ │
│  Volume group name already in use   │
│ The volume group name used to automatically partition using LVM is  │
│ already in use. Lowering the priority for configuration questions   │
│ will allow you to specify an alternative name.  │
│ │
│  │
│ │
└─┘

Has anyone seen this before and/or know of a way to sort this?

Cheers,
Sandeep.


Re: LVM preseed install fails with partition error

2014-03-17 Thread Sandeep Raman
On Mar 17, 2014 11:04 PM, "Brian"  wrote:
>
> On Mon 17 Mar 2014 at 16:00:34 +0530, Sandeep Raman wrote:
>
> > thread. This is my complete preseed file for reference -
> > http://paste.debian.net/88147/
>
> It can be referred to up to 2014-06-15 11:30:04. After that it expires.
>
> I'll note that the mail you sent was about 10096 in size. The file at
> paste.debian.net is about a third the size of the mail, 3800, and easily
> compressed to 1200, As an attachment sent to the List it would surely be
> acceptable. It would also not expire and serve a use for future readers.

Point taken, attached preseed to the email.
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmas...@lists.debian.org
> Archive:
https://lists.debian.org/17032014172443.b66e84d68...@desktop.copernicus.demon.co.uk
>
d-i debian-installer/locale string en_US

d-i debian-installer/language string en
d-i debian-installer/country string IN
d-i debian-installer/locale string en_US.UTF-8

d-i debian-installer/splash boolean false
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us

d-i netcfg/choose_interface select auto

d-i netcfg/wireless_wep string

d-i mirror/http/proxy string https://xxx.xx.xxx.xxx:

d-i mirror/http/mirror select in.archive.ubuntu.com

d-i mirror/suite string precise

d-i clock-setup/utc boolean true

d-i time/zone string Asia/Kolkata

d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string ntp.ubuntu.com

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/device_remove_lvm_span boolean true
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/new_vg_name string vg
d-i partman-auto-lvm/guided_size string max
d-i partman/default_filesystem string ext4
d-i partman/alignment select cylinder
# d-i partman-auto/choose_recipe select boot-root
d-i partman-auto/expert_recipe string vg ::\
500 300 500 ext4 \
  $primary{ } \
  $bootable{ } \
  method{ format } format{ } \
  use_filesystem{ } filesystem{ ext4 } \
  mountpoint{ /boot } \
  options/relatime{ relatime } \
. \
100 7000 15 ext4  \
  $primary{ } \
  $defaultignore{ }   \
  method{ lvm }   \
  device{ /dev/sda }  \
  vg_name{ vg } .   \
322 5000 13 ext4  \
  $lvmok{ }   \
  in_vg{ vg }   \
  lv_name{ root } \
  method{ format }\
  format{ }   \
  use_filesystem{ }   \
  filesystem{ ext4 }  \
  mountpoint{ / } .  \
4096 6000 2 swap   \
  $lvmok{ }   \
  in_vg{ vg }   \
  lv_name{ swap } \
  method{ swap }  \
  format{ } .
d-i partman-lvm/confirm boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select Finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true

d-i base-installer/kernel/image string linux-server

d-i passwd/root-login boolean false
d-i passwd/make-user boolean true

d-i passwd/user-fullname string test 
d-i passwd/username string test
d-i passwd/user-password password test
d-i passwd/user-password-again password test
d-i user-setup/allow-password-weak boolean true

d-i passwd/user-default-groups string audio cdrom video adm dialout lpadmin 
plugdev sambashare

d-i user-setup/encrypt-home boolean false

d-i apt-setup/universe boolean true
d-i apt-setup/backports boolean true
d-i apt-setup/services-select multiselect security
d-i apt-setup/security_host string security.ubuntu.com
d-i apt-setup/security_path string /ubuntu

d-i debian-installer/allow_unauthenticated boolean true

tasksel tasksel/first multiselect standard, openssh-server

d-i pkgsel/include string openssh-server build-essential vim ntp 
d-i pkgsel/upgrade select safe-upgrade

d-i pkgsel/language-packs multiselect

d-i pkgsel/update-policy select none

d-i pkgsel/updatedb boolean true

d-i grub-installer/skip boolean false
d-i lilo-installer/skip boolean false

d-i grub-installer/only_debian boolean true

d-i grub-installer/with_other_os boolean true

d-i finish-install/keep-consoles boolean false

d-i finish-install/reboot_in_progress note

d-i cdrom-detect/eject boolean true

d-i debian-installer/exit/halt boolean false
d-i debian-installer/exit/poweroff boolean false

Re: LVM preseed install fails with partition error

2014-03-17 Thread Sandeep Raman
On Sun, Mar 16, 2014 at 2:38 AM, Iain M Conochie wrote:

> Hi Sandeep
>
>   Can you perhaps try this for your preseed?
>
>
> d-i partman-auto/disk string /dev/sda
> d-i partman-auto/choose_recipe select root_swap
> d-i partman-auto/method string lvm
> d-i partman-auto/purge_lvm_from_device boolean true
> d-i partman-auto-lvm/guided_size string 100%
> d-i partman-auto-lvm/no_boot boolean true
> d-i partman/choose_partition select finish
>
> d-i partman/confirm boolean true
> d-i partman/confirm_nooverwrite boolean true
> d-i partman-lvm/device_remove_lvm boolean true
> d-i partman-lvm/device_remove_lvm_span boolean true
> d-i partman-partitioning/confirm_write_new_label boolean true
>
>
> d-i partman-auto/expert_recipe string i3 :: \
> 153600 100 153600 ext4   \
> $defaultignore{ } \
> $primary{ }   \
> method{ lvm } \
> device{ /dev/sda }  \
> vg_name{ i3vg }\ .
>
>
>
> 12 10 12 ext4 \
> $defaultignore{ }
> $lvmok{ } lv_name{ root } \
> method{ format } format{ } \
> use_filesystem{ } filesystem{ ext4 } \
> mountpoint{ / } . \
>
>
> 25000 20 25000 linux-swap \
> $lvmok{ } lv_name{ swap_1 } \
> method{ swap } format{ } .
>
> Good luck
>
> Iain
>
>
> Hi Iain,

I removed all the partman related lines and created a new preseed file. It
works now on vm but has issue with baremetal for which i'll start a new
thread. This is my complete preseed file for reference -
http://paste.debian.net/88147/

Cheers,
Sandeep.


Re: providing a static IP/Netmas/Gateway + location of a preseed file at boot prompt.

2014-03-17 Thread Sandeep Raman
On Mon, Mar 17, 2014 at 2:12 PM, Mihamina Rakotomandimby <
mihamina.rakotomandi...@rktmb.org> wrote:

> On 03/17/2014 11:39 AM, Sandeep Raman wrote:
>
>> # Static network configuration.
>> #d-i netcfg/get_nameservers string 192.168.124.1
>> #d-i netcfg/get_ipaddress string 192.168.1.6
>> #d-i netcfg/get_netmask string 255.255.255.0
>> #d-i netcfg/get_gateway string 192.168.124.1
>> #d-i netcfg/confirm_static boolean true
>>
>
> Yes, but how do I setup the network from the boot prompt?
>
> Not sure though. Buw when it can be preseeded what is the purpose or
> intent of having it to set from boot prompt?
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a
> subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: https://lists.debian.org/5326b579.6010...@rktmb.org
>


Re: providing a static IP/Netmas/Gateway + location of a preseed file at boot prompt.

2014-03-17 Thread Sandeep Raman
On Mon, Mar 17, 2014 at 1:18 PM, Mihamina Rakotomandimby <
mihamina.rakotomandi...@rktmb.org> wrote:

> Hi guys,
>
> I would like to install my Debian machines with the Pressed D-I feature.
>
> At this moment, I dont have a decent DHCP/BootP server yet, and waiting
> for this to be achieved, I want to manually provide the IP address at the
> boot prompt.
>
> I already use it on others distributions install, but I miss the right
> syntax on Debian.
>
> What I want is to issue something similar to
>
> [...] ip=x netmask= gateway=z preseed/url=http://host/
> preseed.cfg
>
>
> My guess, reading the documentation is I cant directly put some preseed
> parameters in the boot parameters.
> What I want would be:
>
> [...] netcfg/get_ipaddress=92.168.1.42 \
>   netcfg/get_netmask=255.255.255.0 \
>   netcfg/get_gateway=192.168.1.1 \
>   preseed/url=http://host/preseed.cfg



> Adding the below section in your preseed.cfg should work, hth.
>

# Static network configuration.
#d-i netcfg/get_nameservers string 192.168.124.1
#d-i netcfg/get_ipaddress string 192.168.1.6
#d-i netcfg/get_netmask string 255.255.255.0
#d-i netcfg/get_gateway string 192.168.124.1
#d-i netcfg/confirm_static boolean true

Am I right?
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a
> subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: https://lists.debian.org/5326a8c3.5060...@rktmb.org
>


Re: LVM preseed install fails with partition error

2014-03-14 Thread Sandeep Raman
>
> On 13/03/14 19:55, Sandeep Raman wrote:
>
>>
>> I am using a preseed file on a physical server with the following
>> requirement:
>>
>> The 146gb disk need to be partitioned as 120gb '/' partition and 25gb
>> 'swap' partition with lvm.
>>
>> The install fails with the error "Description: Failed to partition the
>> selected diskThis happened because the selected recipe does not contain any
>> partition that can be created on LVM volumes."
>>
>> The following lines from the preseed specific to disk configuration:
>>
>> 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/device_remove_lvm_span boolean true
>> d-i partman-md/device_remove_md boolean true
>> d-i partman-lvm/confirm boolean true
>> d-i partman/choose_partition select finish
>> d-i partman-lvm/confirm_nooverwrite boolean true
>> d-i partman-auto-lvm/guided_size string max
>> d-i partman-auto/choose_recipe select root_swap
>> d-i partman/default_filesystem string ext4
>> d-i partman-partitioning/confirm_write_new_label boolean true
>> d-i partman/confirm boolean true
>> d-i partman/confirm_nooverwrite boolean true
>> d-i partman-auto/expert_recipe string root_swap :: \
>> 12 10 12 ext4 \
>> $defaultignore{ }
>> $lvmok{ } lv_name{ root } \
>> method{ format } format{ } \
>> use_filesystem{ } filesystem{ ext4 } \
>> mountpoint{ / }
>>
>> 25000 20 25000 linux-swap \
>> $lvmok{ } lv_name{ swap_1 } \
>> method{ swap } format{ }
>>
>> Is any other option needed in the preseed for this to work?
>>
>> Cheers,
>> Sandeep.
>>
>>  On Fri, Mar 14, 2014 at 2:54 AM, Iain M Conochie 
>  wrote:
>
>> Hi Sandeep
>>
>>   I think you are missing a section to describe the LVM volume group you
>> want to create. This one works for me:
>>
>>   100 1000 10 ext3   \
>>$defaultignore{ } \
>>$primary{ }   \
>>method{ lvm } \
>>device{ /dev/sda }  \
>>vg_name{ systemlv }\
>>   .
>>
>> I think you also need to add
>>
>> in_vg{ systemlv }
>>
>> to all the logical volumes (partitions) you want to create. Obviously,
>> you can change the name systemlv to what ever you want.
>>
>> You may also want to add this to the disk partition definition:
>>
>> d-i partman/choose_partition select Finish partitioning and write changes
>> to disk
>>
>> Good luck!
>>
>> Iain
>>
>>
>>
Hi Iain,

I made changes as below based on your inputs. However I see the same error.
Perhaps I'm missing something too obvious. Is there a chance the old
content is being read still even though the preseed file is updated with
the changes?

It is a vm with 150gb disk.
To make sure I am doing it correctly and my understanding is right about
the three values given below:

153600 100 153600 ext4 - Use the full 150gb disk and a priority # 100
12 90 12 ext4 \ - Use 120gb / partition with priority # 90
25000 80 25000 linux-swap \ - Use 25gb swap partition with priority # 80

d-i partman-auto/expert_recipe string i3 :: \
153600 100 153600 ext4   \
$defaultignore{ } \
$primary{ }   \
method{ lvm } \
device{ /dev/sda }  \
vg_name{ i3vg }\

12 90 12 ext4 \
$defaultignore{ }
$lvmok{ } lv_name{ root } in_vg{ i3vg } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / }

25000 80 25000 linux-swap \
$lvmok{ } lv_name{ swap_1 } in_vg{ i3vg } \
method{ swap } format{ }

Instead of <>, the following works for me <>

Cheers,
Sandeep.


LVM preseed install fails with partition error

2014-03-13 Thread Sandeep Raman
I am using a preseed file on a physical server with the following
requirement:

The 146gb disk need to be partitioned as 120gb '/' partition and 25gb
'swap' partition with lvm.

The install fails with the error "Description: Failed to partition the
selected diskThis happened because the selected recipe does not contain any
partition that can be created on LVM volumes."

The following lines from the preseed specific to disk configuration:

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/device_remove_lvm_span boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman/choose_partition select finish
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto-lvm/guided_size string max
d-i partman-auto/choose_recipe select root_swap
d-i partman/default_filesystem string ext4
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-auto/expert_recipe string root_swap :: \
12 10 12 ext4 \
$defaultignore{ }
$lvmok{ } lv_name{ root } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / }

25000 20 25000 linux-swap \
$lvmok{ } lv_name{ swap_1 } \
method{ swap } format{ }

Is any other option needed in the preseed for this to work?

Cheers,
Sandeep.


[solved] Re: Debian wheezy 7.4 preseed install fails with error "mirror does not support the specified release (wheezy)

2014-02-22 Thread Sandeep Raman
In d-i mirror/http/proxy string I was using https. Changed it to http and
got past the error.

Responding to your questions if it will benefit anyone else :-)

First tell us what you are trying to do - I'm installing Debian 7.4 and
want to use preseed method to automate the install

Are you adding the preseed.cfg to the CD *or* calling it from the boot
prompt?
What boot parameters are you using?

- I boot through the cd and at the boot prompt the following parameters is
used:
auto=true priority=critical locale=en_US keymap=us hostname=myname url=
http://192.168.124.2/preseed.txt

What is the rest of your preseed.cfg? -
http://paste.debian.net/hidden/264ce3e4/

Did you try Alt+F4 during the install to see what the problem was? If so
what were the messages? - The message I have posted is from Alt+F4

Have you selected the "Save debug logs" option which starts a simple web
server and allows you to get meaningful installation information? - How do
i do this, this sure will be pretty useful anytime


Few observation which I do not have answer yet.

# Even though I have replaced the ftp[ftp.iitm.ac.in] mirror link with a
http[debian.mirror.net.in], during install the old ftp mirror is being
referenced. Though its not a real problem now, from where is it reading the
old information.

# In the Apt section of the preseed file, I have added the following. Is
this supposed to go into the sources.list file for future reference as
well. I do not see them in the sources.list. What should be done in the
preseed file for the repos to be added in sources.list.

apt-mirror-setup apt-setup/main boolean true apt-mirror-setup
apt-setup/updates boolean true apt-mirror-setup apt-setup/contrib boolean
true apt-mirror-setup apt-setup/non-free boolean true

Thanks and Regards,
Sandeep.

On Sat, Feb 22, 2014 at 3:36 AM, Scott Ferguson <
scott.ferguson.debian.u...@gmail.com> wrote:

> On 22/02/14 07:00, Sandeep Raman wrote:
> > OS - Debian wheezy 7.4 amd64 iso cd1
> > Preseed section of mirror:
> > d-i mirror/protocol string ftp
> > d-i mirror/ftp/hostname string ftp.iitm.ac.in <http://ftp.iitm.ac.in>
> > d-i mirror/ftp/directory string /debian/
> > d-i mirror/ftp/proxy string
>
> That 'should' work - assuming the hostname line wasn't tried verbatim -
> and dependant on how you are using preseed.cfg and your boot parameters
> (see my questions further down).
> ftp 'can' be problematic and if you have a choice choose http.
>
> Try:-
> (protocol string doesn't seem to be required if not selecting ftp)
> d-i mirror/country string enter information manually
> d-i mirror/http/hostname string ftp.iitm.ac.in
> d-i mirror/http/directory string /debian/
> d-i mirror/http/proxy string
>
> 
>
> >
> > I have given different mirrors and even used http.
> > From console and browser, i'm able to
> > fetch ftp://ftp.iitm.ac.in/debian/dists/wheezy/Release
> >
> > Any pointers in solving this.
>
> First tell us what you are trying to do
>
> Are you adding the preseed.cfg to the CD *or* calling it from the boot
> prompt?
>
> What boot parameters are you using?
>
> What is the rest of your preseed.cfg?
> NOTE: the answers to the previous two questions determine what's
> required for preseed.cfg to work - please put the preseed.cfg on
> paste.debian.net and link to it in your post.
>
> Did you try Alt+F4 during the install to see what the problem was? If so
> what were the messages?
>
> Have you selected the "Save debug logs" option which starts a simple web
> server and allows you to get meaningful installation information?
>
> >
> > Thanks,
> > Sandeep.
>
> You may find this preseed.cfg useful to compare yours to:-
> http://paste.debian.net/83397
> I use it *in* a CD, and boot the CD with:-
> "install auto DEBCONF_DEBUG=5".
> It auto-partitions, builds a stripped-down box, and includes ssh (ssh
> installer@ipAddress). Modify it suit your needs and circumstances.
>
> Kind regards
>
>
> --
> 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/5307cde4.2030...@gmail.com
>
>


Debian wheezy 7.4 preseed install fails with error "mirror does not support the specified release (wheezy)

2014-02-21 Thread Sandeep Raman
OS - Debian wheezy 7.4 amd64 iso cd1
Preseed section of mirror:
d-i mirror/protocol string ftp
d-i mirror/ftp/hostname string ftp.iitm.ac.in
d-i mirror/ftp/directory string /debian/
d-i mirror/ftp/proxy string

http://forums.debian.net/viewtopic.php?f=17&t=80657 - Suggestion from the
link to have a static ip has been tested and it doesn't solve the problem
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684796 - No clear solution

I have given different mirrors and even used http.
>From console and browser, i'm able to fetch
ftp://ftp.iitm.ac.in/debian/dists/wheezy/Release

Any pointers in solving this.

Thanks,
Sandeep.