[libvirt] FW: macvtap not working on rhel 6.1 x86 machine

2011-12-15 Thread Amit Tewari



Hi all,

 

My test environment

Host os=rhel6.1 x86 machine

Guest os = rhel6.1

Libvirt=0.8.7

Kvm hypervisor

 

I am creating macvtap interface on host machine 

ip link add link eth1 name macvtap0 type macvtap

ip link set macvtap0 up

 

ip link show macvtap0

25: macvtap0@eth1: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc
pfifo_fast state UNKNOWN qlen 500

link/ether a2:70:4e:05:4a:4e brd ff:ff:ff:ff:ff:ff

 

 

Now when use arp -a to check macvtap0 hardware address entry it shows

? (10.0.7.1) at incomplete on macvtap0

 

 

If I assign ip address to macvtap and then ping on network , it says
destination not reachable

ping 10.0.7.1 -I macvtap0

 

PING 10.0.7.1 (10.0.7.1) from 10.0.1.61 macvtap0: 56(84) bytes of data.

From 10.0.1.61 icmp_seq=2 Destination Host Unreachable

From 10.0.1.61 icmp_seq=3 Destination Host Unreachable

 

 

If I use tcpdump -I eth1 it shows packets

14:42:39.967158 ARP, Request who-has 10.0.7.1 tell 10.0.7.4, length 28

14:42:39.967257 ARP, Reply 10.0.7.1 is-at 00:16:35:65:b5:1e (oui
Unknown), length 46

14:42:40.967167 ARP, Request who-has 10.0.7.1 tell 10.0.7.4, length 28

14:42:40.967229 ARP, Reply 10.0.7.1 is-at 00:16:35:65:b5:1e (oui
Unknown), length 46

 

So macvtap0 is unknown interface. Request does go to eth1 inteface.

 

Please let me know redhat 6.1 support macvtap or not?...

 

I have to use it for kvm virtual machine..

 



DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
---

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] FW: macvtap not working on rhel 6.1 x86 machine

2011-12-15 Thread Amit Tewari
hi,

i want the kvm guest machine to connect to network using macvtap..
I tried this vepa mode it is also not working.

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.8.7

Kvm hypervisor

 

I have made this entry in guest xml file

 

interface type='direct'

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03' 
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

 

Following macvtap0 is created on host and is shown below

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq state 
UNKNOWN qlen 500

link/ether 52:54:00:55:AE:B5brd ff:ff:ff:ff:ff:ff

 

but when the guest is up and I try to perform

 

# ifup eth0

 

eth0 has same mac address as that of macvatap0 that is  52:54:00:55:AE:B5

 

due to this guest is not able to get dhcp address nor static ip address is 
working. 

 

Please let me know how macvtap work on kvm.




-Original Message-
From: Gerhard Stenzel [mailto:gsten...@linux.vnet.ibm.com] 
Sent: Thursday, December 15, 2011 3:47 PM
To: Amit Tewari
Cc: libvir-list@redhat.com
Subject: Re: [libvirt] FW: macvtap not working on rhel 6.1 x86 machine

On Thu, 2011-12-15 at 15:20 +0530, Amit Tewari wrote:
 
 
 Hi all,
 
 
 
 My test environment
 
 Host os=rhel6.1 x86 machine
 
 Guest os = rhel6.1
 
 Libvirt=0.8.7
 
 Kvm hypervisor
 

Hi,
maybe it would help if you try to explain first, what you are trying to
achieve, what your setup looks like (including your DHCP setup and
switch infrastructure).

Here (http://libvirt.org/formatdomain.html) you will find the following
xml sample, which works: 
...
  devices
interface type='direct'
  source dev='eth0' mode='vepa'/
/interface
  /devices
  ...

This will connect your VM directly to the same network as eth0. Please
be aware that, depending on your switch configuration (supports hair pin
mode or not), your host might not be able to talk to your VM and vice
versa.

-- 
Best regards, 

Gerhard Stenzel, 
---
IBM Deutschland Research  Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
---

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] FW: macvtap not working on rhel 6.1 x86 machine

