David,
Here is the latest py file I am using.
------------------------------------------------------------------------------------------------------
name = "2008.05-b91-static-IP-domU"
vcpus = 1
memory = "512"
disk = ['file:/sun-osol/2008.05_32_1.3.img,0,w']
vif = [ '' ]
interface = "xnf0"
ip="129.146.85.214"
dhcp="off"
hostname="dhcp-umpk16-85-214"
gateway="129.146.85.255"
nfs_server=""
nfs_root=""
netmask="255.255.255.192"
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "preserve"
kernel = "/sun-osol/unix"
extra = "/platform/i86xpv/kernel/unix -B
zfs-bootfs=rpool/114,bootpath='/xpvd/[EMAIL PROTECTED]:a'"
ramdisk = "/sun-osol/boot_archive"
------------------------------------------------------------------------------------------------------
Output of the dryrun is
------------------------------------------------------------------------------------------------------
bash-3.2# xm create --dryrun domUstaticip.py
Using config file "./domUstaticip.py".
(vm
(name 2008.05-b91-static-IP-domU)
(memory 512)
(on_reboot destroy)
(on_crash preserve)
(vcpus 1)
(on_xend_start ignore)
(on_xend_stop shutdown)
(image
(linux
(kernel /sun-osol/unix)
(ramdisk /sun-osol/boot_archive)
(ip
129.146.85.214:1.2.3.4:129.146.85.255:255.255.255.192:dhcp-umpk16-85-214:xnf0:off
)
(args
"/platform/i86xpv/kernel/unix -B
zfs-bootfs=rpool/114,bootpath='/xpvd/[EMAIL PROTECTED]:a'"
)
)
)
(device (vbd (uname file:/sun-osol/2008.05_32_1.3.img) (dev 0) (mode w)))
(device (vif))
)
------------------------------------------------------------------------------------------------------
upon the execution of xm create -c <py file> it is automatically picking up
dhcp address even though i forced to use static IP. I tried pinging the static
IP i used in the script. it is not assigned to any machine.
------------------------------------------------------------------------------------------------------
bash-3.2# xm create -c domUstaticip.py
Using config file "./domUstaticip.py".
Started domain 2008.05-b91-static-IP-domU
v3.1.2-xvm chgset 'Mon Mar 17 23:11:31
2008 -0700 15633:727210f4a544'
SunOS Release 5.11 Version snv_91 32-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: dhcp-umpk16-85-213
Reading ZFS config: done.
Mounting ZFS filesystems: (7/7)
dhcp-umpk16-85-213 console login: root
Password:
Aug 21 08:57:44 dhcp-umpk16-85-213 login: ROOT LOGIN /dev/console
Last login: Thu Aug 21 08:53:17 on console
Sun Microsystems Inc. SunOS 5.11 snv_91 January 2008
------------------------------------------------------------------------------------------------------
Upon boot up of domU, I checked both /etc/hostname.xnf0 and /etc/dhcp.xnf0
files. both are empty.
Also attaching here with output of prtconf -v
------------------------------------------------------------------------------------------------------
System Configuration: Sun Microsystems i86pc
Memory size: 512 Megabytes
System Peripherals (Software Nodes):
i86xpv
System properties:
name='relative-addressing' type=int items=1
value=00000001
name='MMU_PAGEOFFSET' type=int items=1
value=00000fff
name='MMU_PAGESIZE' type=int items=1
value=00001000
name='PAGESIZE' type=int items=1
value=00001000
name='ramdisk_start' type=int items=2
value=40826000.00000000
name='ramdisk_end' type=int items=2
value=42088000.00000000
name='xpv-ip' type=string items=1
value='129.146.85.214:1.2.3.4:129.146.85.255:255.255.255.192:dhcp-umpk16-85-214:xnf0:off'
name='host-ip' type=string items=1
value='129.146.85.214'
name='router-ip' type=string items=1
value='129.146.85.255'
name='subnet-mask' type=string items=1
value='255.255.255.192'
name='xpv-hostname' type=string items=1
value='dhcp-umpk16-85-214'
name='network-interface' type=string items=1
value='xnf0'
name='xpv-hcp' type=string items=1
value='off'
name='boot-file' type=string items=1
value='/platform/i86xpv/kernel/unix'
name='whoami' type=string items=1
value='/platform/i86xpv/kernel/unix'
name='zfs-bootfs' type=string items=1
value='rpool/114'
name='bootpath' type=string items=1
value='/xpvd/[EMAIL PROTECTED]:a'
name='boot-args' type=unknown items=1
value=00
name='bootargs' type=unknown items=1
value=00
name='mfg-name' type=string items=1
value='i86xpv'
name='impl-arch-name' type=string items=1
value='i86xpv'
name='boot-ncpus' type=string items=1
value='1'
name='ata-dma-enabled' type=string items=1
value='1'
name='atapi-cd-dma-enabled' type=string items=1
value='1'
name='ttyb-rts-dtr-off' type=string items=1
value='false'
name='ttyb-ignore-cd' type=string items=1
value='true'
name='ttya-rts-dtr-off' type=string items=1
value='false'
name='ttya-ignore-cd' type=string items=1
value='true'
name='ttyb-mode' type=string items=1
value='9600,8,n,1,-'
name='ttya-mode' type=string items=1
value='9600,8,n,1,-'
name='lba-access-ok' type=string items=1
value='1'
name='keyboard-layout' type=string items=1
value='Unknown'
name='console' type=string items=1
value='ttya'
Driver properties:
name='fm-accchk-capable' type=boolean dev=none
name='fm-dmachk-capable' type=boolean dev=none
name='fm-errcb-capable' type=boolean dev=none
name='fm-ereport-capable' type=boolean dev=none
scsi_vhci, instance #0
System properties:
name='class' type=string items=1
value='root'
name='load-balance' type=string items=1
value='round-robin'
name='auto-failback' type=string items=1
value='enable'
name='ddi-forceload' type=string items=7
value='misc/scsi_vhci/scsi_vhci_f_asym_sun' +
'misc/scsi_vhci/scsi_vhci_f_asym_lsi' + 'misc/scsi_vhci/scsi_vhci_f_asym_emc' +
'misc/scsi_vhci/scsi_vhci_f_sym_emc' + 'misc/scsi_vhci/scsi_vhci_f_sym_hds' +
'misc/scsi_vhci/scsi_vhci_f_sym' + 'misc/scsi_vhci/scsi_vhci_f_tpgs'
Driver properties:
name='pm-want-child-notification?' type=boolean dev=none
name='fm-ereport-capable' type=boolean dev=none
name='initiator-interconnect-type' type=string items=1 dev=(174,0)
value='SPI'
name='scsi-selection-timeout' type=int items=1 dev=(174,0)
value=000000fa
name='scsi-options' type=int items=1 dev=(174,0)
value=00107ff8
name='scsi-watchdog-tick' type=int items=1 dev=(174,0)
value=0000000a
name='scsi-tag-age-limit' type=int items=1 dev=(174,0)
value=00000002
name='scsi-reset-delay' type=int items=1 dev=(174,0)
value=00000bb8
Device Minor Nodes:
dev=(174,0)
dev_path=/scsi_vhci:devctl
spectype=chr type=minor
isa (driver not attached)
Hardware properties:
name='bus-type' type=string items=1
value='isa'
name='device_type' type=string items=1
value='isa'
xpvd, instance #0
xencons, instance #0
Driver properties:
name='ddi-no-autodetach' type=int items=1 dev=none
value=00000001
Hardware properties:
name='pm-hardware-state' type=string items=1
value='needs-suspend-resume'
name='unit-address' type=string items=1
value='0'
name='device_type' type=string items=1
value='console'
name='vdev' type=int items=1
value=ffffffff
name='domain' type=int items=1
value=00007ff0
name='devclass' type=int items=1
value=00000000
Device Minor Nodes:
dev=(194,0)
dev_path=/xpvd/[EMAIL PROTECTED]:xencons
spectype=chr type=minor
dev_link=/dev/term/0
xenbus, instance #0
Hardware properties:
name='unit-address' type=string items=1
value='0'
name='vdev' type=int items=1
value=ffffffff
name='domain' type=int items=1
value=00007ff0
name='devclass' type=int items=1
value=00000003
Device Minor Nodes:
dev=(195,0)
dev_path=/xpvd/[EMAIL PROTECTED]:xenbus
spectype=chr type=minor
dev_link=/dev/xen/xenbus
domcaps, instance #0
Hardware properties:
name='unit-address' type=string items=1
value='0'
name='vdev' type=int items=1
value=ffffffff
name='domain' type=int items=1
value=00007ff0
name='devclass' type=int items=1
value=00000004
Device Minor Nodes:
dev=(200,0)
dev_path=/xpvd/[EMAIL PROTECTED]:domcaps
spectype=chr type=minor
dev_link=/dev/xen/domcaps
balloon, instance #0
Hardware properties:
name='unit-address' type=string items=1
value='0'
name='vdev' type=int items=1
value=ffffffff
name='domain' type=int items=1
value=00007ff0
name='devclass' type=int items=1
value=00000005
Device Minor Nodes:
dev=(201,0)
dev_path=/xpvd/[EMAIL PROTECTED]:balloon
spectype=chr type=minor
dev_link=/dev/xen/balloon
xdf, instance #1
Driver properties:
name='ddi-no-autodetach' type=int items=1 dev=none
value=00000001
name='lba-access-ok' type=boolean dev=(193,64)
name='ddi-kernel-ioctl' type=boolean dev=none
Hardware properties:
name='dev-address' type=string items=1
value='0'
name='unit-address' type=string items=1
value='0'
name='pm-hardware-state' type=string items=1
value='needs-suspend-resume'
name='device_type' type=string items=1
value='block'
name='vdev' type=int items=1
value=00000000
name='domain' type=int items=1
value=00007ff0
name='devclass' type=int items=1
value=00000002
Device Minor Nodes:
dev=(193,64)
dev_path=/xpvd/[EMAIL PROTECTED]:a
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s0
dev_path=/xpvd/[EMAIL PROTECTED]:a,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s0
Device Minor Layered Under:
mod=zfs accesstype=blk
dev_path=/pseudo/[EMAIL PROTECTED]
dev=(193,65)
dev_path=/xpvd/[EMAIL PROTECTED]:b
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s1
dev_path=/xpvd/[EMAIL PROTECTED]:b,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s1
dev=(193,66)
dev_path=/xpvd/[EMAIL PROTECTED]:c
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s2
dev_path=/xpvd/[EMAIL PROTECTED]:c,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s2
dev=(193,67)
dev_path=/xpvd/[EMAIL PROTECTED]:d
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s3
dev_path=/xpvd/[EMAIL PROTECTED]:d,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s3
dev=(193,68)
dev_path=/xpvd/[EMAIL PROTECTED]:e
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s4
dev_path=/xpvd/[EMAIL PROTECTED]:e,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s4
dev=(193,69)
dev_path=/xpvd/[EMAIL PROTECTED]:f
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s5
dev_path=/xpvd/[EMAIL PROTECTED]:f,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s5
dev=(193,70)
dev_path=/xpvd/[EMAIL PROTECTED]:g
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s6
dev_path=/xpvd/[EMAIL PROTECTED]:g,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s6
dev=(193,71)
dev_path=/xpvd/[EMAIL PROTECTED]:h
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s7
dev_path=/xpvd/[EMAIL PROTECTED]:h,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s7
dev=(193,72)
dev_path=/xpvd/[EMAIL PROTECTED]:i
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s8
dev_path=/xpvd/[EMAIL PROTECTED]:i,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s8
dev=(193,73)
dev_path=/xpvd/[EMAIL PROTECTED]:j
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s9
dev_path=/xpvd/[EMAIL PROTECTED]:j,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s9
dev=(193,74)
dev_path=/xpvd/[EMAIL PROTECTED]:k
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s10
dev_path=/xpvd/[EMAIL PROTECTED]:k,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s10
dev=(193,75)
dev_path=/xpvd/[EMAIL PROTECTED]:l
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s11
dev_path=/xpvd/[EMAIL PROTECTED]:l,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s11
dev=(193,76)
dev_path=/xpvd/[EMAIL PROTECTED]:m
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s12
dev_path=/xpvd/[EMAIL PROTECTED]:m,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s12
dev=(193,77)
dev_path=/xpvd/[EMAIL PROTECTED]:n
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s13
dev_path=/xpvd/[EMAIL PROTECTED]:n,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s13
dev=(193,78)
dev_path=/xpvd/[EMAIL PROTECTED]:o
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s14
dev_path=/xpvd/[EMAIL PROTECTED]:o,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s14
dev=(193,79)
dev_path=/xpvd/[EMAIL PROTECTED]:p
spectype=blk type=minor
dev_link=/dev/dsk/c4d0s15
dev_path=/xpvd/[EMAIL PROTECTED]:p,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0s15
dev=(193,80)
dev_path=/xpvd/[EMAIL PROTECTED]:q
spectype=blk type=minor
dev_link=/dev/dsk/c4d0p0
dev_path=/xpvd/[EMAIL PROTECTED]:q,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0p0
dev=(193,81)
dev_path=/xpvd/[EMAIL PROTECTED]:r
spectype=blk type=minor
dev_link=/dev/dsk/c4d0p1
dev_path=/xpvd/[EMAIL PROTECTED]:r,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0p1
dev=(193,82)
dev_path=/xpvd/[EMAIL PROTECTED]:s
spectype=blk type=minor
dev_link=/dev/dsk/c4d0p2
dev_path=/xpvd/[EMAIL PROTECTED]:s,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0p2
dev=(193,83)
dev_path=/xpvd/[EMAIL PROTECTED]:t
spectype=blk type=minor
dev_link=/dev/dsk/c4d0p3
dev_path=/xpvd/[EMAIL PROTECTED]:t,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0p3
dev=(193,84)
dev_path=/xpvd/[EMAIL PROTECTED]:u
spectype=blk type=minor
dev_link=/dev/dsk/c4d0p4
dev_path=/xpvd/[EMAIL PROTECTED]:u,raw
spectype=chr type=minor
dev_link=/dev/rdsk/c4d0p4
xnf, instance #0
Hardware properties:
name='mac' type=string items=1
value='00:16:3e:08:29:58'
name='unit-address' type=string items=1
value='0'
name='pm-hardware-state' type=string items=1
value='needs-suspend-resume'
name='device_type' type=string items=1
value='network'
name='vdev' type=int items=1
value=00000000
name='domain' type=int items=1
value=00007ff0
name='devclass' type=int items=1
value=00000001
Device Minor Nodes:
dev=(192,1)
dev_path=/xpvd/[EMAIL PROTECTED]:xnf0
spectype=chr type=minor
dev_link=/dev/xnf0
dev=(192,1002)
dev_path=<clone>
Device Minor Layered Under:
mod=udp accesstype=chr
dev_path=/pseudo/[EMAIL PROTECTED]
dev=(192,1003)
dev_path=<clone>
Device Minor Layered Under:
mod=udp accesstype=chr
dev_path=/pseudo/[EMAIL PROTECTED]
iscsi, instance #0
System properties:
name='instance' type=int items=1
value=00000000
name='mpxio-disable' type=string items=1
value='no'
Driver properties:
name='initiator-port' type=string items=1 dev=none
value='iqn.1986-03.com.sun:01:e00000000000.48187fbe,4000002a00ff'
name='fm-ereport-capable' type=boolean dev=none
name='initiator-interconnect-type' type=string items=1 dev=(229,0)
value='iSCSI'
name='scsi-selection-timeout' type=int items=1 dev=(229,0)
value=000000fa
name='scsi-options' type=int items=1 dev=(229,0)
value=00107ff8
name='scsi-watchdog-tick' type=int items=1 dev=(229,0)
value=0000000a
name='scsi-tag-age-limit' type=int items=1 dev=(229,0)
value=00000002
name='scsi-reset-delay' type=int items=1 dev=(229,0)
value=00000bb8
name='config-storm-delay' type=int items=1 dev=none
value=00000005
name='tcp-abort-threshold' type=int items=1 dev=none
value=00007530
name='tcp-conn-abort-threshold' type=int items=1 dev=none
value=00002710
name='tcp-conn-notify-threshold' type=int items=1 dev=none
value=000007d0
name='tcp-nodelay' type=int items=1 dev=none
value=00000000
name='so-sndbuf' type=int items=1 dev=none
value=00040000
name='so-rcvbuf' type=int items=1 dev=none
value=00040000
Device Minor Nodes:
dev=(229,0)
dev_path=/iscsi:devctl
spectype=chr type=minor
stmf, instance #0
Device Minor Nodes:
dev=(259,0)
dev_path=/stmf:admin
spectype=chr type=minor
sbd, instance #0
System software properties:
name='ddi-forceattach' type=int items=1
value=00000001
Device Minor Nodes:
dev=(260,0)
dev_path=/sbd:admin
spectype=chr type=minor
fct, instance #0
System software properties:
name='ddi-forceattach' type=int items=1
value=00000001
Device Minor Nodes:
dev=(261,0)
dev_path=/fct:admin
spectype=chr type=minor
pseudo, instance #0
System properties:
name='instance' type=int items=1
value=00000000
name='class' type=string items=1
value='root'
Device Minor Nodes:
dev=(2,0)
dev_path=/pseudo:devctl
spectype=chr type=minor
options, instance #0
System properties:
name='ttymodes' type=byte items=36
value=02.25.00.00.05.18.00.00.bd.00.00.00.3b.8a.00.00.03.1c.7f.15.04.00.00.00.11.13.1a.19.12.0f.17.16.00.00.00.00
name='class' type=string items=1
value='root'
agpgart, instance #0
System properties:
name='class' type=string items=1
value='root'
Device Minor Nodes:
dev=(78,0)
dev_path=/agpgart:agpgart
spectype=chr type=minor
dev_link=/dev/agpgart
xsvc, instance #0
System properties:
name='reg' type=int items=3
value=00000000.00000000.ffffffff
name='class' type=string items=1
value='root'
name='maxallocmem' type=int items=1
value=00002800
Register Specifications:
Bus Type=0x0, Address=0x0, Size=0xffffffff
Device Minor Nodes:
dev=(204,0)
dev_path=/[EMAIL PROTECTED],0:xsvc
spectype=chr type=minor
dev_link=/dev/xsvc
cpus, instance #0
cpu (driver not attached)
Hardware properties:
name='l2-cache-size' type=int items=1
value=00100000
name='l2-cache-line-size' type=int items=1
value=00000040
name='l2-cache-lines-per-tag' type=int items=1
value=00000001
name='l2-cache-associativity' type=int items=1
value=00000010
name='l1-icache-size' type=int items=1
value=00010000
name='l1-icache-line-size' type=int items=1
value=00000040
name='l1-icache-lines-per-tag' type=int items=1
value=00000001
name='l1-icache-associativity' type=int items=1
value=00000002
name='l1-dcache-size' type=int items=1
value=00010000
name='l1-dcache-line-size' type=int items=1
value=00000040
name='l1-dcache-lines-per-tag' type=int items=1
value=00000001
name='l1-dcache-associativity' type=int items=1
value=00000002
name='dtlb-4K-fully-associative?' type=int items=1
value=00000001
name='dtlb-4K-size' type=int items=1
value=00000020
name='itlb-4K-fully-associative?' type=int items=1
value=00000001
name='itlb-4K-size' type=int items=1
value=00000020
name='itlb-2M-fully-associative?' type=int items=1
value=00000001
name='itlb-2M-size' type=int items=1
value=00000008
name='dtlb-2M-fully-associative?' type=int items=1
value=00000001
name='dtlb-2M-size' type=int items=1
value=00000008
name='brand-string' type=string items=1
value='AMD Opteron(tm) Processor 148'
name='ext-cpuid-features-ecx' type=int items=1
value=00000001
name='ext-cpuid-features' type=int items=1
value=e3d0c3f1
name='cpuid-features' type=int items=1
value=078883f1
name='apic-id' type=int items=1
value=00000000
name='chunks' type=int items=1
value=00000010
name='generation' type=int items=1
value=0000000f
name='ext-model' type=int items=1
value=00000002
name='ext-family' type=int items=1
value=00000000
name='stepping-id' type=int items=1
value=00000001
name='cpu-model' type=int items=1
value=00000007
name='family' type=int items=1
value=0000000f
name='vendor-id' type=string items=1
value='AuthenticAMD'
name='cpu-mhz' type=int items=1
value=000008a3
name='reg' type=int items=1
value=00000000
name='device_type' type=string items=1
value='cpu'
------------------------------------------------------------------------------------------------------
This message posted from opensolaris.org
_______________________________________________
xen-discuss mailing list
[email protected]