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

This is the command line:

virt-install –connect=qemu:///system –location=\-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: Maske:

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

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: Bcast: Maske:

This is what guest says:


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

Network is ok,, 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)

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=\-i386 –initrd-inject=$HOME/Downloads/preseed.cfg –extra-args=“netcfg/get_ipaddress= netcfg/get_netmask= netcfg/get_gateway= netcfg/get_nameservers= netcfg/disable_dhcp=true“ –name virtdebstable6 –ram=512 –disk=pool=default,size=5,format=qcow2,bus=virtio –network network=default –hvm –accelerate –vnc


Google: virtual network libvirt qemu gives:

This is 25 Chapter, overkill, but one may state, that the button „ssh easy image“ is missing definitely.      Do not understand that. It does not help me? But I am googling right now: „libvirt qemu ssh“

Google: „–initrd-inject“ virt-install preseed         –extra-args auto=true hostname=${OS} domain= url= text   MY TECH EXPERIENCES: commented link lists of others with their odyssey experiences on preceeding    this is about : Love your enemies? even: to learn loving enemies. Aha?    We couldn’t find any code matching ‚preseed‘

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“     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} netcfg/get_ipaddress= netcfg/get_netmask= netcfg/get_gateway= netcfg/get_nameservers= 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: 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.


Kommentar verfassen

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

Du kommentierst mit Deinem Abmelden / Ändern )


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


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

Google+ Foto

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

Verbinde mit %s