2011-12-15 Thread Amit Tewari
Hi,
Can you please tell me what step iam missing?

-Original Message-
From: Gerhard Stenzel [mailto:gsten...@linux.vnet.ibm.com] 
Sent: Thursday, December 15, 2011 5:03 PM
To: Amit Tewari
Cc: libvir-list@redhat.com
Subject: RE: [libvirt] FW: macvtap not working on rhel 6.1 x86 machine

On Thu, 2011-12-15 at 15:54 +0530, Amit Tewari wrote:
 hi,
 
 i want the kvm guest machine to connect to network using macvtap..
 I tried this vepa mode it is also not working.

where is your DHCP server? On the network or on your host?

 eth0 has same mac address as that of macvatap0 that is  52:54:00:55:AE:B5

this is correct. The mac address of eth0 in the guest is the same as
that of the macvtap device of the host.

 due to this guest is not able to get dhcp address nor static ip address is 
 working. 

it works for me. I am on 6.2 now, but this worked on 6.1 as well.

-- 
Best regards, 

Gerhard Stenzel, 
---
IBM Deutschland Research  Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
---

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


[libvirt] macvtap nt working on kvm

2011-12-14 Thread Amit Tewari
Hi all,

 

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.8.7

Kvm hypervisor

 

I have made this entry in guest xml file

 

interface type='direct'

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

 

Following macvtap0 is created on host and is shown below

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 52:54:00:55:AE:B5brd ff:ff:ff:ff:ff:ff

 

but when the guest is up and I try to perform

 

# ifup eth0

 

eth0 has same mac address as that of macvatap0 that is
52:54:00:55:AE:B5

 

due to this guest is not able to get dhcp address nor static ip address
is working. 

 

Please let me know how macvtap work on kvm.

 




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] macvtap nt working on kvm

2011-12-14 Thread Amit Tewari
Hi,
Actually macvatap doesn't work with bridge. So once the physical device
is attached to a bridge, a macvtap attached to that device no longer
works.
In my case there is no bridge on the interface. but still guest os is
not able to get ip address.

Is there no support for macvtap on red hat 6.1 x_86 platforms?
-Original Message-
From: libvir-list-boun...@redhat.com
[mailto:libvir-list-boun...@redhat.com] On Behalf Of Laine Stump
Sent: Thursday, December 15, 2011 2:31 AM
To: libvir-list@redhat.com
Subject: Re: [libvirt] macvtap nt working on kvm

On 12/14/2011 02:26 PM, Stefan Berger wrote:
 On 12/14/2011 07:40 AM, Amit Tewari wrote:

 Hi all,

 My test environment

 Host os=rhel6.1

 Guest os = rhel6.1

 Libvirt=0.8.7

 Kvm hypervisor

 I have made this entry in guest xml file

 interface type='direct'

 source dev='eth0' mode='bridge'/

 model type='virtio'/

 address type='pci' domain='0x' bus='0x00' slot='0x03' 
 function='0x0'/

 /interface

 Now when I start the guest

 *#virsh start guest*

 Following macvtap0 is created on host and is shown below

 #*ip link show macvtap0*

 51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc 
 mq state UNKNOWN qlen 500

 link/ether 52:54:00:55:AE:B5brd ff:ff:ff:ff:ff:ff

 but when the guest is up and I try to perform

 **

 *# ifup eth0*

 *eth0 has same mac address as that of macvatap0 that is 
  52:54:00:55:AE:B5*

 **

 *due to this guest is not able to get dhcp address nor static ip 
 address is working*.

 Please let me know how macvtap work on kvm.


 I have tried your setup on my machine with the following host 
 configuration:

 # brctl show
 bridge namebridge idSTP enabledinterfaces
 br08000.001a64d00016noeth0
 virbr08000.yes

 If I use the configuration as you have shown it doesn't work for me, 
 either. However, if I use

 source dev='br0' mode='bridge'/

 then it works as expected. Do you happen to have a similar 
 configuration on the host with the interface the macvtap device wants 
 to use as 'source' being bridged?

