Submitted by Isshou on Sun, 03/13/2011 - 15:52
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.
Status:
Active
Comments
Submitted by JamieCameron on Sun, 03/13/2011 - 16:19 Comment #1
The MAC address is actually visible already - just go to Resources -> Network Interfaces and click on eth0.
Submitted by Isshou on Mon, 03/14/2011 - 12:35 Comment #2
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.
Submitted by JamieCameron on Mon, 03/14/2011 - 12:52 Comment #3
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.
Submitted by Isshou on Mon, 03/14/2011 - 13:12 Comment #4
This is just testing environment, so no RAID or LVM. Just simple Ubuntu 10.04.2 x64 installation on ext4 single partition.
Submitted by JamieCameron on Mon, 03/14/2011 - 13:18 Comment #5
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?
Submitted by JamieCameron on Mon, 03/14/2011 - 13:19 Comment #6
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?
Submitted by Isshou on Mon, 03/14/2011 - 13:31 Comment #7
root@cloud1:/home/isshou# vm2 download-file --host cloud1.isshou.cz --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
address 192.168.0.248
netmask 255.255.255.0
broadcast 192.168.0.255
network 192.168.0.0
gateway 192.168.0.254
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
Submitted by JamieCameron on Mon, 03/14/2011 - 13:47 Comment #8
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?
Submitted by Isshou on Mon, 03/14/2011 - 14:01 Comment #9
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:
http://www.virtualmin.com/documentation/cloudmin/virtualization/kvm
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.
Submitted by JamieCameron on Mon, 03/14/2011 - 15:06 Comment #10
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.
Submitted by Isshou on Mon, 03/14/2011 - 16:28 Comment #11
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?
Submitted by JamieCameron on Mon, 03/14/2011 - 16:42 Comment #12
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..
Submitted by Isshou on Tue, 03/15/2011 - 14:13 Comment #13
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.