[PVE-User] unattended PVE server installation
Vadim Bulst
vadim.bulst at bbz.uni-leipzig.de
Mon Jan 9 12:37:07 CET 2017
I was sending this mail with attached log - they got cut off. Here the
important lines of /var/log/installer/syslog:
Jan 8 19:24:26 finish-install: info: Running
/usr/lib/finish-install.d/07brltty
Jan 8 19:24:26 finish-install: info: Running
/usr/lib/finish-install.d/07preseed
Jan 8 19:24:26 preseed: running preseed command preseed/late_command:
wget -Y off
http://urzlxdeploy.rz.uni-leipzig.de/unattended/finish?token=5f437fd2-4fa9-4519-8e2d-684aa12a1bce
-O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh &&
in-target /tmp/finish.sh
Jan 8 19:24:26 log-output: Connecting to urzlxdeploy.rz.uni-leipzig.de
(139.18.16.90:80)
Jan 8 19:24:26 log-output: ^Mfinish.sh 100%
Jan 8 19:24:26 log-output: |*******************************| 2356
0:00:00 ETA
Jan 8 19:24:27 in-target: Reading package lists...
Jan 8 19:24:27 in-target:
Jan 8 19:24:27 in-target: Building dependency tree...
Jan 8 19:24:27 in-target:
Jan 8 19:24:27 in-target: Reading state information...
Jan 8 19:24:27 in-target:
Jan 8 19:24:27 in-target: Package 'os-prober' is not installed, so not
removed
Jan 8 19:24:27 in-target: 0 upgraded, 0 newly installed, 0 to remove
and 0 not upgraded.
Jan 8 19:24:29 in-target: Ign http://download.proxmox.com jessie InRelease
Jan 8 19:24:29 in-target: Hit http://download.proxmox.com jessie
Release.gpg
Jan 8 19:24:29 in-target: Hit http://download.proxmox.com jessie Release
Jan 8 19:24:29 in-target: Ign http://ftp.debian.org:80 jessie InRelease
Jan 8 19:24:29 in-target: Hit http://security.debian.org jessie/updates
InRelease
Jan 8 19:24:29 in-target: Hit http://ftp.debian.org:80 jessie-updates
InRelease
Jan 8 19:24:29 in-target: Hit http://download.proxmox.com
jessie/pve-no-subscription amd64 Packages
Jan 8 19:24:29 in-target: Hit http://ftp.debian.org:80 jessie Release.gpg
Jan 8 19:24:29 in-target: Hit http://ftp.debian.org:80 jessie Release
Jan 8 19:24:29 in-target: Hit http://security.debian.org
jessie/updates/main Sources
Jan 8 19:24:29 in-target: Hit http://security.debian.org
jessie/updates/main amd64 Packages
Jan 8 19:24:29 in-target: Ign http://download.proxmox.com
jessie/pve-no-subscription Translation-en_US
Jan 8 19:24:29 in-target: Ign http://download.proxmox.com
jessie/pve-no-subscription Translation-en
Jan 8 19:24:29 in-target: Hit http://security.debian.org
jessie/updates/main Translation-en
Jan 8 19:24:29 in-target: Get:1 http://ftp.debian.org:80
jessie-updates/main amd64 Packages/DiffIndex [6,916 B]
Jan 8 19:24:29 in-target: Get:2 http://ftp.debian.org:80
jessie-updates/main Translation-en/DiffIndex [2,704 B]
Jan 8 19:24:29 in-target: Hit http://ftp.debian.org:80
jessie-updates/main Sources
Jan 8 19:24:29 in-target: Hit http://ftp.debian.org:80 jessie/main Sources
Jan 8 19:24:29 in-target: Hit http://ftp.debian.org:80 jessie/main
amd64 Packages
Jan 8 19:24:29 in-target: Hit http://ftp.debian.org:80 jessie/main
Translation-en
Jan 8 19:24:31 in-target: Fetched 9,620 B in 1s (4,877 B/s)
Jan 8 19:24:31 in-target: Reading package lists...
Jan 8 19:24:33 in-target:
Jan 8 19:24:33 in-target: Reading package lists...
Jan 8 19:24:33 in-target:
Jan 8 19:24:33 in-target: Building dependency tree...
Jan 8 19:24:33 in-target:
Jan 8 19:24:33 in-target: Reading state information...
Jan 8 19:24:33 in-target:
Jan 8 19:24:33 in-target: 0 upgraded, 0 newly installed, 0 to remove
and 0 not upgraded.
Jan 8 19:24:33 in-target: Reading package lists...
Jan 8 19:24:33 in-target:
Jan 8 19:24:33 in-target: Building dependency tree...
Jan 8 19:24:33 in-target:
Jan 8 19:24:33 in-target: Reading state information...
Jan 8 19:24:33 in-target:
Jan 8 19:24:33 in-target: 0 upgraded, 0 newly installed, 0 to remove
and 0 not upgraded.
Jan 8 19:24:33 in-target: E:
Jan 8 19:24:33 in-target: Command line option 'y' [from -y] is not known.
Jan 8 19:24:35 in-target: Generating grub configuration file ...
Jan 8 19:24:35 in-target:
Jan 8 19:24:36 in-target: File descriptor 3 (pipe:[12377]) leaked on
vgs invocation. Parent PID 69048: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 4 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69048: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 5 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69048: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 6 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69048: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 3 (pipe:[12377]) leaked on
vgs invocation. Parent PID 69048: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 4 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69048: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 5 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69048: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 6 (/dev/pts/0) leaked on vgs
invocation.
Jan 8 19:24:36 in-target: Parent PID 69048: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 3 (pipe:[12377]) leaked on
vgs invocation. Parent PID 69059: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 4 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69059: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 5 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69059: /usr/sbin/grub-probe
Jan 8 19:24:36 in-target: File descriptor 6 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69059: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 3 (pipe:[12377]) leaked on
vgs invocation. Parent PID 69059: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 4 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69059: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 5 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69059: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 6 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69059: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 3 (pipe:[12377]) leaked on
vgs invocation. Parent PID 69070: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 4 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69070: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 5 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69070: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 6 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69070: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 3 (pipe:[12377]) leaked on
vgs invocation. Parent PID 69070: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 4 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69070: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 5 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69070: /usr/sbin/grub-probe
Jan 8 19:24:37 in-target: File descriptor 6 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69070: /usr/sbin/grub-probe
Jan 8 19:24:38 in-target: File descriptor 3 (pipe:[12377]) leaked on
vgs invocation. Parent PID 69082: /usr/sbin/grub-probe
Jan 8 19:24:38 in-target: File descriptor 4 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69082: /usr/sbin/grub-probe
Jan 8 19:24:38 in-target: File descriptor 5 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69082: /usr/sbin/grub-probe
Jan 8 19:24:38 in-target: File descriptor 6 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69082: /usr/sbin/grub-probe
Jan 8 19:24:38 in-target: File descriptor 3 (pipe:[12377]) leaked on
vgs invocation. Parent PID 69082: /usr/sbin/grub-probe
Jan 8 19:24:38 in-target: File descriptor 4 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69082: /usr/sbin/grub-probe
Jan 8 19:24:38 in-target: File descriptor 5 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69082: /usr/sbin/grub-probe
Jan 8 19:24:38 in-target: File descriptor 6 (/dev/pts/0) leaked on vgs
invocation. Parent PID 69082: /usr/sbin/grub-probe
Jan 8 19:24:39 in-target: Found linux image: /boot/vmlinuz-3.16.0-4-amd64
Jan 8 19:24:39 in-target: Found initrd image:
/boot/initrd.img-3.16.0-4-amd64
Jan 8 19:24:40 in-target: done
Jan 8 19:24:40 in-target:
Jan 8 19:24:40 in-target: Ign http://download.proxmox.com jessie InRelease
Jan 8 19:24:40 in-target: Hit http://security.debian.org jessie/updates
InRelease
Jan 8 19:24:40 in-target: Hit http://download.proxmox.com jessie
Release.gpg
Jan 8 19:24:40 in-target: Hit http://download.proxmox.com jessie Release
Jan 8 19:24:40 in-target: Ign http://ftp.debian.org:80 jessie InRelease
Jan 8 19:24:40 in-target: Hit http://security.debian.org
jessie/updates/main Sources
Jan 8 19:24:40 in-target: Hit http://download.proxmox.com
jessie/pve-no-subscription amd64 Packages
Jan 8 19:24:40 in-target: Hit http://ftp.debian.org:80 jessie-updates
InRelease
Jan 8 19:24:40 in-target: Hit http://security.debian.org
jessie/updates/main amd64 Packages
Jan 8 19:24:40 in-target: Hit http://security.debian.org
jessie/updates/main Translation-en
Jan 8 19:24:40 in-target: Hit http://ftp.debian.org:80 jessie Release.gpg
Jan 8 19:24:40 in-target: Hit http://ftp.debian.org:80
jessie-updates/main Sources
Jan 8 19:24:40 in-target: Ign http://download.proxmox.com
jessie/pve-no-subscription Translation-en_US
Jan 8 19:24:40 in-target: Get:1 http://ftp.debian.org:80
jessie-updates/main amd64 Packages/DiffIndex [6,916 B]
Jan 8 19:24:40 in-target: Ign http://download.proxmox.com
jessie/pve-no-subscription Translation-en
Jan 8 19:24:40 in-target: Get:2 http://ftp.debian.org:80
jessie-updates/main Translation-en/DiffIndex [2,704 B]
Jan 8 19:24:40 in-target: Hit http://ftp.debian.org:80 jessie Release
Jan 8 19:24:41 in-target: Hit http://ftp.debian.org:80 jessie/main Sources
Jan 8 19:24:41 in-target: Hit http://ftp.debian.org:80 jessie/main
amd64 Packages
Jan 8 19:24:41 in-target: Hit http://ftp.debian.org:80 jessie/main
Translation-en
Jan 8 19:24:42 in-target: Fetched 9,620 B in 1s (5,171 B/s)
Jan 8 19:24:42 in-target: Reading package lists...
Jan 8 19:24:44 in-target:
Jan 8 19:24:44 in-target: Reading package lists...
Jan 8 19:24:44 in-target:
Jan 8 19:24:44 in-target: Building dependency tree...
Jan 8 19:24:44 in-target:
Jan 8 19:24:44 in-target: Reading state information...
Jan 8 19:24:44 in-target:
Jan 8 19:24:44 in-target: puppet is already the newest version.
Jan 8 19:24:44 in-target: 0 upgraded, 0 newly installed, 0 to remove
and 0 not upgraded.
Jan 8 20:24:45 puppet-agent[69367]: Enabling Puppet.
Jan 8 20:24:50 puppet-agent[69373]:
(/File[/var/lib/puppet/lib/puppet]/ensure) created
Jan 8 20:24:50 puppet-agent[69373]:
(/File[/var/lib/puppet/lib/puppet/provider]/ensure) created
Jan 8 20:24:50 puppet-agent[69373]:
(/File[/var/lib/puppet/lib/puppet/provider/docker_compose]/ensure) created
Jan 8 20:24:50 puppet-agent[69373]:
(/File[/var/lib/puppet/lib/puppet/face]/ensure) created
Jan 8 20:24:50 puppet-agent[69373]:
(/File[/var/lib/puppet/lib/puppet/provider/file_line]/ensure) created
Jan 8 20:24:50 puppet-agent[69373]:
(/File[/var/lib/puppet/lib/puppet/parser]/ensure) created
Jan 8 20:24:50 puppet-agent[69373]:
(/File[/var/lib/puppet/lib/puppet/parser/functions]/ensure) created
Jan 8 20:24:50 puppet-agent[69373]:
(/File[/var/lib/puppet/lib/puppet/parser/functions/ensure_packages.rb]/ensure)
defined content as '{md5
Cheers,
Vadim
Am 09.01.2017 um 12:03 schrieb Vadim Bulst:
> Sorry my fault. It was the Debian Jessie howto and not Wheezy.
> Attached are some logs. Let me know if you need some more.
>
> As you may see in syslog i'm calling a finish.sh script which should
> install the PVE and afterwards the Puppet-agent. The Puppet-agent gets
> installed.
>
>
>
> # Install packages for Proxmox PVE
> /usr/bin/apt-get -y -f remove os-prober
> sleep 2
> /usr/bin/apt-get update
> /usr/bin/apt-get -f -y install
> /usr/bin/apt-get dist-upgrade
> /usr/bin/apt-get -y --force-yes proxmox-ve ssh ksm-control-daemon
> open-iscsi systemd-sysv
>
> /usr/sbin/update-grub
>
>
>
>
>
> apt-get update
> apt-get install -y puppet
>
> cat > /etc/puppet/puppet.conf << EOF
>
>
> [main]
> vardir = /var/lib/puppet
> logdir = /var/log/puppet
> rundir = /var/run/puppet
> ssldir = \$vardir/ssl
>
> [agent]
> pluginsync = true
> report = true
> ignoreschedules = true
> ca_server = urzlxdeploy.rz.uni-leipzig.de
> certname = scvirt01.sc.uni-leipzig.de
> environment = production
> server = urzlxdeploy.rz.uni-leipzig.de
>
> EOF
>
> if [ -f "/etc/default/puppet" ]
> then
> /bin/sed -i 's/^START=no/START=yes/' /etc/default/puppet
> fi
> /usr/bin/puppet agent --enable
>
> # export a custom fact called 'is_installer' to allow detection of the
> installer environment in Puppet modules
> export FACTER_is_installer=true
> # passing a non-existent tag like "no_such_tag" to the puppet agent
> only initializes the node
> /usr/bin/puppet agent --config /etc/puppet/puppet.conf --onetime
> --tags no_such_tag --server urzlxdeploy.rz.uni-leipzig.de --no-daemonize
>
> "
>
> Cheers,
>
> Vadim
>
> Am 09.01.2017 um 08:20 schrieb Fabian Grünbichler:
>> On Sun, Jan 08, 2017 at 09:48:00PM +0100, Vadim Bulst wrote:
>>> Dear all,
>>>
>>> I'm trying to automate the PVE server installation with Foreman and
>>> Puppet
>>> based on Debian stable. Well - i don't have any luck of installing the
>>> packages. I use
>>>
>>> "apt-get --force-yes -y install proxmox-ve ssh postfix
>>> ksm-control-daemon
>>> open-iscsi systemd-sysv"
>>>
>>> seen on
>>> https://pve.proxmox.com/wiki/Unattended_installation_of_Proxmox and
>>> https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Wheezy .
>> that should probably be
>> https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Jessie
>>
>>> Is there anybody who is doing an unattended installation? Can you
>>> give me
>>> some hints?
>> if you give an error message it might be possible to give some more
>> pointers?
>>
>> _______________________________________________
>> pve-user mailing list
>> pve-user at pve.proxmox.com
>> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
>
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user
--
Vadim Bulst
Universität Leipzig / URZ
04109 Leipzig, Augustusplatz 10
phone: ++49-341-97-33380
mail: vadim.bulst at uni-leipzig.de
More information about the pve-user
mailing list