Interesting. So you're saying that once the physical device is attached 
to a bridge, a macvtap attached to that device no longer works? That's 
useful to know :-)


--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list



DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
---

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] macvtap nt working on kvm

2011-12-14 Thread Amit Tewari
Hi Stefan,
May be you can try again this test of macvtap on your environment, but
please remove the bridge from eth0. because macvtap doesent work with
bridge setup.

-Original Message-
From: Amit Tewari 
Sent: Thursday, December 15, 2011 9:05 AM
To: 'Laine Stump'; libvir-list@redhat.com
Subject: RE: [libvirt] macvtap nt working on kvm

Hi,
Actually macvatap doesn't work with bridge. So once the physical device
is attached to a bridge, a macvtap attached to that device no longer
works.
In my case there is no bridge on the interface. but still guest os is
not able to get ip address.

Is there no support for macvtap on red hat 6.1 x_86 platforms?
-Original Message-
From: libvir-list-boun...@redhat.com
[mailto:libvir-list-boun...@redhat.com] On Behalf Of Laine Stump
Sent: Thursday, December 15, 2011 2:31 AM
To: libvir-list@redhat.com
Subject: Re: [libvirt] macvtap nt working on kvm

On 12/14/2011 02:26 PM, Stefan Berger wrote:
 On 12/14/2011 07:40 AM, Amit Tewari wrote:

 Hi all,

 My test environment

 Host os=rhel6.1

 Guest os = rhel6.1

 Libvirt=0.8.7

 Kvm hypervisor

 I have made this entry in guest xml file

 interface type='direct'

 source dev='eth0' mode='bridge'/

 model type='virtio'/

 address type='pci' domain='0x' bus='0x00' slot='0x03' 
 function='0x0'/

 /interface

 Now when I start the guest

 *#virsh start guest*

 Following macvtap0 is created on host and is shown below

 #*ip link show macvtap0*

 51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc 
 mq state UNKNOWN qlen 500

 link/ether 52:54:00:55:AE:B5brd ff:ff:ff:ff:ff:ff

 but when the guest is up and I try to perform

 **

 *# ifup eth0*

 *eth0 has same mac address as that of macvatap0 that is 
  52:54:00:55:AE:B5*

 **

 *due to this guest is not able to get dhcp address nor static ip 
 address is working*.

 Please let me know how macvtap work on kvm.


 I have tried your setup on my machine with the following host 
 configuration:

 # brctl show
 bridge namebridge idSTP enabledinterfaces
 br08000.001a64d00016noeth0
 virbr08000.yes

 If I use the configuration as you have shown it doesn't work for me, 
 either. However, if I use

 source dev='br0' mode='bridge'/

 then it works as expected. Do you happen to have a similar 
 configuration on the host with the interface the macvtap device wants 
 to use as 'source' being bridged?

Interesting. So you're saying that once the physical device is attached 
to a bridge, a macvtap attached to that device no longer works? That's 
useful to know :-)


--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list



DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
---

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] macvtap not working on kvm

2011-12-13 Thread Amit Tewari
Hi,

Actually udev renames the eth0 interface in guest to eth1 because
macvtap0 has different mac address then eth0 on host.. 

Is there some way so that we can prevent changing this rename of eth0 to
eth1 on guest. I don't want to change udev files.

 



From: xhu [mailto:x...@redhat.com] 
Sent: Tuesday, December 13, 2011 3:01 PM
To: Amit Tewari
Cc: libvir-list@redhat.com
Subject: Re: [libvirt] macvtap not working on kvm

 

