Community discussions

 
User avatar
richinuk
Member Candidate
Member Candidate
Topic Author
Posts: 142
Joined: Tue Jan 22, 2008 9:30 pm

Cannot get xen and virtual-ethernet to work :(

Tue Feb 24, 2009 6:19 pm

Hi All,

Anyone got an answer to this problem. I'm running 3.19 and have a VM configured and running successfully using the Centos image posted on the Wiki.

However, I'm having problems with the ethernet config. It all appears to be configured as per the wiki instructions, but the vif never goes to a "running" state. I'm using static vif in this config, but have had the same results with dynamic. I've rebooted but also no help.

What I have is this:
[admin@MikroTik] /xen> pr d
Flags: X - disabled, C - configuration-changed
 0   name="Centos" disk-images=hda:centos.img initrd="centos.initrd.rgz" kernel="vmlinuz-2.6.18-53.el5xen" kernel-cmdline="" cpu-count=1 memory=256MiB weight=256
     console-telnet-port=64000 host-shutdown-action=shutdown state=running

[admin@MikroTik] /xen interface> pr d
Flags: X - disabled, A - active
 0   virtual-machine=Centos type=static vm-mac-address=02:70:AF:6A:46:AA static-interface=vif1 dynamic-mac-address=02:A3:95:D3:5E:EA dynamic-bridge=(unknown)

[admin@MikroTik] /interface virtual-ethernet> pr d
Flags: X - disabled, R - running
 0    name="vif1" mtu=1500 mac-address=02:90:2C:DC:0C:DD arp=enabled
Now, I was concerned about that "dynamic-bridge=(unknown)", (this was there by default), so I reset it to "none", but same result.

Any help?

Rich
 
User avatar
richinuk
Member Candidate
Member Candidate
Topic Author
Posts: 142
Joined: Tue Jan 22, 2008 9:30 pm

Re: Cannot get xen and virtual-ethernet to work :(

Tue Feb 24, 2009 6:22 pm

Actually, as I'd finished writing the above, I found the fix, but thought I'd post it anyway incase it is useful to others.

In the Centos image supplied, the /etc/modprobe.conf needs to be modified to use the xennet driver.

So, as supplied with the image, /etc/modprobe.conf looks like this:
alias eth0 ne2k-pci
alias scsi_hostadapter ata_piix
And it needs changing to this:
alias eth0 xennet
alias scsi_hostadapter ata_piix
After this update, I did a "modprobe eth0" and it all came up and showed as running in MT.

Rich
 
Abbenism
just joined
Posts: 2
Joined: Tue Dec 22, 2009 3:42 pm

Re: Cannot get xen and virtual-ethernet to work :(

Tue Dec 22, 2009 4:18 pm

unable to modify /etc/modprobe.conf

Who is online

Users browsing this forum: MSN [Bot] and 164 guests