Status quo: locked out after preseed

(10.6.16: hint before the beginning found a solution for it (; see: post „the preseed solution then“)

Problem situation of a first project:

Result: After the below preseeding I do not find a system, where I find the guest controlled by a ssh connection, like I would expect that

This is the preseed.cfg http://paste.ubuntu.com/15828694/

This is the command line:

virt-install –connect=qemu:///system –location=http://ftp.us.debian.org/debian/dists/stable/main/installer\-i386 –initrd-inject=$HOME/Downloads/preseed.cfg –extra-args=“auto“ –name virtdebstable3 –ram=512 –disk=pool=default,size=5,format=qcow2,bus=virtio –network=bridge:virbr0 –hvm –accelerate –vnc &

This is the ip-network on the host I found after install  (I do not remember by who it was configured):

# ifconfig |grep -v „inet6\|UP\|RX\|TX\|Kol“
eth0 Link encap:Ethernet Hardware Adresse 18:03:73:87:af:2e

lo Link encap:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0

virbr0 Link encap:Ethernet Hardware Adresse fe:54:00:66:47:6c
inet Adresse:192.168.122.1 Bcast:192.168.122.255 Maske:255.255.255.0

vnet0 Link encap:Ethernet Hardware Adresse fe:54:00:ff:c4:4f

vnet1 Link encap:Ethernet Hardware Adresse fe:54:00:66:47:6c

vnet2 Link encap:Ethernet Hardware Adresse fe:54:00:bb:82:ea

wlan0 Link encap:Ethernet Hardware Adresse ac:72:89:84:5d:c3
inet Adresse:192.168.178.41 Bcast:192.168.178.255 Maske:255.255.255.0

This is what guest says:

Test1:

try running cl without inject=$HOME/Downloads/preseed.cfg:

Network is ok,  https://www.redhat.com/archives/virt-tools-list/2016-April/msg00036.html, Setting PermitRootLogin to Yes

„interface standard between virt-install and d-i preseeding for the present use case?“

Questions: „Is there a requirements interface standard between virt-install and d-i preseeding for the present use case?“

-why is there no  existing, proper preseeding script, if there is even a  –initrd-inject built in virt-install?

Test 2: (failed, same as Test0)

http://paste.ubuntu.com/15874618/

d-i netcfg/dhcp_options select Retry network autoconfiguration

d-i netcfg/choose_interface select eth0

Result: same as Test 0.

Test 3:(failed, same as Test0)

virt-install –connect=qemu:///system –location=http://ftp.us.debian.org/debian/dists/stable/main/installer\-i386 –initrd-inject=$HOME/Downloads/preseed.cfg –extra-args=“netcfg/get_ipaddress=192.168.122.2 netcfg/get_netmask=255.255.255.0 netcfg/get_gateway=192.168.122.1 netcfg/get_nameservers=192.168.122.1 netcfg/disable_dhcp=true“ –name virtdebstable6 –ram=512 –disk=pool=default,size=5,format=qcow2,bus=virtio –network network=default –hvm –accelerate –vnc

preseed.cfg http://paste.ubuntu.com/15883394/

Google: virtual network libvirt qemu gives:

http://wiki.libvirt.org/page/VirtualNetworking

http://wiki.libvirt.org/page/Networking#Guest_configuration

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Deployment_and_Administration_Guide/part-Deployment.html

This is 25 Chapter, overkill, but one may state, that the button „ssh easy image“ is missing definitely.

http://wiki.libvirt.org/page/SSHSetup      Do not understand that. It does not help me? But I am googling right now: „libvirt qemu ssh“

Google: „–initrd-inject“ virt-install preseed

https://gist.github.com/EmmanuelKasper/5861319         –extra-args auto=true hostname=${OS} domain= url=http://subsole.org/static/misc/debian-preseed.cfg text

https://garfield001.wordpress.com/2012/05/31/how-to-create-a-preseed-file-for-debian-squeeze-6-0-5/   MY TECH EXPERIENCES: commented link lists of others with their odyssey experiences on preceeding

http://blogs.cae.tntech.edu/mwr/2007/04/17/unattended-debian-installations-or-how-i-learned-to-stop-worrying-and-love-the-preseedcfg/    this is about : Love your enemies? even: to learn loving enemies. Aha?

https://github.com/virt-manager/virt-manager/search?utf8=%E2%9C%93&q=preseed    We couldn’t find any code matching ‚preseed‘

https://github.com/virt-manager/virt-manager/blob/c92507baea66584e2e6391052f0f95c891d29e38/tests/clitest.py

c.add_valid(–location %(TREEDIR)s –initrd-inject virt-install –extra-args ks=file:/virt-install) # initrd-inject

So there is a file somewhere with name impossible to find: „virt-install“

http://www.andybotting.com/automating-debian-installs-with-preseeding     at September 18th, 2009. „I don’t want to set an IP address in the file as it’s going to be used to build lots of machines“

--extra-args="auto=true interface=eth0 hostname=${NAME} domain=vpac.org netcfg/get_ipaddress=192.168.1.2 netcfg/get_netmask=255.255.255.0 netcfg/get_gateway=192.168.1.1 netcfg/get_nameservers=192.168.1.1 netcfg/disable_dhcp=true url=http://webserver/preseed.cfg"

d-i netcfg/choose_interface select eth0
d-i netcfg/disable_dhcp boolean true
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/confirm_static boolean true

This he got „libvirt virtual networking“ setup?

Debug methods, preseed methods:

  • default: rudimentary trial and error, well it is comic to ask for best practice if the governing practice hardly can not be worse, one might smile with stoicism:
    • you take a template from the internet, official or not official,
    • each run take an hour
    • you add entries for questions or any other misbehavior where it fails until you got the result aimed for, each test needs hours. This is health threatening development practice, as a test run should long milliseconds: He says it: https://www.youtube.com/watch?v=2lrRix3PM4k do not know exactly at which minute. So one can hold fast that all these oudeises around have not hit that ground: that the user is probably set out to some unbearable truth, something that is critical to change and claimable to find a way for. It is better oudeis‘ duty to claim that – put it to the feature request list …
  • well, found
### Preseeding other packages
# Depending on what software you choose to install, or if things go wrong
# during the installation process, it's possible that other questions may
# be asked. You can preseed those too, of course. To get a list of every
# possible question that could be asked during an install, do an
# installation, and then run these commands:
#   debconf-get-selections --installer > file
#   debconf-get-selections >> file


-so one can guess on the upcoming questions and their answer

-on top of present non preceeding but correct os installation, one can look up promising preseed options

debconf-get-selections –install>1;debconf-get-selections >>1; cat 1|grep -v exim4 |grep -A2 „eth0\|netcfg\|hostname“|wc
0 0 0

root@debian:~# debconf-get-selections –install>1;debconf-get-selections >>1; cat 1|grep -v exim4 |grep „eth0\|netcfg\|hostname\|d-i“|grep -v „keyboard\|language\|country\|language“|wc
0 0 0

in other words: we will find anything but network configuration template within these thousand lines.

debconf-get-selections –install>1;debconf-get-selections >>1; cat 1|wc
770 10102 109616


Aim: What ever iptables hack I choose, I want to have straight ssh key access from the host.

Advertisements

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

WordPress.com-Logo

Du kommentierst mit Deinem WordPress.com-Konto. Abmelden / Ändern )

Twitter-Bild

Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )

Facebook-Foto

Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ Foto

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s