On 12/13/2011 12:59 PM, Amit Tewari wrote: 

Hi all,

 

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.9.8

Kvm hypervisor

 

I have made this entry in guest xml file

 

interface type='direct'

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

 

Following macvtap0 is created on host and is shown below

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 52:54:00:55:AE:B5brd ff:ff:ff:ff:ff:ff

 

but when the guest is up and I try to perform

 

# ifup eth0

 

It gives following message

Bringing up interface eth0:  Device eth0 does not seem to be present,
delaying initialization.

[FAILED]

The interface name may change to ethN(N may be 1 or 2 ...) due to the
change of guest interface mac address.
You can log in guest and use command: ip  link show to get the value
of N.
Then create ifcfg-ethN for it and use ifup ethN to start it in guest.



 

Guest eth interface does not create. What is the problem?

 

When I checked dmesg on host it gives following message-macvatp0: ipv6
routers not present

 

Please let me know how macvtap work on kvm.

 

 
DISCLAIMER: 

--- 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily
reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure,
modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this
e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 

---
 
 
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

 




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] macvtap not working on kvm

2011-12-13 Thread Amit Tewari
Hi all,

In same previous scenario of macvtap ,Im not able to assign dhcp address
to guest interface, and if I assign static ip of my lan to guest
interface , than also it is not able to connect to the network..

 



From: libvir-list-boun...@redhat.com
[mailto:libvir-list-boun...@redhat.com] On Behalf Of Amit Tewari
Sent: Tuesday, December 13, 2011 5:11 PM
To: xhu
Cc: libvir-list@redhat.com
Subject: Re: [libvirt] macvtap not working on kvm

 

Hi,

Actually udev renames the eth0 interface in guest to eth1 because
macvtap0 has different mac address then eth0 on host.. 

Is there some way so that we can prevent changing this rename of eth0 to
eth1 on guest. I don't want to change udev files.

 



From: xhu [mailto:x...@redhat.com] 
Sent: Tuesday, December 13, 2011 3:01 PM
To: Amit Tewari
Cc: libvir-list@redhat.com
Subject: Re: [libvirt] macvtap not working on kvm

 

On 12/13/2011 12:59 PM, Amit Tewari wrote: 

Hi all,

 

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.9.8

Kvm hypervisor

 

I have made this entry in guest xml file

 

interface type='direct'

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

 

Following macvtap0 is created on host and is shown below

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 52:54:00:55:AE:B5brd ff:ff:ff:ff:ff:ff

 

but when the guest is up and I try to perform

 

# ifup eth0

 

It gives following message

Bringing up interface eth0:  Device eth0 does not seem to be present,
delaying initialization.

[FAILED]

The interface name may change to ethN(N may be 1 or 2 ...) due to the
change of guest interface mac address.
You can log in guest and use command: ip  link show to get the value
of N.
Then create ifcfg-ethN for it and use ifup ethN to start it in guest.

 

Guest eth interface does not create. What is the problem?

 

When I checked dmesg on host it gives following message-macvatp0: ipv6
routers not present

 

Please let me know how macvtap work on kvm.

 

 
DISCLAIMER: 

--- 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily
reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure,
modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this
e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 

---
 
 
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

 



DISCLAIMER: 

--- 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily
reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure,
modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this
e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 

---



DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error

[libvirt] macvtap support in libvirt 0.9.8

2011-12-12 Thread Amit Tewari
Hi all,

 

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.9.8

Kvm hypervisor

 

I am creating a macvtap interface on host machine at eth0 interface

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 1e:aa:f7:43:7e:3d brd ff:ff:ff:ff:ff:ff

 

I have made this entry in guest xml file

 

interface type='direct'

  mac address=1e:aa:f7:43:7e:3d'/

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

It gives following message

Bringing up interface eth0:  Device eth0 does not seem to be present,
delaying initialization.

[FAILED]

 

Guest eth interface does not create. what is the problem.

 

