Steve wrote:
> PS: could not be better instead of removing, adding packages?
>
> Here it seems is the base to start with
> http://docs.sun.com/app/docs/doc/819-5455/gemmd?l=en&a=view&q=miniroot
yeah, I can get down to ~ 155M for a bare install
if I build up from scratch using the new packaging
system and then remove the 64-bit bins/libs.
If you add in ssh client/server, nfs client/server,
and autofs, it will be ~ 10M more.
If we can break up the packages at some point,
should be able to save quite a bit more.
MRJ
: alpha[1]#; xm create -c /tank/guests/small/guest.py
Using config file "/tank/guests/small/guest.py".
Started domain small
Loading kmdb...
v3.1.4-xvm chgset 'Fri Aug 01 07:50:00 2008 -0700 15884:a4945a4ecb6a'
SunOS Release 5.11 Version snv_94 32-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: unknown
Reading ZFS config: done.
unknown console login: root
Password:
Last login: Wed Aug 6 17:47:31 on console
Aug 6 17:57:55 unknown login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.11 snv_94 January 2008
-bash-3.2# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 0 0 6 17:57:16 ? 0:00 sched
root 1 0 0 17:57:16 ? 0:00 /sbin/init
root 2 0 0 17:57:16 ? 0:00 pageout
root 3 0 0 17:57:16 ? 0:00 fsflush
root 242 239 0 17:57:37 ? 0:00 /usr/lib/saf/ttymon
root 7 1 0 17:57:16 ? 0:01 /lib/svc/bin/svc.startd
root 9 1 0 17:57:16 ? 0:03 /lib/svc/bin/svc.configd
root 112 1 0 17:57:31 ? 0:00 /usr/lib/picl/picld
dladm 12 1 0 17:57:18 ? 0:00 /sbin/dlmgmtd
root 246 1 0 17:57:37 ? 0:00 /usr/lib/utmpd
daemon 237 1 0 17:57:37 ? 0:00 /usr/sbin/rpcbind
root 31 1 0 17:57:18 ? 0:00 /sbin/dhcpagent
daemon 92 1 0 17:57:31 ? 0:00 /usr/lib/crypto/kcfd
root 239 7 0 17:57:37 ? 0:00 /usr/lib/saf/sac -t 300
root 231 1 0 17:57:35 ? 0:00 /usr/sbin/nscd
root 99 1 0 17:57:31 ? 0:00 /usr/lib/sysevent/syseventd
root 251 1 0 17:57:37 ? 0:00 /usr/sbin/syslogd
root 298 252 0 17:58:11 console 0:00 ps -ef
root 244 1 0 17:57:37 ? 0:00 /usr/lib/inet/inetd start
root 179 1 0 17:57:34 ? 0:00 /usr/sbin/cron
root 252 7 0 17:57:37 console 0:00 -bash
-bash-3.2#
I added in pkg install'd mdb later to check the memory usage,
it's pretty reasonable too even with all of the modules that
are currently loaded.. (ignore the bug in Free (freelist)).
-bash-3.2# mdb -K
Welcome to kmdb
Loaded modules: [ scsi_vhci neti xpv_psm ufs unix zfs krtld uhci hook lofs
genunix ip usba specfs md sctp arp xpv_uppc ]
[0]> ::memstat
Page Summary Pages MB %Tot
------------ ---------------- ---------------- ----
Kernel 13896 54 5%
Anon 5101 19 2%
Exec and libs 2212 8 1%
Page cache 2284 8 1%
Free (cachelist) 1387 5 1%
Free (freelist) 3925600342735 386547056640 17683276322169683968%
Balloon 0 0 0%
Total 259071 1011
[0]> ::modinfo
ID LOADADDR SIZE REV MODULE NAME
0 f4c00000 1337c6 0 unix (?)
1 f4ccd4b8 1ed758 0 genunix (?)
2 f4e82cc0 75a50 0 kmdbmod (?)
3 f4ee8478 7248 0 ctf (?)
4 0 0 0 cl_bootstrap (?)
5 f4f2e000 4950 1 specfs (filesystem for specfs)
6 f4f328f0 3280 1 fifofs (filesystem for fifo)
7 0 0 0 dtrace (?)
8 f4f36460 4278 1 devfs (devices filesystem 1.20)
9 f4f3a568 c460 1 dev (/dev filesystem 1.6)
10 f4f466b8 6bcc 1 dls (Data-Link Services v1.14)
11 f4f4d04c 4344 1 mac (MAC Services)
12 0 0 0 lbl_edition (?)
13 f4f51160 2fc4 1 TS (time sharing sched class)
14 f4f53bd4 8c4 1 TS_DPTBL (Time sharing dispatch table)
15 0 0 0 sysinit (?)
16 0 0 0 xpv_autoconfig (?)
17 f4f53d84 275c 1 xpv_uppc (UniProcessor PC)
18 f4f56370 462b0 1 acpica (ACPI interpreter)
19 f4f9d478 8414 1 xpv_psm (platform module 1.6)
20 0 0 0 pcplusmp (?)
21 f4fa6bf4 334 1 xpvtod (TOD module for i86xpv)
22 f4fa6ec0 4024 1 rootnex (i86pc root nexus 1.144)
23 f4faacf4 174 1 options (options driver)
24 f4faae08 85c 1 pseudo (nexus driver for 'pseudo' 1.29)
25 f4fab53c 4ac 1 clone (Clone Pseudodriver 'clone')
26 f4fab8c0 e3f4 1 scsi_vhci (SCSI VHCI Driver 1.74)
27 f4fb9b84 f440 1 scsi (SCSI Bus Utility Routines)
28 f4fc889c b3c 1 scsi_vhci_f_asym_sun (f_asym_sun 1.8)
29 f4fc9378 16a4 1 scsi_vhci_f_asym_lsi (f_asym_lsi 1.25)
30 f4fca8ec c34 1 scsi_vhci_f_asym_emc (f_asym_emc 1.3)
31 f4fcb4a8 2bc 1 scsi_vhci_f_sym_emc (f_sym_emc 1.1)
32 f4fcb6fc 594 1 scsi_vhci_f_sym_hds (f_sym_hds 1.3)
33 f4fcbc30 464 1 scsi_vhci_f_sym (f_sym 1.13)
34 f4fcbff4 844 1 scsi_vhci_f_tpgs (f_tpgs 1.10)
35 0 0 0 hvm_bootstrap (?)
36 f4fcc7d8 34968 1 ufs (filesystem for ufs)
37 f4fffc48 20c 1 fssnap_if (File System Snapshot Interface)
38 ef603000 106c 1 xpvd (virtual device nexus driver 1.5)
39 ef604000 4134 1 xdf (virtual block driver 1.12)
40 ef608000 5608 1 cmlb (Common Labeling module 1.11)
41 ef60d000 2ae8 1 ctfs (contract filesystem)
42 ef610000 12950 1 procfs (filesystem for proc)
43 ef623000 1e30 1 mntfs (mount information file system)
44 ef625000 da38 1 tmpfs (filesystem for tmpfs)
45 ef62b000 18c0 1 objfs (kernel object filesystem)
46 ef62d000 19b8 1 sharefs (sharetab filesystem)
47 ef60cd78 30c 1 cpunex (cpu nexus driver v1.0)
48 0 0 0 cpudrv (?)
49 0 0 0 c2audit (?)
50 ef63f000 209c8 1 sockfs (filesystem for sockfs)
51 ef65f000 122f08 1 ip (IP STREAMS driver 1.47)
52 ef776000 212c 1 md5 (MD5 Message-Digest Algorithm)
53 ef778000 1a284 1 kcf (Kernel Crypto Framework)
54 ef792000 1914 1 swrand (Kernel Random number Provider)
55 ef793000 2b5c 1 sha1 (SHA1 Message-Digest Algorithm)
56 ef622268 dbc 1 hook (Hooks Interface v1.0)
57 ef62a758 8cc 1 neti (netinfo module 1.0)
58 ef62f000 1724 1 strplumb (STREAMS Plumbing Module)
59 ef631000 5f14 1 dld (Data-Link Driver)
60 ef624dd0 33c 1 ip6 (IP6 STREAMS driver 1.11)
61 ef636db4 38c 1 tcp (TCP STREAMS driver 1.57)
62 ef799d78 34c 1 tcp6 (TCP6 STREAMS driver 1.16)
63 ef795c9c 38c 1 udp (UDP STREAMS driver 1.46)
64 ef60f920 34c 1 udp6 (UDP6 STREAMS driver 1.11)
65 ef60fb2c 33c 1 sctp (SCTP device)
66 ef60fd28 33c 1 sctp6 (SCTP6 device)
67 ef775790 38c 1 icmp (ICMP STREAMS driver 1.46)
68 ef7759b4 344 1 icmp6 (ICMP6 STREAMS driver 1.12)
69 ef79a000 5a4c 1 arp (ARP STREAMS driver 1.46)
70 ef7a0000 3a34 1 timod (transport interface str mod)
71 ef602238 e4c 1 sad (STREAMS Administrative Driver ')
72 0 0 0 consconfig (?)
73 ef7a4000 3834 1 consconfig_dacf (Consconfig DACF 1.41)
74 ef7a7000 3f2c 1 usbser (USB generic serial module)
75 ef7ab000 23414 1 usba (USBA: USB Architecture 2.0 1.66)
76 ef7d3000 238c 1 conskbd (conskbd multiplexer driver 5.69)
77 ef7d6000 3b2c 1 kbtrans (kbtrans (key translation) 1.32)
78 ef7d9000 1524 1 consms (Mouse Driver for Sun 'consms' 5)
79 ef63e000 113c 1 wc (Workstation multiplexer Driver )
80 ef7db000 7cec 1 tem (ANSI Terminal Emulator)
81 ef63066c 9fc 1 iwscn (Workstation Redirection driver )
82 ef7df000 1a6c 1 xencons (virtual console driver 1.2)
83 0 0 0 isa (?)
84 ef7e3000 1ad4 1 busra (Bus Resource Allocator (BUSRA) )
85 0 0 0 ehci (?)
86 0 0 0 uhci (?)
87 0 0 0 ohci (?)
88 0 0 0 acpi_drv (?)
89 0 0 0 bscv (?)
90 ef84d000 3aac 1 elfexec (exec module for elf 1.129)
91 0 0 0 bscbus (?)
92 0 0 0 pcie_pci (?)
93 ef829000 468c 1 pcihp (PCI nexus hotplug support v1.69)
94 ef82e000 127c 1 hpcsvc (hot-plug controller services v1)
95 0 0 0 pcie (?)
96 ef836000 68ec 1 kssl (Kernel SSL Interface v1.4)
97 0 0 0 tzmon (?)
98 ef83d000 de88 1 ldterm (terminal line discipline)
99 ef84b000 1994 1 ttcompat (alt ioctl calls)
100 0 0 0 asy (?)
101 0 0 0 ptsl (?)
102 0 0 0 ptc (?)
103 0 0 0 usbsprl (?)
104 0 0 0 ipsecesp (?)
105 0 0 0 ipsecah (?)
106 ef86f000 5aac 1 tl (TPI Local Transport (tl) 1.79)
107 ef7aadac 34c 1 rts (PF_ROUTE socket STREAMS driver )
108 ef875000 38ac 1 keysock (PF_KEY socket STREAMS driver)
109 ef879000 52a8 1 spdsock (PF_POLICY socket STREAMS driver)
110 ef8592b0 130c 1 sysmsg (System message redirection (fan)
111 ef7e08fc 69c 1 cn (Console redirection driver 5.64)
112 ef87e000 13c8 1 mm (memory driver 1.100)
113 ef63dd08 244 1 pipe (pipe(2) syscall)
114 ef880000 4818 1 doorfs (doors)
115 ef885000 1790 1 namefs (filesystem for namefs)
116 ef887000 4a70 1 portfs (event ports)
117 ef803218 e0c 1 sysevent (sysevent driver 1.6)
118 0 0 0 intpexec (?)
119 ef88c000 4bec 1 softmac (softmac module)
120 ef891000 399c 1 xnf (Virtual Ethernet driver 1.12)
121 ef7d86e4 108c 1 mac_ether (Ethernet MAC plugin 1.9)
122 0 0 0 net_dacf (?)
123 0 0 0 openeepr (?)
124 ef84c8bc 794 1 log (streams log driver)
125 ef897000 45a8 1 devinfo (DEVINFO Driver 1.79)
126 0 0 0 md (?)
127 ef8c4000 15838 1 rpcmod (RPC syscall)
128 ef8d8000 1a00 1 tlimod (KTLI misc module)
129 ef8de000 2a48 1 lofs (filesystem for lofs)
130 ef7da334 d48 1 fdfs (filesystem for fd)
131 ef8e1000 84ae8 1 zfs (ZFS filesystem version 11)
132 ef95f000 355c 1 idmap (ID Mapping kernel module)
133 ef969000 10ac 1 cryptoadm (Cryptographic Administrative In)
134 0 0 0 dump (?)
135 ef852b00 44c 1 sy (Indirect driver for tty 'sy' 1.)
136 ef82f244 ddc 1 pool (pool driver 1.7)
137 ef775bb8 4a0 1 kmdb (kmdb driver 1.6)
[0]>
Here's the guests installed packages looking from
dom0. I manage the guest from dom0 so I don't have
to install python on the guest.
: alpha[1]#; df -lk /mnt
Filesystem kbytes used avail capacity Mounted on
/dev/lofi/1 983656 156413 768224 17% /mnt
: alpha[1]#; cd /mnt
: alpha[1]#; pkg list
NAME (AUTHORITY) VERSION STATE UFIX
SUNWadmap 0.5.11-0.94 installed ----
SUNWadmlib-sysid 0.5.11-0.94 installed ----
SUNWadmr 0.5.11-0.94 installed ----
SUNWaudd 0.5.11-0.94 installed ----
SUNWbash 3.2.25-0.94 installed ----
SUNWbind 9.3.4.1-0.94 installed ----
SUNWbip 0.5.11-0.94 installed ----
SUNWcakr 0.5.11-0.94 installed ----
SUNWcakrx 0.5.11-0.94 installed ----
SUNWcar 0.5.11-0.94 installed ----
SUNWcarx 0.5.11-0.94 installed ----
SUNWckr 0.5.11-0.94 installed ----
SUNWcnetr 0.5.11-0.94 installed ----
SUNWcs 0.5.11-0.94 installed ----
SUNWcsd 0.5.11-0.94 installed ----
SUNWcsl 0.5.11-0.94 installed ----
SUNWdtrp 0.5.11-0.94 installed ----
SUNWesu 0.5.11-0.94 installed ----
SUNWgccruntime 3.4.3-0.94 installed ----
SUNWgrub 0.95-0.94 installed ----
SUNWgss 0.5.11-0.94 installed ----
SUNWinstall-libs 0.5.11-0.94 installed ----
SUNWipf 0.5.11-0.94 installed ----
SUNWkey 0.5.11-0.94 installed ----
SUNWkrb 0.5.11-0.94 installed ----
SUNWkvm 0.5.11-0.94 installed ----
SUNWlibms 0.5.11-0.94 installed ----
SUNWlibsasl 0.5.11-0.94 installed ----
SUNWlxml 2.6.31-0.94 installed ----
SUNWmd 0.5.11-0.94 installed ----
SUNWmkcd 2.1.1.38-0.94 installed ----
SUNWopenssl 0.9.8-0.94 installed ----
SUNWos86r 0.5.11-0.94 installed ----
SUNWpicl 0.5.11-0.94 installed ----
SUNWpool 0.5.11-0.94 installed ----
SUNWpr 0.5.11-0.94 installed ----
SUNWpsdcr 0.5.11-0.94 installed ----
SUNWpsdir 0.5.11-0.94 installed ----
SUNWrcmdc 0.5.11-0.94 installed ----
SUNWrmodr 0.5.11-0.94 installed ----
SUNWsmapi 0.5.11-0.94 installed ----
SUNWtecla 1.6.0-0.94 installed ----
SUNWtls 0.5.11-0.94 installed ----
SUNWtoo 0.5.11-0.94 installed ----
SUNWuprl 0.5.11-0.94 installed ----
SUNWusb 0.5.11-0.94 installed ----
SUNWusbs 0.5.11-0.94 installed ----
SUNWwbsup 0.5.11-0.94 installed ----
SUNWzfs 0.5.11-0.94 installed ----
SUNWzfskr 0.5.11-0.94 installed ----
SUNWzlib 1.2.3-0.94 installed ----
SUNWzone 0.5.11-0.94 installed ----
: alpha[1]#;
_______________________________________________
xen-discuss mailing list
[email protected]