Re: [DNG] Assigning a specific subnet and address to a Devuan Beowulf Qemu guest

2021-02-16 Thread Ralph Ronnquist via Dng
On 16/02 07:55, Steve Litt wrote:
> 
> On Tue, 16 Feb 2021 20:29:46 +1100
> Ralph Ronnquist via Dng  wrote:
> 
> > On 16/02 03:24, Steve Litt wrote:
> > > Hi all,
> > > 
> > > My ultimate goal is to have a Devuan VM guest on my Void Linux Daily
> > > Driver Desktop (DDD) that acts like just another metal computer on
> > > my LAN at 192.168.0.0/24. I want it to have address 192.168.0.66.
> > > I've tried to do this sporadically over the past 2 years, never
> > > with success. ...
> > > 
> > > I tried setting the VM guest's /etc/network/interfaces to static
> > > with address 192.168.0.66, with the gateway, netmask etc set
> > > accordingly, but after doing that, ip addr on the VM showed no IP
> > > address at all.  
> > 
> > It all looks fine, and static setup should work. Possibly you left out
> > the "auto eth0" or "allow-hotplug eth0" line?
> 
> Thanks Ralph,
> 
> I had left them both out, but putting them in didn't change the
> symptom. I tried with only auto eth0, and that didn't change the
> symptom either.

Peculiar :)

Yes, "auto eth0" would be right for telling ifupdown that the
interface should be brought up during (post-pivot) boot, and all in
all /etc/network/interfaces would have the following as the only
configruations for eth0:

auto eth0
iface eth0 inet static
address 192.168.0.66/24
gateway 192.168.0.1

The previous setting that gives VM 10.0.2.15 would have been caused by
a DHCP configuration, like:

auto eth0
iface eth0 inet dhcp

or by having some other networking tool such as wicd running. One way
or the other it would have started a dhcp client that requests an
address assignment via UDP broadcast, and something (either a dhcp
service on DDD or on the network outside DDD) responded to offer
10.0.2.15 for the VM.

If that client was a networking tool such as wicd then possibly that
is still running and it now competes about the confgiuration of eth0
with ifupdown. Usually though it (wicd) would be more insistant and
eventually take over, so you should then end up with a 10.0.2.0/24
address eventually, with some period of an unconfigured network.

Ralph.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Assigning a specific subnet and address to a Devuan Beowulf Qemu guest

2021-02-16 Thread g4sra via Dng
‐‐‐ Original Message ‐‐‐
On Tuesday, February 16, 2021 12:55 PM, Steve Litt  
wrote:

> On Tue, 16 Feb 2021 20:29:46 +1100
> Ralph Ronnquist via Dng dng@lists.dyne.org wrote:
>
> > On 16/02 03:24, Steve Litt wrote:
> >
> > > Hi all,
> > > My ultimate goal is to have a Devuan VM guest on my Void Linux Daily
> > > Driver Desktop (DDD) that acts like just another metal computer on
> > > my LAN at 192.168.0.0/24. I want it to have address 192.168.0.66.
> > > I've tried to do this sporadically over the past 2 years, never
> > > with success. ...
> > > I tried setting the VM guest's /etc/network/interfaces to static
> > > with address 192.168.0.66, with the gateway, netmask etc set
> > > accordingly, but after doing that, ip addr on the VM showed no IP
> > > address at all.
> >
> > It all looks fine, and static setup should work. Possibly you left out
> > the "auto eth0" or "allow-hotplug eth0" line?
>
> Thanks Ralph,
>
> I had left them both out, but putting them in didn't change the
> symptom. I tried with only auto eth0, and that didn't change the
> symptom either.
>
> Thanks,
>
> SteveT
>
> Steve Litt
> Autumn 2020 featured book: Thriving in Tough Times
> http://www.troubleshooters.com/thrive
>
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

I gave up doing things this way as Qemu kept changing under me, voiding my 
scripts. I now use 'virt-manager' relatively painlessly.

That IP may have been issued by a Qemu dhcp server.

The first step is to confirm Qemu is not messing with stuff it shouldn't... 
Spin up the VM and confirm that your host network settings have not been 
altered/added to. You must do this when the VM is running.









___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Assigning a specific subnet and address to a Devuan Beowulf Qemu guest

2021-02-16 Thread Steve Litt

On Tue, 16 Feb 2021 20:29:46 +1100
Ralph Ronnquist via Dng  wrote:

> On 16/02 03:24, Steve Litt wrote:
> > Hi all,
> > 
> > My ultimate goal is to have a Devuan VM guest on my Void Linux Daily
> > Driver Desktop (DDD) that acts like just another metal computer on
> > my LAN at 192.168.0.0/24. I want it to have address 192.168.0.66.
> > I've tried to do this sporadically over the past 2 years, never
> > with success. ...
> > 
> > I tried setting the VM guest's /etc/network/interfaces to static
> > with address 192.168.0.66, with the gateway, netmask etc set
> > accordingly, but after doing that, ip addr on the VM showed no IP
> > address at all.  
> 
> It all looks fine, and static setup should work. Possibly you left out
> the "auto eth0" or "allow-hotplug eth0" line?

Thanks Ralph,

I had left them both out, but putting them in didn't change the
symptom. I tried with only auto eth0, and that didn't change the
symptom either.

Thanks,

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Devuan Beowulf 3.1.0 point release

2021-02-16 Thread fsmithred via Dng
On 2/16/21 1:43 AM, spiralofhope wrote:
> On Sun, 14 Feb 2021 20:36:58 -0500
> fsmithred via Dng  wrote:
> 
>> Devuan Beowulf 3.1.0 point release
> 