Please let me know what else we need to do to make macvtap work on kvm.




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] macvtap support in libvirt 0.9.8

2011-12-12 Thread Amit Tewari
Hi all,

 

Please ignore my previous mail..

 

This is my test scenario

 

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.9.8

Kvm hypervisor

 

I am creating a macvtap interface on host machine at eth0 interface

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 1e:aa:f7:43:7e:3d brd ff:ff:ff:ff:ff:ff

 

I have made this entry in guest xml file

 

interface type='direct'

  mac address=1e:aa:f7:43:7e:3d'/

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

It gives following message

error: Failed to start domain guest

error: Cannot set interface flags on 'macvtap1': Device or resource busy

 

 

 

Please let me know what else we need to do to make macvtap work on kvm.

 

 



From: libvir-list-boun...@redhat.com
[mailto:libvir-list-boun...@redhat.com] On Behalf Of Amit Tewari
Sent: Monday, December 12, 2011 3:22 PM
To: libvir-list@redhat.com
Subject: [libvirt] macvtap support in libvirt 0.9.8

 

Hi all,

 

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.9.8

Kvm hypervisor

 

I am creating a macvtap interface on host machine at eth0 interface

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 1e:aa:f7:43:7e:3d brd ff:ff:ff:ff:ff:ff

 

I have made this entry in guest xml file

 

interface type='direct'

  mac address=1e:aa:f7:43:7e:3d'/

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

It gives following message

Bringing up interface eth0:  Device eth0 does not seem to be present,
delaying initialization.

[FAILED]

 

Guest eth interface does not create. what is the problem.

 

Please let me know what else we need to do to make macvtap work on kvm.



DISCLAIMER: 

--- 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily
reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure,
modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this
e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 

---



DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] macvtap support in libvirt 0.9.8

2011-12-12 Thread Amit Tewari
Hi all,

When I see dmesg on host machine it gives error- macvtap0: no IPv6
routers present

 

Is this error causing saome problem..

Even if guest starts it gives error Bringing up interface eth0:  Device
eth0 does not seem to be present, delaying initialization.

[FAILED]

 

Is this dmesg =  - macvtap0: no IPv6 routers present the cause???

 



From: libvir-list-boun...@redhat.com
[mailto:libvir-list-boun...@redhat.com] On Behalf Of Amit Tewari
Sent: Monday, December 12, 2011 3:50 PM
To: libvir-list@redhat.com
Subject: Re: [libvirt] macvtap support in libvirt 0.9.8

 

Hi all,

 

Please ignore my previous mail..

 

This is my test scenario

 

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.9.8

Kvm hypervisor

 

I am creating a macvtap interface on host machine at eth0 interface

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 1e:aa:f7:43:7e:3d brd ff:ff:ff:ff:ff:ff

 

I have made this entry in guest xml file

 

interface type='direct'

  mac address=1e:aa:f7:43:7e:3d'/

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

It gives following message

error: Failed to start domain guest

error: Cannot set interface flags on 'macvtap1': Device or resource busy

 

 

 

Please let me know what else we need to do to make macvtap work on kvm.

 

 



From: libvir-list-boun...@redhat.com
[mailto:libvir-list-boun...@redhat.com] On Behalf Of Amit Tewari
Sent: Monday, December 12, 2011 3:22 PM
To: libvir-list@redhat.com
Subject: [libvirt] macvtap support in libvirt 0.9.8

 

Hi all,

 

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.9.8

Kvm hypervisor

 

I am creating a macvtap interface on host machine at eth0 interface

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 1e:aa:f7:43:7e:3d brd ff:ff:ff:ff:ff:ff

 

I have made this entry in guest xml file

 

interface type='direct'

  mac address=1e:aa:f7:43:7e:3d'/

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

It gives following message

Bringing up interface eth0:  Device eth0 does not seem to be present,
delaying initialization.

[FAILED]

 

