MAC address visibility

Hello again, just creating another separated issue as you asked, now about MAC address.

It's similar to my bug about VNC password. Usually ISP set IP address according to your MAC address but you are not able to see machine's MAC address anywhere in UI or change it. It's in configuration file and would be good to at least see it in system details.



The MAC address is actually visible already - just go to Resources -> Network Interfaces and click on eth0.

Hello again... I hope you don's start to hate me... I think I don't get this right or maybe there is something wrong in my configuration.

The situation is like this - first system I created was Debian Lenny KVM instance with base OS (original Virtualmin template). There I can see in System Configuration / Network Interfaces the eth0 interface and it's MAC address. This is ok, but...

Then I have created second system (empty) and there is System Configuration / Network Interfaces but no interface inside. And more strange is that when I startup this machine the System Configuration option disappears completely. I created one more empty machine with the same result.

After this I tried debian template again (so there were two empty based machines and one debian already) and there is yet another behaviour. The System Configuration is not there when system is powered off (in previous case it was not there when powered on). And when I start it up the system the System Configuration / Network Interfaces is back there and even with eth0 interface.

For me it seems now more like a bug but maybe there is some explanation for this behaviour.

That looks like a separate issue ...

On this problem system, what kind of disk partitioning / layout did you use? If you put the root disk inside LVM or RAID, Cloudmin will not be able to access /etc/network/interfaces to find the IPs for your network interfaces.

This is just testing environment, so no RAID or LVM. Just simple Ubuntu 10.04.2 x64 installation on ext4 single partition.

If you shut down the VM, the SSH into the Cloudmin master and run :

vm2 download-file --host your-ubuntu-system --source /etc/network/interfaces --stdout

what does it output?

If you shut down the VM, the SSH into the Cloudmin master and run :

vm2 download-file --host your-ubuntu-system --source /etc/network/interfaces --stdout

what does it output?

root@cloud1:/home/isshou# vm2 download-file --host --source /etc/network/interfaces --stdout
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet manual

auto br0
iface br0 inet static
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off

Ok, that explains it ... Cloudmin gets confused when br0 is used instead of eth0.

Any particular reason why you are using a bridge interface within a VM?

So... when I install Cloudmin on clean system it automatically creates br0 bridge, when there is eth0 with static IP. If eth0 is assigned by DHCP, there is warning message informing bridge cannot be set up and then I set it up according to this documentation:

For specific WM I didn't assign any interface. It's probably set in KVM Host Settings (bridge is set to any there).

So it means bridge is not necessary? Anyway I will try it again without bridge.

Sorry, I meant for the --host flag to be followed by the name of your VM.

Also, it should be shut down before you run this ..

The bridge is necessary on the host system for KVM networking to work.

Oh ok... so I found the problem probably. The response for the command you wrote is

ERROR: SSH logins are not available

so I suppose it detects the netword card settings directly from the VM (I didn't know this). Probably when I set SSH connection correctly it will work. I will try that tomorrow. Thank for help.

And if I see it right... it probably won't work for Windows guests?

No, this won't work for Windows guests. Currently (for better or worse) Cloudmin assumes that the network configuration within the VM is the authorative source of what network interfaces should exist..

I tried it on empty Linux guest with configured SSH and I was able to see the interface. Anyway I think it would be good to show the MAC address somwhere for non-SSH guests but it's definitely not necessary. I can find it in configuration file. So I think you can close this issue (I won't reopen it again :) ). Thanks for help.