lost and found ( for me ? )

Fedora 18 : build VMs with boxgrinder ( fail ! )


[root@localhost ~]# cat /etc/fedora-release
Fedora release 18 (Spherical Cow)

# uname -ri
3.7.5-201.fc18.x86_64 x86_64

install boxgrinder via yum
[root@localhost ~]# yum install -y rubygem-boxgrinder-build.noarch rubygem-boxgrinder-core.noarch

make VM definition file for Fedora 17 Vm
[root@localhost Boxgrinder_works]# cat f17-basic.appl
name: f17-x86_64
summary: Just Enough Operating System based on Fedora 17
os:
  name: fedora
  version: 17
  password: password # default is boxgrinder
hardware:
  cpus: 1
  memory: 512
  partitions:     
      "/":
       size: 5 # 5GB HDD
       type: ext4
packages:
  - @core
default_repos: true


build the F17 VM
nn ,error
[root@localhost Boxgrinder_works]# boxgrinder-build f17-basic.appl --os-config format:qcow2 --trace
<snip>
D, [2013-02-07T00:28:12.030425 #22209] DEBUG -- : Installing: setserial                    ##################### [210/211]
D, [2013-02-07T00:28:15.938889 #22209] DEBUG -- : Installing: rootfiles                    ##################### [211/211]
D, [2013-02-07T00:30:00.159584 #22209] DEBUG -- : Unable to create appliance : Unable to run ['/usr/bin/firewall-offline-cmd', '--disabled']!
D, [2013-02-07T00:30:00.235624 #22209] DEBUG -- : Unmounting directory /root/My_works/Boxgrinder_works/build/appliances/x86_64/fedora/17/f17-x86_64/1.0/fedora-plugin/tmp/imgcreate-yICUXj/install_root/
D, [2013-02-07T00:30:01.914531 #22209] DEBUG -- : Removing compat symlinks
D, [2013-02-07T00:30:01.914876 #22209] DEBUG -- : Unmapping /dev/loop0
D, [2013-02-07T00:30:01.931232 #22209] DEBUG -- : Losetup remove /dev/loop0
D, [2013-02-07T00:30:02.064390 #22209] DEBUG -- : Installing: kernel                       ##################### [212/211]
D, [2013-02-07T00:30:02.064770 #22209] DEBUG -- :
E, [2013-02-07T00:30:02.099925 #22209] ERROR -- : /usr/share/gems/gems/boxgrinder-core-0.3.14/lib/boxgrinder-core/helpers/exec-helper.rb:85:in `execute'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:107:in `execute_appliance_creator'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:71:in `build_with_appliance_creator'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/fedora/fedora-plugin.rb:53:in `execute'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:184:in `execute_plugin'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:207:in `execute_without_userchange'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:129:in `block in execute_plugin_chain'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:125:in `each'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:125:in `execute_plugin_chain'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:164:in `create'
/usr/share/gems/gems/boxgrinder-build-0.10.4/bin/boxgrinder-build:203:in `<top (required)>'
/bin/boxgrinder-build:23:in `load'
/bin/boxgrinder-build:23:in `<main>'
F, [2013-02-07T00:30:02.100695 #22209] FATAL -- : RuntimeError: An error occurred while executing command: 'appliance-creator -d -v -t 'build/appliances/x86_64/fedora/17/f17-x86_64/1.0/fedora-plugin/tmp' --cache=/var/cache/boxgrinder/rpms-cache/x86_64/fedora/17 --config 'build/appliances/x86_64/fedora/17/f17-x86_64/1.0/fedora-plugin/tmp/f17-x86_64.ks' -o 'build/appliances/x86_64/fedora/17/f17-x86_64/1.0/fedora-plugin/tmp' --name 'f17-x86_64' --vmem 512 --vcpu 1 --format qcow2', process exited with wrong exit status: 1
/usr/share/gems/gems/boxgrinder-core-0.3.14/lib/boxgrinder-core/helpers/exec-helper.rb:92:in `rescue in execute'
/usr/share/gems/gems/boxgrinder-core-0.3.14/lib/boxgrinder-core/helpers/exec-helper.rb:51:in `execute'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:107:in `execute_appliance_creator'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:71:in `build_with_appliance_creator'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/fedora/fedora-plugin.rb:53:in `execute'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:184:in `execute_plugin'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:207:in `execute_without_userchange'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:129:in `block in execute_plugin_chain'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:125:in `each'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:125:in `execute_plugin_chain'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:164:in `create'
/usr/share/gems/gems/boxgrinder-build-0.10.4/bin/boxgrinder-build:203:in `<top (required)>'
/bin/boxgrinder-build:23:in `load'
/bin/boxgrinder-build:23:in `<main>'


well I can not find the way to solve this , so I’ll build CentOS 6 VM.

Here’s the definition file for CentOS 6 VM
[root@localhost Boxgrinder_works]# cat centos6.appl
name: centos6-x86_64
summary: Just Enough Operating System based on CentOS6
os:
  name: centos
  version: 6
  password: password # default is boxgrinder
hardware:
  cpus: 1
  memory: 512
  partitions:     
      "/":
       size: 5 # 5GB HDD
       type: ext4
packages:
   - @core
   - acpid



[root@localhost Boxgrinder_works]# boxgrinder-build centos6.appl --os-config format:qcow2 --trace
<snip>
D, [2013-02-07T01:13:10.988533 #27863] DEBUG -- : Installing: xorg-x11-drv-ati-firmware    ##################### [191/198]
D, [2013-02-07T01:13:11.003432 #27863] DEBUG -- : Installing: iwl4965-firmware             ##################### [192/198]
D, [2013-02-07T01:13:11.009095 #27863] DEBUG -- : Installing: ql2500-firmware              ##################### [193/198]
D, [2013-02-07T01:13:11.011226 #27863] DEBUG -- : Installing: ql2100-firmware              ##################### [194/198]
D, [2013-02-07T01:13:11.036569 #27863] DEBUG -- : Installing: rt61pci-firmware             ##################### [195/198]
D, [2013-02-07T01:13:11.058688 #27863] DEBUG -- : Installing: ivtv-firmware                ##################### [196/198]
D, [2013-02-07T01:13:11.063158 #27863] DEBUG -- : Installing: ipw2200-firmware             ##################### [197/198]
D, [2013-02-07T01:14:45.939371 #27863] DEBUG -- : Unable to create appliance : Unable to run ['/usr/bin/firewall-offline-cmd', '--disabled']!
D, [2013-02-07T01:14:46.004680 #27863] DEBUG -- : Unmounting directory /root/My_works/Boxgrinder_works/build/appliances/x86_64/centos/6/centos6-x86_64/1.0/centos-plugin/tmp/imgcreate-EesjbB/install_root/
D, [2013-02-07T01:14:46.965246 #27863] DEBUG -- : Removing compat symlinks
D, [2013-02-07T01:14:46.965646 #27863] DEBUG -- : Unmapping /dev/loop0
D, [2013-02-07T01:14:46.986006 #27863] DEBUG -- : Losetup remove /dev/loop0
D, [2013-02-07T01:14:47.112435 #27863] DEBUG -- : Installing: zd1211-firmware              ##################### [198/198]
D, [2013-02-07T01:14:47.112815 #27863] DEBUG -- :
E, [2013-02-07T01:14:47.146380 #27863] ERROR -- : /usr/share/gems/gems/boxgrinder-core-0.3.14/lib/boxgrinder-core/helpers/exec-helper.rb:85:in `execute'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:107:in `execute_appliance_creator'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:71:in `build_with_appliance_creator'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rhel/rhel-plugin.rb:33:in `build_rhel'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/centos/centos-plugin.rb:44:in `execute'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/base-plugin.rb:172:in `run'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:184:in `execute_plugin'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:207:in `execute_without_userchange'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:129:in `block in execute_plugin_chain'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:125:in `each'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:125:in `execute_plugin_chain'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/appliance.rb:164:in `create'
/usr/share/gems/gems/boxgrinder-build-0.10.4/bin/boxgrinder-build:203:in `<top (required)>'
/bin/boxgrinder-build:23:in `load'
/bin/boxgrinder-build:23:in `<main>'
F, [2013-02-07T01:14:47.147247 #27863] FATAL -- : RuntimeError: An error occurred while executing command: 'appliance-creator -d -v -t 'build/appliances/x86_64/centos/6/centos6-x86_64/1.0/centos-plugin/tmp' --cache=/var/cache/boxgrinder/rpms-cache/x86_64/centos/6 --config 'build/appliances/x86_64/centos/6/centos6-x86_64/1.0/centos-plugin/tmp/centos6-x86_64.ks' -o 'build/appliances/x86_64/centos/6/centos6-x86_64/1.0/centos-plugin/tmp' --name 'centos6-x86_64' --vmem 512 --vcpu 1 --format qcow2', process exited with wrong exit status: 1
/usr/share/gems/gems/boxgrinder-core-0.3.14/lib/boxgrinder-core/helpers/exec-helper.rb:92:in `rescue in execute'
/usr/share/gems/gems/boxgrinder-core-0.3.14/lib/boxgrinder-core/helpers/exec-helper.rb:51:in `execute'
/usr/share/gems/gems/boxgrinder-build-0.10.4/lib/boxgrinder-build/plugins/os/rpm-based/rpm-based-os-plugin.rb:107:in `execute_appliance_creator'

nnn , can’t build VMs on Fedora 18...
When using Fedora 17 , I was able to build VMs with boxgrinder without problems.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.