Guest eth interface does not create. what is the problem.

 

Please let me know what else we need to do to make macvtap work on kvm.



DISCLAIMER: 

--- 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily
reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure,
modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this
e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 

---


DISCLAIMER: 

--- 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily
reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure,
modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this
e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 

---



DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views

[libvirt] macvtap not working on kvm

2011-12-12 Thread Amit Tewari
Hi all,

 

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.9.8

Kvm hypervisor

 

I have made this entry in guest xml file

 

interface type='direct'

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

 

Following macvtap0 is created on host and is shown below

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 52:54:00:55:AE:B5brd ff:ff:ff:ff:ff:ff

 

but when the guest is up and I try to perform

 

# ifup eth0

 

It gives following message

Bringing up interface eth0:  Device eth0 does not seem to be present,
delaying initialization.

[FAILED]

 

Guest eth interface does not create. What is the problem?

 

When I checked dmesg on host it gives following message-macvatp0: ipv6
routers not present

 

Please let me know how macvtap work on kvm.

 




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] macvtap not working on kvm

2011-12-12 Thread Amit Tewari
Hi all,

 

My test environment

Host os=rhel6.1

Guest os = rhel6.1

Libvirt=0.9.8

Kvm hypervisor

 

I have made this entry in guest xml file

 

interface type='direct'

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x03'
function='0x0'/

/interface

 

Now when I start the guest 

#virsh start guest

 

Following macvtap0 is created on host and is shown below

#ip link show macvtap0

51: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 52:54:00:55:AE:B5brd ff:ff:ff:ff:ff:ff

 

but when the guest is up and I try to perform

 

# ifup eth0

 

It gives following message

Bringing up interface eth0:  Device eth0 does not seem to be present,
delaying initialization.

[FAILED]

 

Guest eth interface does not create. What is the problem?

 

When I checked dmesg on host it gives following message-macvatp0: ipv6
routers not present

 

Please let me know how macvtap work on kvm.

 




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] virsh console giving Error

2011-12-11 Thread Amit Tewari
Hi all,

Following is my test environment 

Host os= rhel6.1

Guest os=rhel6.1

Hypervisor - kvm

 

I have a created a guest machine using virt-install command. And it has
created guest successfully.

But now when I issue following command

#virsh console guest

 

Following error is displayed -

 

Error: internal error character device (null) is not using a PTY

 

Please let me no how can I avoid this error.

 

Regards

Amit Tewari




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] virsh console giving Error

2011-12-11 Thread Amit Tewari
Hi,
I am using libvirt 0.9.7

-Original Message-
From: Kashyap Chamarthy [mailto:kcham...@redhat.com] 
Sent: Monday, December 12, 2011 12:32 PM
To: Amit Tewari
Cc: libvir-list@redhat.com
Subject: Re: [libvirt] virsh console giving Error

On 12/12/2011 12:16 PM, Amit Tewari wrote:
 Hi all,
 
 Following is my test environment
 
 Host os= rhel6.1
 
 Guest os=rhel6.1
 
 Hypervisor - kvm
 
  
 
 I have a created a guest machine using virt-install command. And it
has created guest
 successfully.
 
 But now when I issue following command
 
 #virsh console guest
 
  
 
 Following error is displayed -
 
  
 
 Error: internal error character device (null) is not using a PTY
 
  
 
 Please let me no how can I avoid this error.

You have not specified what distribution, version of libvirt are you
using.

First, can you ensure if you have serial console set up in your guest by
checking if you
have the below directives in your guest kernel's command line options
(in /etc/grub.conf)


console=tty0 console=ttyS0,115200


If not, you can add it by running the below (ensure the guest is
shut-off):

# virt-edit guest /etc/grub.conf

'virt-edit' tool comes with libguestfs-tools-c package.

