Skip to content

Instantly share code, notes, and snippets.

@kashyapc
Created November 13, 2013 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kashyapc/7452916 to your computer and use it in GitHub Desktop.
Save kashyapc/7452916 to your computer and use it in GitHub Desktop.
Oz script stdout
$ sudo ./oz-create-disk-size.bash f19-jeos f19
1
IP forwarding enabled
DEBUG:oz.Guest.FedoraGuest:libvirt bridge name is virbr1
DEBUG:oz.Guest.FedoraGuest:Libvirt type is kvm
DEBUG:oz.Guest.FedoraGuest:Name: f19-jeos, UUID: 2d4265c1-cd9f-448c-9267-b477099b45a0
DEBUG:oz.Guest.FedoraGuest:MAC: 52:54:00:6a:60:72, distro: Fedora
DEBUG:oz.Guest.FedoraGuest:update: 19, arch: x86_64, diskimage: /var/lib/libvirt/images/f19-jeos.dsk
DEBUG:oz.Guest.FedoraGuest:nicmodel: virtio, clockoffset: utc
DEBUG:oz.Guest.FedoraGuest:mousetype: ps2, disk_bus: virtio, disk_dev: vda
DEBUG:oz.Guest.FedoraGuest:icicletmp: /var/lib/oz/icicletmp/f19-jeos, listen_port: 11874
DEBUG:oz.Guest.FedoraGuest:Original ISO path: /var/lib/oz/isos/Fedora19x86_64-url.iso
DEBUG:oz.Guest.FedoraGuest:Modified ISO cache: /var/lib/oz/isos/Fedora19x86_64-url-oz.iso
DEBUG:oz.Guest.FedoraGuest:Output ISO path: /var/lib/libvirt/images/f19-jeos-url-oz.iso
DEBUG:oz.Guest.FedoraGuest:ISO content path: /var/lib/oz/isocontent/f19-jeos-url
INFO:oz.Guest.FedoraGuest:Checking for guest conflicts with f19-jeos
DEBUG:oz.Guest.FedoraGuest:Installtype is URL, trying to do direct kernel boot
DEBUG:oz.Guest.FedoraGuest:Going to write treeinfo to /var/lib/oz/icicletmp/f19-jeos/treeinfo
DEBUG:oz.Guest.FedoraGuest:Trying to get treeinfo from http://foo.bar.redhat.com/pub/fedora/linux/releases/19/Fedora/x86_64/os//.treeinfo
DEBUG:oz.Guest.FedoraGuest:Got treeinfo, parsing
DEBUG:oz.Guest.FedoraGuest:Returning kernel images/pxeboot/vmlinuz and initrd images/pxeboot/initrd.img
INFO:oz.Guest.FedoraGuest:Fetching the original media
DEBUG:oz.Guest.FedoraGuest:Attempting to get the lock for /var/lib/oz/kernels/Fedora19x86_64-kernel
DEBUG:oz.Guest.FedoraGuest:Got the lock, doing the download
INFO:oz.Guest.FedoraGuest:Original install media available, using cached version
INFO:oz.Guest.FedoraGuest:Fetching the original media
DEBUG:oz.Guest.FedoraGuest:Attempting to get the lock for /var/lib/oz/kernels/Fedora19x86_64-ramdisk
DEBUG:oz.Guest.FedoraGuest:Got the lock, doing the download
INFO:oz.Guest.FedoraGuest:Original install media available, using cached version
DEBUG:oz.Guest.FedoraGuest:Putting the kickstart in place
DEBUG:oz.Guest.FedoraGuest:Writing cpio to /var/lib/oz/icicletmp/f19-jeos/extra.cpio
INFO:oz.Guest.FedoraGuest:Generating 10GB diskimage for f19-jeos
INFO:oz.Guest.FedoraGuest:Running install for f19-jeos
INFO:oz.Guest.FedoraGuest:Generate XML for guest f19-jeos with bootdev None
DEBUG:oz.Guest.FedoraGuest:Generated XML:
<?xml version="1.0"?>
<domain type="kvm">
<name>f19-jeos</name>
<memory>1048576</memory>
<currentMemory>1048576</currentMemory>
<uuid>2d4265c1-cd9f-448c-9267-b477099b45a0</uuid>
<clock offset="utc"/>
<vcpu>1</vcpu>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<os>
<type>hvm</type>
<kernel>/var/lib/libvirt/images/f19-jeos-kernel</kernel>
<initrd>/var/lib/libvirt/images/f19-jeos-ramdisk</initrd>
<cmdline>method=http://foo.bar.redhat.com/pub/fedora/linux/releases/19/Fedora/x86_64/os/ ks=file:/ks.cfg</cmdline>
</os>
<on_poweroff>destroy</on_poweroff>
<on_reboot>destroy</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<graphics port="-1" type="vnc"/>
<interface type="bridge">
<source bridge="virbr1"/>
<mac address="52:54:00:6a:60:72"/>
<model type="virtio"/>
</interface>
<input bus="ps2" type="mouse"/>
<serial type="pty">
<target port="0"/>
</serial>
<serial type="tcp">
<source mode="bind" host="127.0.0.1" service="11874"/>
<protocol type="raw"/>
<target port="1"/>
</serial>
<disk device="disk" type="file">
<target dev="vda" bus="virtio"/>
<source file="/var/lib/libvirt/images/f19-jeos.dsk"/>
<driver name="qemu" type="raw"/>
</disk>
</devices>
</domain>
$ cat /etc/oz/oz.cfg | grep -v ^z | grep -v ^#
[paths]
output_dir = /var/lib/libvirt/images
data_dir = /var/lib/oz
screenshot_dir = /var/lib/oz/screenshots
[libvirt]
uri = qemu:///system
image_type = raw
bridge_name = virbr1
[cache]
original_media = yes
modified_media = no
jeos = no
[icicle]
safe_generation = no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment