4 Replies Latest reply on Nov 14, 2011 10:11 AM by Marek Goldmann

    Centos57 on EBS partitions bugs

    oleg vasya Newbie

      Hello

       

      I'm try build Centos 5.7 for EC2 and have some problems.

      1. Partitions ignore type
      2. Not work post installation

       

      I'm use this config:

       

       

      name: centos-5.7-scalr
      os:
           name: centos
           version: 5
           password: superpass
      
      hardware:
        partitions:
          "/":
            size: 9.5
            type: ext3
           
      files:
           "/etc/rc.d":
                - "rc.local"
      
      post:
           base:
            - "echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config"
            - "/usr/sbin/userdel ec2-user"
            - "rm -rf /home/ec2-user"
            - "rm -f /root/.ssh/authorized_keys"
      
      

       

      And my log:

       

      [root@ip-10-128-131-25 ~]# boxgrinder-build -p ec2 -d ebs centos57.appl --debug
      D, [2011-11-11T04:32:43.249308 #1464] DEBUG -- : Launching new build...
      D, [2011-11-11T04:32:43.252482 #1464] DEBUG -- : Loading os plugins...
      D, [2011-11-11T04:32:43.252611 #1464] DEBUG -- : We have 4 os plugin(s) registered
      D, [2011-11-11T04:32:43.252738 #1464] DEBUG -- : - fedora plugin for Fedora.
      D, [2011-11-11T04:32:43.252863 #1464] DEBUG -- : - centos plugin for CentOS.
      D, [2011-11-11T04:32:43.252987 #1464] DEBUG -- : - rhel plugin for Red Hat Enterprise Linux.
      D, [2011-11-11T04:32:43.253153 #1464] DEBUG -- : - sl plugin for Scientific Linux.
      D, [2011-11-11T04:32:43.253274 #1464] DEBUG -- : Plugins loaded.
      D, [2011-11-11T04:32:43.253396 #1464] DEBUG -- : Loading platform plugins...
      D, [2011-11-11T04:32:43.253517 #1464] DEBUG -- : We have 3 platform plugin(s) registered
      D, [2011-11-11T04:32:43.253642 #1464] DEBUG -- : - vmware plugin for VMware.
      D, [2011-11-11T04:32:43.253766 #1464] DEBUG -- : - virtualbox plugin for VirtualBox.
      D, [2011-11-11T04:32:43.253889 #1464] DEBUG -- : - ec2 plugin for Amazon Elastic Compute Cloud (Amazon EC2).
      D, [2011-11-11T04:32:43.254008 #1464] DEBUG -- : Plugins loaded.
      D, [2011-11-11T04:32:43.254169 #1464] DEBUG -- : Loading delivery plugins...
      D, [2011-11-11T04:32:43.254292 #1464] DEBUG -- : We have 7 delivery plugin(s) registered
      D, [2011-11-11T04:32:43.254417 #1464] DEBUG -- : - elastichosts plugin for ElasticHosts.
      D, [2011-11-11T04:32:43.254541 #1464] DEBUG -- : - ami plugin for Amazon Simple Storage Service (Amazon S3).
      D, [2011-11-11T04:32:43.254665 #1464] DEBUG -- : - cloudfront plugin for Amazon Simple Storage Service (Amazon S3).
      D, [2011-11-11T04:32:43.254789 #1464] DEBUG -- : - local plugin for Local file system.
      D, [2011-11-11T04:32:43.254913 #1464] DEBUG -- : - ebs plugin for Elastic Block Storage.
      D, [2011-11-11T04:32:43.255062 #1464] DEBUG -- : - sftp plugin for SSH File Transfer Protocol.
      D, [2011-11-11T04:32:43.255190 #1464] DEBUG -- : - s3 plugin for Amazon Simple Storage Service (Amazon S3).
      D, [2011-11-11T04:32:43.255309 #1464] DEBUG -- : Plugins loaded.
      I, [2011-11-11T04:32:43.256829 #1464]  INFO -- : Validating appliance definition from centos57.appl file...
      I, [2011-11-11T04:32:43.262252 #1464]  INFO -- : Appliance definition is valid.
      D, [2011-11-11T04:32:43.262497 #1464] DEBUG -- : Adding packages to appliance...
      D, [2011-11-11T04:32:43.262623 #1464] DEBUG -- : 0 package(s) added to appliance.
      I, [2011-11-11T04:32:43.301098 #1464]  INFO -- : Building 'centos-5.7-scalr' appliance for x86_64 architecture.
      I, [2011-11-11T04:32:43.301388 #1464]  INFO -- : Deliverables for centos os plugin exists, skipping.
      I, [2011-11-11T04:32:43.301546 #1464]  INFO -- : Deliverables for ec2 platform plugin exists, skipping.
      D, [2011-11-11T04:32:43.301700 #1464] DEBUG -- : Executing delivery plugin...
      D, [2011-11-11T04:32:43.302431 #1464] DEBUG -- : Checking if appliance is already registered...
      I, [2011-11-11T04:32:43.737784 #1464]  INFO -- : Creating new EBS volume...
      D, [2011-11-11T04:32:44.052851 #1464] DEBUG -- : Volume vol-52ff5b3c created.
      D, [2011-11-11T04:32:44.065604 #1464] DEBUG -- : Waiting for EBS volume vol-52ff5b3c to be available...
      I, [2011-11-11T04:32:44.135443 #1464]  INFO -- : Attaching created volume...
      D, [2011-11-11T04:32:44.297614 #1464] DEBUG -- : Waiting for EBS volume to be attached...
      D, [2011-11-11T04:32:44.412481 #1464] DEBUG -- : Waiting for the attached EBS volume to be discovered by the OS
      I, [2011-11-11T04:32:50.419781 #1464]  INFO -- : Copying data to EBS volume...
      D, [2011-11-11T04:32:50.420164 #1464] DEBUG -- : Preparing guestfs...
      D, [2011-11-11T04:32:50.420981 #1464] DEBUG -- : GFS: set_memsize 300
      D, [2011-11-11T04:32:50.421135 #1464] DEBUG -- : GFS: set_memsize = 0
      D, [2011-11-11T04:32:50.421281 #1464] DEBUG -- : GFS: set_append "noapic"
      D, [2011-11-11T04:32:50.421412 #1464] DEBUG -- : GFS: set_append = 0
      D, [2011-11-11T04:32:50.421616 #1464] DEBUG -- : GFS: set_selinux true
      D, [2011-11-11T04:32:50.421754 #1464] DEBUG -- : GFS: set_selinux = 0
      D, [2011-11-11T04:32:50.454739 #1464] DEBUG -- : GFS: set_qemu "/usr/lib/ruby/gems/1.8/gems/boxgrinder-build-0.9.7/lib/boxgrinder-build/helpers/qemu.wrapper"
      D, [2011-11-11T04:32:50.454905 #1464] DEBUG -- : GFS: set_qemu = 0
      D, [2011-11-11T04:32:50.455381 #1464] DEBUG -- : GFS: add_drive_with_if "build/appliances/x86_64/centos/5/centos-5.7-scalr/1.0/ec2-plugin/centos-5.7-scalr.ec2" "ide"
      D, [2011-11-11T04:32:50.455567 #1464] DEBUG -- : GFS: add_drive_with_if = 0
      D, [2011-11-11T04:32:50.455848 #1464] DEBUG -- : GFS: add_drive_with_if "/dev/xvdg" "ide"
      D, [2011-11-11T04:32:50.455999 #1464] DEBUG -- : GFS: add_drive_with_if = 0
      D, [2011-11-11T04:32:50.456289 #1464] DEBUG -- : Enabling networking for GuestFS...
      D, [2011-11-11T04:32:50.456440 #1464] DEBUG -- : GFS: set_network true
      D, [2011-11-11T04:32:50.456571 #1464] DEBUG -- : GFS: set_network = 0
      D, [2011-11-11T04:32:50.456711 #1464] DEBUG -- : Launching guestfs...
      D, [2011-11-11T04:32:50.456860 #1464] DEBUG -- : GFS: launch
      supermin helper [00000ms] whitelist = (not specified), host_cpu = x86_64, kernel = (null), initrd = (null), appliance = (null)
      supermin helper [00000ms] inputs[0] = /usr/lib64/guestfs/supermin.d
      checking modpath /lib/modules/2.6.38.8-32.fc15.x86_64 is a directory
      picked vmlinuz-2.6.38.8-32.fc15.x86_64 because modpath /lib/modules/2.6.38.8-32.fc15.x86_64 exists
      supermin helper [00000ms] finished creating kernel
      supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d
      supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/base.img
      supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/daemon.img
      supermin helper [00000ms] visiting /usr/lib64/guestfs/supermin.d/hostfiles
      supermin helper [00083ms] visiting /usr/lib64/guestfs/supermin.d/init.img
      supermin helper [00174ms] finished creating appliance
      Could not initialize KVM, will disable KVM support
      D, [2011-11-11T04:33:14.263180 #1464] DEBUG -- : GFS: launch = 0
      D, [2011-11-11T04:33:14.263534 #1464] DEBUG -- : GFS: list_devices
      D, [2011-11-11T04:33:14.273619 #1464] DEBUG -- : GFS: list_devices = ["/dev/sda", "/dev/sdb"]
      D, [2011-11-11T04:33:14.273873 #1464] DEBUG -- : GFS: list_partitions
      D, [2011-11-11T04:33:14.281300 #1464] DEBUG -- : GFS: list_partitions = [""]
      D, [2011-11-11T04:33:14.281485 #1464] DEBUG -- : Loading SELinux policy to sync filesystem...
      D, [2011-11-11T04:33:14.281740 #1464] DEBUG -- : GFS: mount_options "" "/dev/sda" "/"
      D, [2011-11-11T04:33:14.511945 #1464] DEBUG -- : GFS: mount_options = 0
      D, [2011-11-11T04:33:14.512284 #1464] DEBUG -- : GFS: set_e2label "/dev/sda" "79d3d2d4"
      D, [2011-11-11T04:33:14.712640 #1464] DEBUG -- : GFS: set_e2label = 0
      D, [2011-11-11T04:33:14.713109 #1464] DEBUG -- : GFS: exists "/etc/sysconfig/selinux"
      D, [2011-11-11T04:33:14.777786 #1464] DEBUG -- : GFS: exists = 1
      D, [2011-11-11T04:33:14.778209 #1464] DEBUG -- : GFS: aug_init "/" 32
      D, [2011-11-11T04:33:20.563388 #1464] DEBUG -- : GFS: aug_init = 0
      D, [2011-11-11T04:33:20.563672 #1464] DEBUG -- : GFS: aug_rm "/augeas/load//incl[. != '/etc/sysconfig/selinux']"
      D, [2011-11-11T04:33:20.572123 #1464] DEBUG -- : GFS: aug_rm = 0
      D, [2011-11-11T04:33:20.572293 #1464] DEBUG -- : GFS: aug_load
      D, [2011-11-11T04:33:27.228250 #1464] DEBUG -- : GFS: aug_load = 0
      D, [2011-11-11T04:33:27.228529 #1464] DEBUG -- : GFS: aug_get "/files/etc/sysconfig/selinux/SELINUX"
      D, [2011-11-11T04:33:27.231393 #1464] DEBUG -- : GFS: aug_get = "permissive"
      D, [2011-11-11T04:33:27.231560 #1464] DEBUG -- : GFS: sh "/usr/sbin/load_policy"
      D, [2011-11-11T04:33:58.138540 #1464] DEBUG -- : GFS: sh = NULL (error)
      W, [2011-11-11T04:33:58.138823 #1464]  WARN -- : Loading SELinux policy failed. SELinux may be not fully initialized.
      D, [2011-11-11T04:33:58.138977 #1464] DEBUG -- : GFS: aug_close
      D, [2011-11-11T04:33:58.485118 #1464] DEBUG -- : GFS: aug_close = 0
      D, [2011-11-11T04:33:58.485514 #1464] DEBUG -- : GFS: umount "/dev/sda"
      D, [2011-11-11T04:33:58.664841 #1464] DEBUG -- : GFS: umount = 0
      D, [2011-11-11T04:33:58.665222 #1464] DEBUG -- : SELinux policy was loaded, we're ready to sync filesystem.
      I, [2011-11-11T04:33:58.665387 #1464]  INFO -- : Synchronizing filesystems...
      D, [2011-11-11T04:33:58.665559 #1464] DEBUG -- : GFS: mkmountpoint "/in"
      D, [2011-11-11T04:33:58.670576 #1464] DEBUG -- : GFS: mkmountpoint = 0
      D, [2011-11-11T04:33:58.670733 #1464] DEBUG -- : GFS: mkmountpoint "/out"
      D, [2011-11-11T04:33:58.672797 #1464] DEBUG -- : GFS: mkmountpoint = 0
      D, [2011-11-11T04:33:58.672943 #1464] DEBUG -- : GFS: mkmountpoint "/out/in"
      D, [2011-11-11T04:33:58.674876 #1464] DEBUG -- : GFS: mkmountpoint = 0
      D, [2011-11-11T04:33:58.675068 #1464] DEBUG -- : GFS: mkfs "ext4" "/dev/sdb"
      D, [2011-11-11T04:34:05.925060 #1464] DEBUG -- : GFS: mkfs = 0
      D, [2011-11-11T04:34:05.925331 #1464] DEBUG -- : GFS: set_e2label "/dev/sdb" "79d3d2d4"
      D, [2011-11-11T04:34:06.199599 #1464] DEBUG -- : GFS: set_e2label = 0
      D, [2011-11-11T04:34:06.199959 #1464] DEBUG -- : GFS: mount_options "" "/dev/sdb" "/out/in"
      D, [2011-11-11T04:34:06.590756 #1464] DEBUG -- : GFS: mount_options = 0
      D, [2011-11-11T04:34:06.591220 #1464] DEBUG -- : GFS: set_e2label "/dev/sdb" "a570ee9c"
      D, [2011-11-11T04:34:06.793417 #1464] DEBUG -- : GFS: set_e2label = 0
      D, [2011-11-11T04:34:06.793858 #1464] DEBUG -- : GFS: mount_options "" "/dev/sda" "/in"
      D, [2011-11-11T04:34:07.330938 #1464] DEBUG -- : GFS: mount_options = 0
      D, [2011-11-11T04:34:07.331221 #1464] DEBUG -- : GFS: set_e2label "/dev/sda" "d265447e"
      D, [2011-11-11T04:34:07.624627 #1464] DEBUG -- : GFS: set_e2label = 0
      D, [2011-11-11T04:34:07.624943 #1464] DEBUG -- : Copying files...
      D, [2011-11-11T04:34:07.625315 #1464] DEBUG -- : GFS: cp_a "/in/" "/out"
      D, [2011-11-11T04:36:43.321920 #1464] DEBUG -- : GFS: cp_a = 0
      D, [2011-11-11T04:36:43.322372 #1464] DEBUG -- : Files copied.
      D, [2011-11-11T04:36:43.322545 #1464] DEBUG -- : GFS: sync
      D, [2011-11-11T04:36:44.039438 #1464] DEBUG -- : GFS: sync = 0
      D, [2011-11-11T04:36:44.039771 #1464] DEBUG -- : GFS: umount "/dev/sdb"
      D, [2011-11-11T04:36:44.699698 #1464] DEBUG -- : GFS: umount = 0
      D, [2011-11-11T04:36:44.700383 #1464] DEBUG -- : GFS: umount "/dev/sda"
      D, [2011-11-11T04:36:45.142236 #1464] DEBUG -- : GFS: umount = 0
      D, [2011-11-11T04:36:45.142595 #1464] DEBUG -- : GFS: rmmountpoint "/out/in"
      D, [2011-11-11T04:36:45.149092 #1464] DEBUG -- : GFS: rmmountpoint = 0
      D, [2011-11-11T04:36:45.149293 #1464] DEBUG -- : GFS: rmmountpoint "/out"
      D, [2011-11-11T04:36:45.152395 #1464] DEBUG -- : GFS: rmmountpoint = 0
      D, [2011-11-11T04:36:45.152548 #1464] DEBUG -- : GFS: rmmountpoint "/in"
      D, [2011-11-11T04:36:45.155657 #1464] DEBUG -- : GFS: rmmountpoint = 0
      I, [2011-11-11T04:36:45.155805 #1464]  INFO -- : Filesystems synchronized.
      D, [2011-11-11T04:36:45.156020 #1464] DEBUG -- : GFS: mount_options "" "/dev/sdb" "/"
      D, [2011-11-11T04:36:45.369625 #1464] DEBUG -- : GFS: mount_options = 0
      D, [2011-11-11T04:36:45.369897 #1464] DEBUG -- : GFS: set_e2label "/dev/sdb" "79d3d2d4"
      D, [2011-11-11T04:36:45.576696 #1464] DEBUG -- : GFS: set_e2label = 0
      D, [2011-11-11T04:36:45.577088 #1464] DEBUG -- : Adjusting /etc/fstab...
      D, [2011-11-11T04:36:45.577264 #1464] DEBUG -- : GFS: sh "cat /etc/fstab | grep -v '/mnt' | grep -v '/data' | grep -v 'swap' > /etc/fstab.new"
      D, [2011-11-11T04:36:47.731314 #1464] DEBUG -- : GFS: sh = ""
      D, [2011-11-11T04:36:47.731640 #1464] DEBUG -- : GFS: mv "/etc/fstab.new" "/etc/fstab"
      D, [2011-11-11T04:36:47.930421 #1464] DEBUG -- : GFS: mv = 0
      D, [2011-11-11T04:36:47.930787 #1464] DEBUG -- : GFS: sync
      D, [2011-11-11T04:36:48.041075 #1464] DEBUG -- : GFS: sync = 0
      D, [2011-11-11T04:36:48.041340 #1464] DEBUG -- : GFS: umount_all
      D, [2011-11-11T04:36:48.184284 #1464] DEBUG -- : GFS: umount_all = 0
      D, [2011-11-11T04:36:48.184667 #1464] DEBUG -- : GFS: internal_autosync
      D, [2011-11-11T04:36:48.194887 #1464] DEBUG -- : GFS: internal_autosync = 0
      D, [2011-11-11T04:36:48.195134 #1464] DEBUG -- : GFS: kill_subprocess
      D, [2011-11-11T04:36:48.195405 #1464] DEBUG -- : GFS: kill_subprocess = 0
      D, [2011-11-11T04:36:48.256596 #1464] DEBUG -- : Detaching EBS volume...
      D, [2011-11-11T04:36:48.635774 #1464] DEBUG -- : Waiting for EBS volume to become available...
      I, [2011-11-11T04:37:02.010583 #1464]  INFO -- : Creating snapshot from EBS volume...
      D, [2011-11-11T04:37:02.166955 #1464] DEBUG -- : Waiting for snapshot snap-9a2b55f0 to be completed...
      I, [2011-11-11T04:37:02.253850 #1464]  INFO -- : Progress: 0%
      I, [2011-11-11T04:39:38.824690 #1464]  INFO -- : Progress: 100%
      D, [2011-11-11T04:39:38.876181 #1464] DEBUG -- : Deleting temporary EBS volume...
      I, [2011-11-11T04:39:39.047459 #1464]  INFO -- : Registering image...
      I, [2011-11-11T04:39:39.797737 #1464]  INFO -- : Waiting for the new EBS AMI to become available
      I, [2011-11-11T04:39:40.066091 #1464]  INFO -- : EBS AMI 'centos-5.7-scalr/centos/5/1.0-SNAPSHOT-1/x86_64' registered: ami-5cf18b0e (region: ap-southeast-1)
      D, [2011-11-11T04:39:40.066605 #1464] DEBUG -- : Delivery plugin executed.
      
      

       

      I'm use virtual appliance from boxgrinder site.