-- 
/kashyap

 
  
 
 Regards
 
 Amit Tewari
 
 

 
 --
 libvir-list mailing list
 libvir-list@redhat.com
 https://www.redhat.com/mailman/listinfo/libvir-list





DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
---

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] virsh console giving Error

2011-12-11 Thread Amit Tewari
Hi,
I added this  (in /etc/grub.conf)


console=tty0 console=ttyS0,115200
-
But still same error is coming.



-Original Message-
From: libvir-list-boun...@redhat.com
[mailto:libvir-list-boun...@redhat.com] On Behalf Of Amit Tewari
Sent: Monday, December 12, 2011 12:36 PM
To: Kashyap Chamarthy
Cc: libvir-list@redhat.com
Subject: Re: [libvirt] virsh console giving Error

Hi,
I am using libvirt 0.9.7

-Original Message-
From: Kashyap Chamarthy [mailto:kcham...@redhat.com] 
Sent: Monday, December 12, 2011 12:32 PM
To: Amit Tewari
Cc: libvir-list@redhat.com
Subject: Re: [libvirt] virsh console giving Error

On 12/12/2011 12:16 PM, Amit Tewari wrote:
 Hi all,
 
 Following is my test environment
 
 Host os= rhel6.1
 
 Guest os=rhel6.1
 
 Hypervisor - kvm
 
  
 
 I have a created a guest machine using virt-install command. And it
has created guest
 successfully.
 
 But now when I issue following command
 
 #virsh console guest
 
  
 
 Following error is displayed -
 
  
 
 Error: internal error character device (null) is not using a PTY
 
  
 
 Please let me no how can I avoid this error.

You have not specified what distribution, version of libvirt are you
using.

First, can you ensure if you have serial console set up in your guest by
checking if you
have the below directives in your guest kernel's command line options
(in /etc/grub.conf)


console=tty0 console=ttyS0,115200


If not, you can add it by running the below (ensure the guest is
shut-off):

# virt-edit guest /etc/grub.conf

'virt-edit' tool comes with libguestfs-tools-c package.

-- 
/kashyap

 
  
 
 Regards
 
 Amit Tewari
 
 

 
 --
 libvir-list mailing list
 libvir-list@redhat.com
 https://www.redhat.com/mailman/listinfo/libvir-list





DISCLAIMER: 

--- 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily
reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure,
modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this
e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 

---

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list



DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
---

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] how to use macvtap in kvm guest

2011-12-09 Thread Amit Tewari
Hi,

 

Can somebody help me in solving the dmesg error:

 

macvtap0:no ipv6 routers present

 



From: xhu [mailto:x...@redhat.com] 
Sent: Friday, December 09, 2011 10:53 AM
To: Amit Tewari
Cc: libvir-list@redhat.com
Subject: Re: [libvirt] how to use macvtap in kvm guest

 

On 12/09/2011 12:28 PM, Amit Tewari wrote: 

Hi

 

I am creating macvtap0 interface on my eth1 interface.

ip link show macvtap0

133: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 3e:63:18:f3:49:63 brd ff:ff:ff:ff:ff:ff

 

guest interface file-

 

interface type='direct'

  mac address='3e:63:18:f3:49:63'/

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x02'
function='0x0'/

/interface

Now when I do-

Virsh define guest works fine

But when I do virsh start guest

can guest gain ip?



 

Dmesg shows error

 

macvtap0:no ipv6 routers present

libvirtd[24907]: segfault at 0 ip 003e22280062 sp 7fd3057f8cb8
error 4 in libc-2.12.so[3e2220+187000]

and even if guest starts its eth interface is not created

could you provide your host os, guest os, libvirt, qemu-kvm version?
it is fine as i tried, no segment fault message and the guest can get
ip.



 
DISCLAIMER: 

--- 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily
reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure,
modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this
e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 

---
 
 
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

 




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] how to use macvtap in kvm guest

2011-12-08 Thread Amit Tewari
Hi

 

