Ubuntu 18.04 - confusing install with Virtualmin

8 posts / 0 new
Last post
#1 Thu, 11/07/2019 - 11:38

Ubuntu 18.04 - confusing install with Virtualmin

I decided after having issues with Centos 7 and Kernel 4.7 (needed for AMD Ryzen support) to use Ubuntu 18.04 which uses the Kernel 5.

So, fresh minimal install with gui of 18.04, Install Virtualmin immediately (no issues reported, install clean).

So far ...

1/ Nothing shows in Network Interfaces all blank, but interfaces do show in "active". Something to do with VirtualMin (still) not using Netplan, found instructions on turning Ubuntu back to "old method" but they flew over my head.

2/ Happens in Centos and Ubuntu. When running the Virtualmin install check, expects in resolv.conf. This of course now gets overwritten every restart, and vanishes. Where are you supposed to set this as a permanent entry for resolv.conf?

3/ (after install) Centos 7 - Disk temps all appear on dashboard, Ubuntu - they don't.

4/ This is probably more Ubuntu than Virtualmin but understanding the setup for Apache is so confusing compared to Centos. I'm surprised that Virtualmin doesn't use the same "setup" for both systems.


Thu, 11/07/2019 - 12:06
scotwnw for Ubuntu netplan should be listed in /etc/netplan/50-cloud-init.yaml

I only edit netplan config manually, haven't tried to edit it webmin/virtualmin yet. But doing it manually works. I install 18.04, set netplan config, update, install virtmin, then be sure config wasnt changed by virtmin. Should work.

Here a working 50-cloud-init.yaml.

    version: 2
            addresses: ['xxx.xxx.xxx.186/28','yyyy:yyyy:y:yy:yyy:yyyy:yyyy:yyyy/64']
            gateway4: xxx.xxx.xxx.177
            gateway6: yyyy:yyyy:yyyy:3a::1
                addresses: [,'2606:4700:4700::1111','2606:4700:4700::1001',]

Obviously edit IPs to match your network. Note spacing must be spaces, not tabs. And hierarchy matters, like addresses lines must be indented more than the category above them. Quotes or apostrophes must be around ipv6 addresses.

For ubuntu disk temps, you have to install smartmontools. Its not installed by default. 'apt install smartmontools'

Thu, 11/07/2019 - 15:04

Scotwnw ... thanks for the reply, and so quick! Here's the issue. I'm not a sys-admin person, I have a geeky side that runs their own server (and router for inside to outside) from home for my photograph web sites. Up to now I have used Virtualmin totally to configure my server (exactly what a good "web panel" should do!). (I did do some research before writing my frustration (which has grown) and all this has been known for years, but nothing programmatically changed for Ubuntu.) Sadly when I read "set netplan config" I don't really understand what you mean. This is me, not you :) .I've looked through the etc files and when I find /etc/netplan/01-network-manager-all.yaml all it contains is ....

Let NetworkManager manage all devices on this system


version: 2

renderer: NetworkManager

However ....

/etc/NetworkManager/system-connections I find my internal / external interfaces... external containing


id=Outside World




















which has all the correct information in it. (Why do "they" make this so confusing!). Do I have two network managers loaded by default? NO, because both those files are Network Manager "owned" files, supposedly. How do I know what Virtualmin will /will not use! And to be honest, how do I even know that Virtualmin will use the .yaml file ... (Did I mention how much I dislike XML :) )

Rant Over!

p.s. Thanks for the tip on disk temps. My reference was why automatic in Centos, but not in Ubuntu.

p.p.s ... and I'm sure this has triggered the issue that I cannot restore a single virtual server and always have the message "Restore failed : Failed to work out externally visible IP address" ... even though

Host Addresses Yes apache-web-server.twin-peaks-video.com , apache-web-server

Network interfaces (active) reports

enp4s0 Ethernet fe80::76d0:2bff:fe34:b508 Up

enp7s0 Ethernet fe80::ed65:6a2c:e09f:f2c7 Up

lo Loopback ::1 Up

Dashboard reports

System hostname apache-web-server.twin-peaks-video.com (

Operating system Ubuntu Linux 18.04.3

Check Configuration reports

Default IPv4 address for virtual servers is

But if I try to restore a virtual server I get the message

Starting restore of 1 domains from local file /home2/nigel2/VirtualMin_Backup/Sunday-October-20-2019/twin-peaks-video.com.tar.gz ..

Extracting backup archive file .. .. done

Re-creating virtual server twin-peaks-video.com ..

Restore failed : Failed to work out externally visible IP address

If I set "Ignore virtual server creation warnings?" Virtualmin posts

Re-creating virtual server twin-peaks-video.com ..

Restore failed : Failed to work out externally visible IP address

And exactly the same thing happens if I set in Restore Virtual Server >> Source and Format >> "Original IP address"

I thought that Virtualmin supports Ubuntu 18.04 .... but sadly this just doesn't seem to be true.

Fri, 11/08/2019 - 10:12

OH. So this is a desktop Ubuntu 18.04 install if you have network settings in etc/Networkmanager something, right? Welcome to even more confusion. The desktop uses a different manager for networking than the server version. Ignore everything I said. It doesn't apply to desktop ubuntu.

But this would explain the confusion in virtualmin, its not geared toward desktop installs. it expects network info to be in /etc/network/interfaces for 16.04 and lower, and in /etc/netplan/something*.xml for 18.04 plus. Which is where that info is on server installs.

If networking is working fine, Im sure its just a matter of putting proper settings into virtualmin manually. Should be able to tell virtualmin the default interface and default ip, instead of it having it try and guess. But I think you'll be chasing problems forever if this is a desktop install. Especially with all the networking changes that happened starting in 18.04.

Fri, 11/08/2019 - 11:48


That explains everything, and my (and Virtualmins) total confusion on this. It's a great shame that the Linux developers keep changing from stuff that "just works". I looked at how the Ubuntu Desktop was configuring the interfaces and that was perfect, I could read and fully understand. This new method using XML format is just horrible. There's something intrinsically wrong with a design that if you miss a "space" so things are not aligned it will not work. And not being able to recognize a "tab", sorry, I've hurt programmers for less!

What this does not explain is why all of Webmin and Virtualmin knows exactly what my outside IP address is (going to be) , but everytime I try to restore a server I get the blasted message "Restore failed : Failed to work out externally visible IP address" ... no matter what setting I use.

I suppose really this is a bug as well, as Virtualmin should have warned me at the start of the process during install.

I'll download Ubuntu Server install and see if I can get that working.

Much thanks for all your help..... Nigel.

Sun, 11/10/2019 - 13:58

You can always add a gui interface to the ubuntu server edition, however one has to ask, do you need virtualmin if running gnome?

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin


Sun, 11/10/2019 - 14:04 (Reply to #6)

How Gnome allow you to create virtual servers and alter their settings? If allowing you to edit files - vi or vim allow you to the same. In which case you might as well edit\do everything manually.

Sun, 11/10/2019 - 17:17

I have added a lightweight GUI to run firefox / virtualmin. (After rebuilding for Ubuntu Server 18.04 LTS..)

The main reason for using Virtualmin is that everything is under one roof, and most importantly transferring all the web sites / email / etc over. And one has to say Virtualmin does a good job, even though I'm going from Centos to Ubuntu.

The only thing that has really surprised me is that Desktop 18.04 using kernel 5.0 but Server 18.04 uses kernel 4.15 ... but fortunately that supports AMD Ryzen

Topic locked