Changeset 2161 for trunk/packages
- Timestamp:
- Feb 17, 2009, 5:01:23 AM (16 years ago)
- Location:
- trunk/packages
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-autoinstaller/common/usr/sbin/invirt-create-image
r1497 r2161 3 3 # "arguments" come in environment: 4 4 # TARGET a device filename 5 # FSSIZE the desired filesystem size in me gabytes (rest will be swap)5 # FSSIZE the desired filesystem size in mebibytes (rest will be swap) 6 6 # ARCH, DIST, MIRROR 7 7 # HOSTNAME, IP -
trunk/packages/invirt-autoinstaller/debian/changelog
r2128 r2161 1 invirt-autoinstaller (0.0.14) jaunty; urgency=low 2 3 * Don't confuse MB with MiB. 4 5 -- Anders Kaseorg <andersk@mit.edu> Tue, 17 Feb 2009 04:56:38 -0500 6 1 7 invirt-autoinstaller (0.0.13) unstable; urgency=low 2 8 -
trunk/packages/invirt-autoinstaller/host/usr/sbin/invirt-install
r1497 r2161 13 13 export DIST="$3" 14 14 export MIRROR="$4" 15 export FSSIZE="$5" # in me gabytes16 SWAPSIZE="$6" # in me gabytes15 export FSSIZE="$5" # in mebibytes 16 SWAPSIZE="$6" # in mebibytes 17 17 export IP="$7" 18 18 … … 20 20 VGNAME=xenvg 21 21 22 #LVSIZE=`lvs --noheadings --units M--nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'`22 #LVSIZE=`lvs --noheadings --units m --nosuffix -o Size /dev/xenvg/d_foobar_hda | sed 's/\..*//'` 23 23 24 24 if [ -z "$IP" ]; then … … 26 26 fi 27 27 28 /sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE)) M-n "${NAME}_hda" $VGNAME28 /sbin/lvcreate -L $(($FSSIZE+$SWAPSIZE))m -n "${NAME}_hda" $VGNAME 29 29 30 30 export TARGET=/dev/mapper/xenvg-"$(echo "${NAME}_hda" | sed -e 's/-/--/g')" -
trunk/packages/invirt-remote/debian/changelog
r2135 r2161 1 invirt-remote (0.3.6) unstable; urgency=low 2 3 * Don't confuse KB with KiB, or MB with MiB. 4 5 -- Anders Kaseorg <andersk@mit.edu> Tue, 17 Feb 2009 04:58:06 -0500 6 1 7 invirt-remote (0.3.5) unstable; urgency=low 2 8 -
trunk/packages/invirt-remote/host/usr/sbin/invirt-availability
r2114 r2161 9 9 import os 10 10 11 # return the amount of memory in ki lobytes represented by s11 # return the amount of memory in kibibytes represented by s 12 12 def parseUnits(s): 13 13 num, unit = s.split(' ') 14 return int(num) * {'kb':1, 'mb':1024}[unit.lower()] 14 assert unit == 'kB', "unexpected unit" 15 return int(num) 15 16 16 17 def main(argv): 17 18 """ 18 19 Calculate the amount of memory available for new VMs 19 The numbers returned by xm info and xm info -c are in M B20 The numbers in /proc/xen/balloon have nice units21 All math is done in ki lobytes for consistency22 Output is in M B20 The numbers returned by xm info and xm info -c are in MiB 21 The numbers in /proc/xen/balloon are in KiB 22 All math is done in kibibytes for consistency 23 Output is in MiB 23 24 24 25 Bail if /etc/invirt/nocreate exists … … 51 52 xminfoc = yaml.load(output, yaml.CSafeLoader) 52 53 53 # In ki lobytes54 # In kibibytes 54 55 dom0minmem = int(xminfoc['dom0-min-mem']) * 1024 55 56 -
trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-create
r2135 r2161 72 72 max_memory = maxMemory(owner, vms.keys()) 73 73 if vm_memory > max_memory: 74 print >>sys.stderr, "owner %s requested %d M B of memory for vm %s; %d MB allowed" % (owner, vm_memory, machine_name, max_memory)74 print >>sys.stderr, "owner %s requested %d MiB of memory for vm %s; %d MiB allowed" % (owner, vm_memory, machine_name, max_memory) 75 75 return 1 76 76 -
trunk/packages/invirt-web/code/main.py
r2005 r2161 480 480 'Quotas': """ 481 481 Quotas are determined on a per-locker basis. Each locker may have a 482 maximum of 512 me gabytes of active ram, 50 gigabytes of disk, and 4482 maximum of 512 mebibytes of active ram, 50 gibibytes of disk, and 4 483 483 active machines.""", 484 484 'Console': """ … … 489 489 """, 490 490 'Windows': """ 491 <strong>Windows Vista:</strong> The Vista image is licensed for all MIT students and will automatically activate off the network; see <a href="/static/msca-email.txt">the licensing confirmation e-mail</a> for details. The installer req uires 512 MB RAM and at least 7.5 GB disk space (15 GB or more recommended).<br>491 <strong>Windows Vista:</strong> The Vista image is licensed for all MIT students and will automatically activate off the network; see <a href="/static/msca-email.txt">the licensing confirmation e-mail</a> for details. The installer requires 512 MiB RAM and at least 7.5 GiB disk space (15 GiB or more recommended).<br> 492 492 <strong>Windows XP:</strong> This is the volume license CD image. You will need your own volume license key to complete the install. We do not have these available for the general MIT community; ask your department if they have one. 493 493 """ -
trunk/packages/invirt-web/debian/changelog
r2134 r2161 1 invirt-web (0.0.20) unstable; urgency=low 2 3 * Don't confuse MB with MiB, or GB with GiB. 4 5 -- Anders Kaseorg <andersk@mit.edu> Tue, 17 Feb 2009 04:54:54 -0500 6 1 7 invirt-web (0.0.19) unstable; urgency=low 2 8
Note: See TracChangeset
for help on using the changeset viewer.