I am creating macvtap0 interface on my eth1 interface.

ip link show macvtap0

133: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 3e:63:18:f3:49:63 brd ff:ff:ff:ff:ff:ff

 

guest interface file-

 

interface type='direct'

  mac address='3e:63:18:f3:49:63'/

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x02'
function='0x0'/

/interface

Now when I do-

Virsh define guest works fine

But when I do virsh start guest

 

Dmesg shows error

 

macvtap0:no ipv6 routers present

libvirtd[24907]: segfault at 0 ip 003e22280062 sp 7fd3057f8cb8
error 4 in libc-2.12.so[3e2220+187000]

and even if guest starts its eth interface is not created




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] how to use macvtap in kvm guest

2011-12-08 Thread Amit Tewari
Hi,

No guest can not  get ip.

When I do ifup eth0 it give error device not found.

 

 

 

Hostos=rhel 6.x86_64

Guest os= rhel 6.x86_64

Libvirt =0.8.7

Macvtap driver is loaded.

 

Qemu-kvm= 0.12.1.2

 

i think this error is creating problem

 

macvtap0:no ipv6 routers present

 



From: xhu [mailto:x...@redhat.com] 
Sent: Friday, December 09, 2011 10:53 AM
To: Amit Tewari
Cc: libvir-list@redhat.com
Subject: Re: [libvirt] how to use macvtap in kvm guest

 

On 12/09/2011 12:28 PM, Amit Tewari wrote: 

Hi

 

I am creating macvtap0 interface on my eth1 interface.

ip link show macvtap0

133: macvtap0@eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc mq
state UNKNOWN qlen 500

link/ether 3e:63:18:f3:49:63 brd ff:ff:ff:ff:ff:ff

 

guest interface file-

 

interface type='direct'

  mac address='3e:63:18:f3:49:63'/

  source dev='eth0' mode='bridge'/

  model type='virtio'/

  address type='pci' domain='0x' bus='0x00' slot='0x02'
function='0x0'/

/interface

Now when I do-

Virsh define guest works fine

But when I do virsh start guest

can guest gain ip?



 

Dmesg shows error

 

macvtap0:no ipv6 routers present

libvirtd[24907]: segfault at 0 ip 003e22280062 sp 7fd3057f8cb8
error 4 in libc-2.12.so[3e2220+187000]

and even if guest starts its eth interface is not created

could you provide your host os, guest os, libvirt, qemu-kvm version?
it is fine as i tried, no segment fault message and the guest can get
ip.



 
DISCLAIMER: 

--- 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily
reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure,
modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this
e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 

---
 
 
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

 




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] New feature for libvirt network filter

2011-11-22 Thread Amit Tewari
Hi,

I wanted to suggest a new feature in libvirt network filter.

 

Currently libvirt allow only one ip address to be provided in the guest
configuration xml file.

 

We should allow multiple ip addresses to be provided statically in the
guest xml for an interface, so that packets matching either of these
multiple ip addresses should be allowed to be routed out from the guest
machine.

 

 

Reagrds

Amit tTewari

NHST

 




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] New feature for libvirt

2011-11-16 Thread Amit Tewari
Hi,

 

I wanted to suggest a new feature development in libvirt network filter.

Currently in libvirt network filter there is no support for ip aliasing,
but we want to add this feature so that libvirt learns multiple ip
address for a virtual machine.

 

With this feature we will be able to get no-ip-spoofing filter works on
machine with ip aliasing.

Currently if we apply no-ip-spoofing filter on a virtual machine with ip
aliasing then only one ip address is earned by libvirt ,due to this
other aliased ip address packets are not allowed to route out of the
machine.

With this new feature libvirt network filter will work on machine with
multiple ip addresses on a interface(ip aliasing) 

 

Regards

Amit Tewari

 

 




DISCLAIMER: 
---
 
The contents of this e-mail and any attachment(s) are confidential and
intended 
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list