Skip to content

Instantly share code, notes, and snippets.

@npf
Created October 17, 2016 17:03
Show Gist options
  • Save npf/bfcf3efc811455dc2b02c67b09703757 to your computer and use it in GitHub Desktop.
Save npf/bfcf3efc811455dc2b02c67b09703757 to your computer and use it in GitHub Desktop.
neyron@takelma:~/scm/OAR/kameleon-recipes (refactor $%>)$ kameleon build /home/neyron/scm/OAR/kameleon-recipes/test.yaml --build-path /home/neyron/scm/OAR/kameleon-recipes/build --enable-cache --cache-archive-compression=none --global=appliance_formats:tar --enable-checkpoint
CLI Global variable override: appliance_formats => tar
Creating kameleon build directory : /home/neyron/scm/OAR/kameleon-recipes/build/test
Starting build recipe '/home/neyron/scm/OAR/kameleon-recipes/test.yaml'
Starting command: "bash"
[local] The local_context has been initialized
Restoring last build from step : abae02364c28
[local] abae02364c28
Step 1 : bootstrap/_init_bootstrap/_init_0_enable_checkpoint
--> Running the step...
Step 2 : bootstrap/_init_bootstrap/_init_1_prepare_ssh_config
--> Using checkpoint
Step _init_bootstrap took: 0 secs
Step 3 : bootstrap/enable_checkpoint/enable_checkpoint
--> Running the step...
Step enable_checkpoint took: 1 secs
Step 4 : bootstrap/download_iso/download_iso_install
--> Using checkpoint
Step download_iso took: 1 secs
Step 5 : bootstrap/prepare_disk/create_initial_image
--> Using checkpoint
Step prepare_disk took: 1 secs
Step 6 : bootstrap/ssh_config/select_empty_port
--> Running the step...
[local] SSH forwarding port: 50000
Step 7 : bootstrap/ssh_config/prepare_ssh_config
--> Running the step...
Step ssh_config took: 1 secs
Step 8 : bootstrap/start_qemu/start_qemu_vm
--> Running the step...
[local] qemu-system-x86_64 is /usr/bin/qemu-system-x86_64
[local] Starting qemu...
[local] VNC port: 0
[local] Waiting for SSH to become available for out_context...(89s)
Step 9 : bootstrap/start_qemu/force_shutdown_qemu_vm
--> Running the step...
[local] socat is /usr/bin/socat
Step start_qemu took: 14 secs
Step 10 : bootstrap/install_build_packages/apt_install
--> Using checkpoint
Step install_build_packages took: 1 secs
Step 11 : bootstrap/debootstrap/select_empty_port
--> Running the step...
[local] SSH forwarding port: 50001
Step 12 : bootstrap/debootstrap/partition_disk
--> Using checkpoint
Step 13 : bootstrap/debootstrap/mount_mountdir
--> Using checkpoint
Step 14 : bootstrap/debootstrap/copy_autoinstall_script
--> Using checkpoint
Step 15 : bootstrap/debootstrap/customize_autoinstall_script
--> Using checkpoint
Step 16 : bootstrap/debootstrap/configure_proxy
--> Using checkpoint
Step 17 : bootstrap/debootstrap/debootstrap
--> Using checkpoint
Step debootstrap took: 1 secs
Step 18 : bootstrap/start_chroot/mount_chroot
--> Running the step...
Starting command: "ssh -F /home/neyron/scm/OAR/kameleon-recipes/build/test/ssh_config test -t /bin/bash"
[out] The out_context has been initialized
[out] chroot is /usr/sbin/chroot
[out] mount: mount point /rootfs/dev does not exist
Starting command: "bash"
Starting command: "ssh -F /home/neyron/scm/OAR/kameleon-recipes/build/test/ssh_config test -t /bin/bash"
Error occured when executing the following command :
> exec_out: mount -o bind /dev /rootfs/dev
Press [r] to retry
Press [c] to continue with execution
Press [a] to abort execution
Press [l] to switch to local_context shell
Press [o] to switch to out_context shell
Press [i] to switch to in_context shell
answer ? [c/a/r/l/o/i]: r
User choice: [r] retry
Retrying the previous command...
[out] rm: cannot remove '/rootfs/etc/resolv.conf': No such file or directory
Starting command: "bash"
Starting command: "ssh -F /home/neyron/scm/OAR/kameleon-recipes/build/test/ssh_config test -t /bin/bash"
Error occured when executing the following command :
> exec_out: rm /rootfs/etc/resolv.conf && cp /etc/resolv.conf /rootfs/etc/resolv.conf
Press [r] to retry
Press [c] to continue with execution
Press [a] to abort execution
Press [l] to switch to local_context shell
Press [o] to switch to out_context shell
Press [i] to switch to in_context shell
answer ? [c/a/r/l/o/i]: r
User choice: [r] retry
Retrying the previous command...
Step start_chroot took: 135 secs
Step _clean_bootstrap took: 1 secs
Step 19 : setup/_init_setup/_init_0_init_cpuset
--> Using checkpoint
Step _init_setup took: 1 secs
Step 20 : setup/minimal_install/set_root_password
--> Using checkpoint
Step 21 : setup/minimal_install/upgrade_system
--> Using checkpoint
Step minimal_install took: 1 secs
Step clean_system took: 1 secs
Step 22 : setup/_clean_setup/_clean_7_dump_capacities
--> Using checkpoint
Step 23 : setup/_clean_setup/_clean_6_clean_udev
--> Running the step...
Starting command: "ssh -F /home/neyron/scm/OAR/kameleon-recipes/build/test/ssh_config test -t chroot /rootfs /bin/bash"
[in] The in_context has been initialized
--> Creating checkpoint : 6096fb5615a2
Step 24 : setup/_clean_setup/_clean_5_clean_apt_repository
--> Running the step...
[in] Reading package lists...
[in] Building dependency tree...
[in] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[in] Reading package lists...
[in] Building dependency tree...
[in] Reading package lists...
[in] Building dependency tree...
[in] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Step 25 : setup/_clean_setup/_clean_4_clean_cpuset
--> Running the step...
[out] try umount /rootfs//sys/fs/cgroup...
Step 26 : setup/_clean_setup/_clean_3_mount_chroot
--> Running the step...
[out] try umount /rootfs/sys...
[out] try umount /rootfs/proc...
[out] try umount /rootfs/dev/pts...
[out] try umount /rootfs/dev...
Step 27 : setup/_clean_setup/_clean_2_debootstrap
--> Running the step...
Step 28 : setup/_clean_setup/_clean_1_mount_mountdir
--> Running the step...
[out] try umount /rootfs...
Step 29 : setup/_clean_setup/_clean_0_force_shutdown_qemu_vm
--> Running the step...
[out] Sync
[out] Shutting down virtual machine
[out] Connection to 127.0.0.1 closed by remote host.
The ctx 'out' was closed
Step _clean_setup took: 4 secs
Step _init_export took: 1 secs
Step 30 : export/breakpoint/breakpoint
--> Running the step...
Kameleon breakpoint!
Press [c] to continue with execution
Press [a] to abort execution
Press [l] to switch to local_context shell
Press [o] to switch to out_context shell
Press [i] to switch to in_context shell
answer ? [c/a/l/o/i]: c
User choice: [c] continue
Step breakpoint took: 2 secs
Step 31 : export/disable_checkpoint/disable_checkpoint
--> Running the step...
Step disable_checkpoint took: 1 secs
Step 32 : export/save_appliance_VM/save_appliance
--> Running the step...
[local] python2 is /usr/bin/python2
[local] INFO: Creating /home/neyron/scm/OAR/kameleon-recipes/build/test/test.tar
Step save_appliance_VM took: 15 secs
Step 33 : export/_clean_export/_clean_1_delete_initial_image
--> Skipped
Step 34 : export/_clean_export/_clean_0_delete_iso_install
--> Skipped
Step _clean_export took: 1 secs
Stopping web proxy polipo
Finishing persistent cache with last files
Caching recipe
Packing up the generated cache in /home/neyron/scm/OAR/kameleon-recipes/build/test/test-cache.tar
Stopping web proxy polipo
Successfully built '/home/neyron/scm/OAR/kameleon-recipes/test.yaml'
Total duration : 185 secs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment