WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] Problem: IP-Config: Unable to set interface netmask(-22)

To: "xuehai zhang" <hai@xxxxxxxxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Problem: IP-Config: Unable to set interface netmask(-22)
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Tue, 6 Dec 2005 22:45:21 -0000
Cc: ian.pratt@xxxxxxxxxxxx
Delivery-date: Tue, 06 Dec 2005 22:45:53 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcX6Yo8BxBHCXMmFSLqyoBRHCTK/QQAU/yfA
Thread-topic: [Xen-users] Problem: IP-Config: Unable to set interface netmask(-22)
 
> Hi all,
> I tried to boot up a VM using two options (a) reading boot 
> information from a config file (b) adding boot information 
> directly to the command line. However, I got "IP-Config: 
> Unable to set interface netmask (-22)" problem when using 
> option (b). For (a), I don't have such problem. The boot 
> information for both (a) and (b) is same.
> Could you please let me know what I am missing for (b) or is it a bug?
> BTW, my Xen version is 2.0-testing.

Use the "-n" option to xm create to get it to print out the sxp for both
cases.

Best,
Ian

> (a)
> 
> $ cat vwconfig
> kernel = "/boot/vmlinuz-2.6.11-xenU"
> memory = 256
> name = "ucvosg"
> disk = [ "file:/tmp/vosg/vosg-gk-rootfs.img,sda1,w" , 
> "file:/tmp/vosg/swap1.img,sda2,w" ]
> nics=2
> hostname="alex.cs.uchicago.edu"
> ip="128.135.164.83"
> netmask="255.255.255.192"
> gateway="128.135.164.65"
> 
> root = "/dev/sda1 ro"
> extra = ""
> 
> $ xm create vwconfig -c
> (snipped)
> xen_blk: Initialising virtual block device driver
> xen_net: Initialising virtual ethernet driver.
> NET: Registered protocol family 2
> IP: routing cache hash table of 2048 buckets, 16Kbytes TCP 
> established hash table entries: 16384 (order: 5, 131072 
> bytes) TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
> TCP: Hash tables configured (established 16384 bind 16384)
> NET: Registered protocol family 1
> NET: Registered protocol family 17
> IP-Config: Complete:
>        device=eth0, addr=128.135.164.83, 
> mask=255.255.255.192, gw=128.135.164.65,
>       host=alex, domain=, nis-domain=cs.uchicago.edu,
>       bootserver=1.2.3.4, rootserver=1.2.3.4, rootpath=
> (snipped)
> 
> 
> (b)
> 
> $ xm create name=ucvosg memory=256 kernel='/boot/vmlinuz-2.6.11-xenU' 
> disk='file:/tmp/vosg/vosg-gk-rootfs.img,sda1,w' 
> disk='file:/tmp/vosg/swap1.img,sda2,w' nics=2 
> hostname='alex.cs.uchicago.edu' netmask='255.255.254.192' 
> ip='128.135.164.83' 
> gateway='128.135.164.65' root='/dev/sda1 ro' -f /dev/null
> 
> (snipped)
> xen_blk: Initialising virtual block device driver
> xen_net: Initialising virtual ethernet driver.
> NET: Registered protocol family 2
> IP: routing cache hash table of 2048 buckets, 16Kbytes TCP 
> established hash table entries: 16384 (order: 5, 131072 
> bytes) TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
> TCP: Hash tables configured (established 16384 bind 16384)
> NET: Registered protocol family 1
> NET: Registered protocol family 17
> IP-Config: Unable to set interface netmask (-22).
> (snipped)
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • RE: [Xen-users] Problem: IP-Config: Unable to set interface netmask(-22), Ian Pratt <=