Bug#980528: debian-installer: net-install impossible because link is always reset
On Wed, Jan 20, 2021 at 04:18:52PM +0000, etkaar wrote:
> Moin Geert,
> thanks for helping!
> > ???
> > (the triple question marks are for expressing my "Realy?",
> > please elaborate what is going on.
> > Yes, my request could be recieved as "vague",
> > do know that is being transmitted as "open")
> Do you refer to the IPv4 addresses starting with two 255 groups?
> It was only an example, not the actual notation I used.
And the example introduced confusion.
> > And after configuring is actual traffic possible?
> Yes. And once I go back to the installer, the link is down again and
> I am impossible to use the network.
> > If so, provide some proof.
> Here is a proof, I made a video: https://youtu.be/9NOQAf6LOdo
I have seen the video. I have the succesfull ping.
Also seen that installer menu is used.
Thing I would have done, is switch to another terminal
As far as I know does have QEMU support for sending ALT-F2
and ALT-F1. But there is no ALT-F2 on serial line connections.
Anyway, there is some networking possible.
(my conclusion follows)
> > > #
> > > # libvirt VM configuration
> > > #
> > > <interface type='direct'>
> > > <mac address='52:54:00:5c:d3:e7'/>
> > > <source dev='eth0' mode='vepa'/>
> > I'm not sure if that is correct.
> Why do you think that?
Mostly for keeping options on what to explore open.
> I use it with all my VMs.
Acknowledge on that.
Do know that we should avoid comparing apples and oranges.
Thing I slightly want to warn about, is that debian-installer
not the very same thing as a full blown system.
> > > #
> > > # Preseed (which also does not work)
> > > #
> > > d-i netcfg/choose_interface select ens1
> > > d-i netcfg/disable_autoconfig boolean true
> > >
> > > d-i netcfg/get_ipaddress string 255.255.8.243
> > > d-i netcfg/get_netmask string 255.255.255.248
> > > d-i netcfg/get_gateway string 255.255.8.1
> > > d-i netcfg/get_nameservers string 184.108.40.206
> > > d-i netcfg/confirm_static boolean true
> > >
> > The "preseed stuff" is for later.
> What do you mean by later?
For getting focus on the network problem.
d-i without any preseed stuff should be able to do DHCP
> I would think that the network configuration also (and at least)
> applies for the installer.
> Please find also attached the virt-install command I use at the bottom
> (if I use a preseed or not, makes no difference).
> Kind Regards,
> # virt-install command
> virt-install \
> --virt-type kvm \
> --name $VM_NAME \
> --ram 2048 \
> --vcpus 2 \
> --disk path=/var/lib/libvirt/images/$VM_NAME.qcow2,size=24 \
> --os-type linux \
> --os-variant debian10 \
> --graphics none \
> --console pty,target_type=serial \
> --location /var/lib/libvirt/images/.os/debian-10.7.0-amd64-netinst.iso \
> --network type=direct,source=eth0,source_mode=vepa,model=e1000 \
> --initrd-inject=/home/kvm/conf/preseed.cfg \
> --extra-args 'console=ttyS0,115200n8'
I can't spot any holes it (due lack of indepth knowlegde)
My conclusion: Some how doesn't detect d-i link on the NIC
Advice: Further debugging
My approach would be:
* Temporary drop on the wish of a serial console
* no preseed stuff yet
* `virt-install` with having multiple VT 
* install in VT-1, watch logs in other VT
* have in another VT a shell for the `ip` commands
You probably want the syslog of d-i outside the VM
for more convinend analysis (pardon my english)
Silence is hard to parse