The VMC project is proud to present it's code for your review. You may access the webrev at:
http://cr.opensolaris.org/~glagasse/slim_vmc/ I'm also attaching the DC log file for a VMC run as well as the console output for the same run for the curious as to what this looks like in practice. The timeout for providing review comments is COB October 23rd, 2009. If you need more time, please let me know. Thanks! -- Glenn -------------- next part -------------- glagasse at praetorian:~$ pfexec distro_const build -l vmc_image.xml /usr/share/distro_const/DC-manifest.defval.xml validates /tmp/vmc_image_temp_5401.xml validates Step Resumable Description -------------- --------- ------------- prepare-image prepare bootable ai image create-vm create and configure virtual machine install-vm Boot and Install virtual machine post-config Post installation virtual machine configuration export-esx Export virtual machine for VMWare ESX export-ovf Export virtual machine in OVF format glagasse at praetorian:~$ pfexec distro_const build vmc_image.xml /usr/share/distro_const/DC-manifest.defval.xml validates /tmp/vmc_image_temp_5417.xml validates Simple Log: /backup_tank/vmc/logs/simple-log-2009-10-09-12-14-36 Detail Log: /backup_tank/vmc/logs/detail-log-2009-10-09-12-14-36 Build started Fri Oct 9 12:14:36 2009 Distribution name: OpenSolaris_VM Build Area dataset: backup_tank/vmc Build Area mount point: /backup_tank/vmc ==== prepare-image: prepare bootable ai image 424768 blocks Warning: creating filesystem that does not conform to ISO-9660. Setting input-charset to 'UTF-8' from locale. Size of boot image is 4 sectors -> No emulation 4.72% done, estimate finish Fri Oct 9 12:14:47 2009 9.43% done, estimate finish Fri Oct 9 12:14:47 2009 14.15% done, estimate finish Fri Oct 9 12:14:47 2009 18.86% done, estimate finish Fri Oct 9 12:14:47 2009 23.58% done, estimate finish Fri Oct 9 12:14:47 2009 28.28% done, estimate finish Fri Oct 9 12:14:47 2009 33.00% done, estimate finish Fri Oct 9 12:14:47 2009 37.71% done, estimate finish Fri Oct 9 12:14:47 2009 42.43% done, estimate finish Fri Oct 9 12:14:47 2009 47.14% done, estimate finish Fri Oct 9 12:14:47 2009 51.86% done, estimate finish Fri Oct 9 12:14:47 2009 56.56% done, estimate finish Fri Oct 9 12:14:47 2009 61.28% done, estimate finish Fri Oct 9 12:14:47 2009 65.99% done, estimate finish Fri Oct 9 12:14:47 2009 70.71% done, estimate finish Fri Oct 9 12:14:47 2009 75.41% done, estimate finish Fri Oct 9 12:14:47 2009 80.13% done, estimate finish Fri Oct 9 12:14:47 2009 84.84% done, estimate finish Fri Oct 9 12:14:47 2009 89.56% done, estimate finish Fri Oct 9 12:14:47 2009 94.27% done, estimate finish Fri Oct 9 12:14:47 2009 98.99% done, estimate finish Fri Oct 9 12:14:47 2009 Total translation table size: 2048 Total rockridge attributes bytes: 50797 Total directory bytes: 264192 Path table size(bytes): 1664 Max brk space used b0000 106085 extents written (207 MB) ==== create-vm: create and configure virtual machine ==== install-vm: Boot and Install virtual machine ==== post-config: Post installation virtual machine configuration ==== export-esx: Export virtual machine for VMWare ESX ==== export-ovf: Export virtual machine in OVF format Build completed Fri Oct 9 13:00:24 2009 Build is successful. glagasse at praetorian:~$ -------------- next part -------------- Build started Fri Oct 9 12:14:36 2009 Distribution name: OpenSolaris_VM Build Area dataset: backup_tank/vmc Build Area mount point: /backup_tank/vmc ==== prepare-image: prepare bootable ai image 424768 blocks Make the needed changes to the GRUB menu.lst file. Found match -> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B aimanifest=default,media_boot=true -B auto-shutdown=enable <- The modified GRUB menu.lst file: default=1 timeout=5 min_mem64=1000 title OpenSolaris Development snv_122 X86 Automated Install custom kernel$ /platform/i86pc/kernel/$ISADIR/unix -B aimanifest=prompt,media_boot=true -B auto-shutdown=enable module$ /boot/x86.microroot title OpenSolaris Development snv_122 X86 Automated Install kernel$ /platform/i86pc/kernel/$ISADIR/unix -B aimanifest=default,media_boot=true -B auto-shutdown=enable module$ /boot/x86.microroot title OpenSolaris Development snv_122 X86 Automated Install custom ttya kernel$ /platform/i86pc/kernel/$ISADIR/unix -B aimanifest=prompt,console=ttya,media_boot=true -B auto-shutdown=enable module$ /boot/x86.microroot title OpenSolaris Development snv_122 X86 Automated Install custom ttyb kernel$ /platform/i86pc/kernel/$ISADIR/unix -B aimanifest=prompt,console=ttyb,media_boot=true -B auto-shutdown=enable module$ /boot/x86.microroot title OpenSolaris Development snv_122 X86 Automated Install ttya kernel$ /platform/i86pc/kernel/$ISADIR/unix -B aimanifest=default,console=ttya,media_boot=true -B auto-shutdown=enable module$ /boot/x86.microroot title OpenSolaris Development snv_122 X86 Automated Install ttyb kernel$ /platform/i86pc/kernel/$ISADIR/unix -B aimanifest=default,console=ttyb,media_boot=true -B auto-shutdown=enable module$ /boot/x86.microroot title Boot from Hard Disk rootnoverify (hd0) chainloader +1 Recreate the ISO with mkisofs. Warning: creating filesystem that does not conform to ISO-9660. Setting input-charset to 'UTF-8' from locale. Size of boot image is 4 sectors -> No emulation 4.72% done, estimate finish Fri Oct 9 12:14:47 2009 9.43% done, estimate finish Fri Oct 9 12:14:47 2009 14.15% done, estimate finish Fri Oct 9 12:14:47 2009 18.86% done, estimate finish Fri Oct 9 12:14:47 2009 23.58% done, estimate finish Fri Oct 9 12:14:47 2009 28.28% done, estimate finish Fri Oct 9 12:14:47 2009 33.00% done, estimate finish Fri Oct 9 12:14:47 2009 37.71% done, estimate finish Fri Oct 9 12:14:47 2009 42.43% done, estimate finish Fri Oct 9 12:14:47 2009 47.14% done, estimate finish Fri Oct 9 12:14:47 2009 51.86% done, estimate finish Fri Oct 9 12:14:47 2009 56.56% done, estimate finish Fri Oct 9 12:14:47 2009 61.28% done, estimate finish Fri Oct 9 12:14:47 2009 65.99% done, estimate finish Fri Oct 9 12:14:47 2009 70.71% done, estimate finish Fri Oct 9 12:14:47 2009 75.41% done, estimate finish Fri Oct 9 12:14:47 2009 80.13% done, estimate finish Fri Oct 9 12:14:47 2009 84.84% done, estimate finish Fri Oct 9 12:14:47 2009 89.56% done, estimate finish Fri Oct 9 12:14:47 2009 94.27% done, estimate finish Fri Oct 9 12:14:47 2009 98.99% done, estimate finish Fri Oct 9 12:14:47 2009 Total translation table size: 2048 Total rockridge attributes bytes: 50797 Total directory bytes: 264192 Path table size(bytes): 1664 Max brk space used b0000 106085 extents written (207 MB) ==== create-vm: create and configure virtual machine Error: VM OpenSolaris_VM already exists. The existing VM OpenSolaris_VM will be removed and a new version will be created. Invoking: VBoxManage -q createvm --name OpenSolaris_VM --register Virtual machine 'OpenSolaris_VM' is created and registered. UUID: 7e34f627-bb82-433c-a75b-cad72da11239 Settings file: '/root/.VirtualBox/Machines/OpenSolaris_VM/OpenSolaris_VM.xml' Invoking: VBoxManage -q createhd --filename OpenSolaris_VM --size 16000 --remember 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Disk image created. UUID: 7a56901d-a2c0-4ba6-8893-dbb33f887d12 Invoking: VBoxManage -q openmedium dvd /backup_tank/vmc/build_data/pkg_image/vmc_modified.iso Invoking: VBoxManage -q modifyvm OpenSolaris_VM ==== install-vm: Boot and Install virtual machine Invoking: VBoxHeadless startvm OpenSolaris_VM VirtualBox Headless Interface 3.0.6 (C) 2008-2009 Sun Microsystems, Inc. All rights reserved. Listening on port 3389 ==== post-config: Post installation virtual machine configuration Invoking: VBoxManage -q modifyvm OpenSolaris_VM --memory 1024 --cpus 1 --hwvirtex on ==== export-esx: Export virtual machine for VMWare ESX Invoking: VBoxManage modifyvm OpenSolaris_VM Invoking: VBoxManage clonehd /root/.VirtualBox/HardDisks/OpenSolaris_VM 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Clone hard disk created in format 'VDI'. UUID: f56c0267-cd94-423e-9cd6-8e2cd7053139 Invoking: VBoxManage showvminfo OpenSolaris_VM Invoking: VBoxManage modifyvm OpenSolaris_VM ==== export-ovf: Export virtual machine in OVF format Invoking: VBoxManage modifyvm OpenSolaris_VM Invoking: VBoxManage export OpenSolaris_VM 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Successfully exported 1 machine(s). Invoking: VBoxManage showvminfo OpenSolaris_VM Invoking: VBoxManage modifyvm OpenSolaris_VM Build completed Fri Oct 9 13:00:24 2009 Build is successful.
