[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Configure Xen to use IPv4 addressing


  • To: Naman Agarwal <namanag16@xxxxxxxxx>
  • From: Sarah Newman <srn@xxxxxxxxx>
  • Date: Tue, 14 Jun 2016 11:16:03 -0700
  • Cc: xen-users@xxxxxxxxxxxxx
  • Delivery-date: Tue, 14 Jun 2016 18:17:22 +0000
  • Dkim-filter: OpenDKIM Filter v2.10.3 mail.prgmr.com BAE1628C007
  • List-id: Xen user discussion <xen-users.lists.xen.org>

On 06/14/2016 06:41 AM, Naman Agarwal wrote:
> Hi Simon,
> Thanks for your time to answer the query. You were right, I had not
> configured guest devices. However, I tried to do the same but could not get
> the guests to run with proper network configurations. Could you please
> guide me as to what I am doing wrong.
> 
> Here is my guest configuration file /etc/xen/tutorial-pv-guest.cfg on the
> host:
> 
> #
> # Configuration file for the Xen instance tutorial-pv-guest, created
> # by xen-tools 4.4 on Sun May 29 13:05:12 2016.
...
> 
> #
> #  Networking
> #
> dhcp        = 'dhcp'
> vif         = [ 'mac=00:16:3E:B2:66:08,bridge=xenbr0,ip=192.168.1.3' ]

FYI I think the "dhcp = 'dhcp'" line only has meaning to xen-tools.

It's unclear if vif2.0 on the host matches the guest ifconfig was run on. If 
you add 'vifname=v00163EB26608' to the vif line, the interface for the
domU in the host will be renamed to that when it's first brought up.

> Result of ifconfig on the guest:
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:65536  Metric:1
>           RX packets:16 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:1184 (1.1 KB)  TX bytes:1184 (1.1 KB)
>
>
> The eth0 interface on the guest fails to start with this configuration.
>

What is the content of /sys/class/net and 
/etc/udev/rules.d/70-persistent-net.rules ? If the MAC address changed, maybe 
the interface is there but not
as eth0.

--Sarah

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.