> 
> However,
> 
> devuan_beowulf_3.1.0_amd64_minimal-live.iso does NOT work with
> ventoy-1.0.35 (installed via Windows 10).
> 
> I get:
> 
>> No bootfile found for UEFI!
>> Maybe the image does not support X64 UEFI!
> 
> I assume it's working as intended.  :)
> 
> 

Yes, the minimal-live is bios-boot only. I made an unofficial uefi
minimal-live iso for 3.0.0 but that doesn't seem to be working now. I'll
have to try again.

fsmithred

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Assigning a specific subnet and address to a Devuan Beowulf Qemu guest

2021-02-16 Thread Ralph Ronnquist via Dng
On 16/02 03:24, Steve Litt wrote:
> Hi all,
> 
> My ultimate goal is to have a Devuan VM guest on my Void Linux Daily
> Driver Desktop (DDD) that acts like just another metal computer on my
> LAN at 192.168.0.0/24. I want it to have address 192.168.0.66. I've
> tried to do this sporadically over the past 2 years, never with success.
> ...
> 
> I tried setting the VM guest's /etc/network/interfaces to static with
> address 192.168.0.66, with the gateway, netmask etc set accordingly,
> but after doing that, ip addr on the VM showed no IP address at all.

It all looks fine, and static setup should work. Possibly you left out
the "auto eth0" or "allow-hotplug eth0" line?

Ralph.
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


[DNG] Assigning a specific subnet and address to a Devuan Beowulf Qemu guest

2021-02-16 Thread Steve Litt
Hi all,

My ultimate goal is to have a Devuan VM guest on my Void Linux Daily
Driver Desktop (DDD) that acts like just another metal computer on my
LAN at 192.168.0.0/24. I want it to have address 192.168.0.66. I've
tried to do this sporadically over the past 2 years, never with success.

Here's how far I've gotten: I have a shellscript called upnet.sh that
sets up networking on my DDD, which has no /etc/network/interfaces and
instead requires commands to set up the network. It also sets up
network bridge br0 and tap tap0. It is shown immediately below:


#!/bin/sh

# MAKE SURE IP FORWARDING IS ENABLED
echo 1 > /proc/sys/net/ipv4/ip_forward

# DEAL WITH HOSTNAME AND LOCALHOST
hostname=`grep -v "^\s*#"  /etc/hostname | head -n1`
ip link set dev lo up

# UNDO ANY POSSIBLE STUFF FROM PREVIOUS UPNET.SH
ip link set dev tap0 down
brctl delif br0 tap0
ip link set dev br0 down
ip addr del 192.168.0.102/24 dev br0
ip addr del 192.168.0.2/24 dev br0
brctl delbr br0
ip link set dev enp40s0 down
ip addr del 192.168.0.102/24 dev enp40s0
ip addr del 192.168.0.2/24 dev enp40s0

# BRING UP enp40s0
ip link set dev enp40s0 up

### GET br0 UP AND RUNNING WITH RIGHT IP ADDRESSES
ip link add name br0 type bridge
ip link set dev enp40s0 master br0
ip addr add 192.168.0.2/24 dev br0
ip addr add 192.168.0.102/24 dev br0
ip link set dev br0 up
ip route add default via 192.168.0.1

### DO THE TUN/TAP STUFF
ip tuntap add tap0 mode tap
brctl addif br0 tap0
ip link set dev tap0 up


The ip link, ip addr, and ip route commands shows this works perfectly
on my DDD.

The shellscript that runs my Devuan VM follows:



#!/bin/sh

dvddir=/scratch/linuxinst/devuan/devuan_beowulf/installer-iso

qemu-system-x86_64 -m 1024 \
-hda beowulf.disk \
-cdrom $dvddir/devuan_beowulf_3.0.0_amd64-desktop.iso \
-boot c -ctrl-grab  -cpu max  -vga std  -enable-kvm  \
-net nic,model=virtio,macaddr=00:00:00:00:00:01 -net tap,ifname=tap0


The resulting Devuan VM guest works just fine, can ssh to my LAN
computers, can ssh to my Internet host, but it's still 10.0.2.15 with
default route 10.0.2.2. I want it 192.168.0.66 with default route
192.168.0.1.

I tried setting the VM guest's /etc/network/interfaces to static with
address 192.168.0.66, with the gateway, netmask etc set accordingly,
but after doing that, ip addr on the VM showed no IP address at all.

I feel like I'm closer than I've ever been before, but I'm not there
yet. How do I set up my Devuan VM guest to 192.168.0.66, with proper
gateway, etc, so it can be just another computer on my 192.168.0.0/24
LAN?

Thanks,

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] Touchpad on Thinkpad T580 stops working sometimes

2021-02-16 Thread Steve Litt

On Mon, 15 Feb 2021 20:25:33 +0400
Dimitri Minaev via Dng  wrote:

> Hi,
> 
> I run Chimaera Devuan on Thinkpad T580. Periodically, about once a
> day, the touchpad stops responding to all actions. It doesn't scroll
> or move the pointer. During these blackouts dmesg doesn't display any
> messages and I still can use the trackpoint. After a short period of
> time, around 1 minute, the touchpad becomes active again.
> 
> I would be grateful for any ideas that might help solve the issue.

Here's a workaround until you find the solution:

Once or twice in the past month I've posted a shellscript to toggle the
synaptics touchpad on and off. Connect that to a convenient hotkey via
your window manager, and every time it turns itself off, toggle it back
on.

This lets you continue working while you seek out the root cause.

SteveT

Steve Litt 
Autumn 2020 featured book: Thriving in Tough Times
http://www.troubleshooters.com/thrive
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng