2018-10-23 14:56:30 |
Xiwen Deng |
bug |
|
|
added bug |
2018-10-24 14:14:41 |
Xiwen Deng |
summary |
diskimage_builder how build berametal image that support lvm |
diskimage_builder build redhat7 cannot boot |
|
2018-10-24 14:15:40 |
Xiwen Deng |
description |
I have a ironic env and want to build some bare metal image. I use diskimage_builder to build a centos7 image that support lvm, the centos7 image build successed. But when bare-metal boot from this image, system will hang.
diskimage-builder command is follow:
disk-image-create centos7 vm devuser disable-selinux dhcp-all-interfaces dracut-regenerate -o centos7.3
export DIB_BLOCK_DEVICE_CONFIG='
- local_loop:
name: image0
- partitioning:
base: image0
label: mbr
partitions:
- name: root
flags: [ boot, primary ]
size: 100%
- lvm:
name: lvm
pvs:
- name: pv
options: ["--force"]
base: root
vgs:
- name: vg
base: ["pv"]
options: ["--force"]
lvs:
- name: lv_root
base: vg
size: 2000M
- mkfs:
name: mkfs_root
base: lv_root
label: cloudimg-rootfs
type: ext4
opts: "-i 4096 -J size=64 "
mount:
mount_point: /
base: mkfs_root
fstab:
options: "defaults"
fsck-passno: 1
'
Host system: Ubuntu 16.04
Is there any issue? |
I have a ironic env and want to build some bare metal image. I use diskimage_builder to build a redhat7 image that support lvm, the redhat7 image build successed. But when bare-metal boot from this image, cannot find bootloader.
diskimage-builder command is follow:
disk-image-create rhel7 vm devuser disable-selinux dhcp-all-interfaces dracut-regenerate -o redhat7
export DIB_BLOCK_DEVICE_CONFIG='
- local_loop:
name: image0
- partitioning:
base: image0
label: mbr
partitions:
- name: root
flags: [ boot,primary ]
size: 100%
- lvm:
name: lvm
base: [root]
pvs:
- name: pv
options: ["--force"]
base: root
vgs:
- name: vg
base: ["pv"]
options: ["--force"]
lvs:
- name: lv_root
base: vg
size: 1800M
- name: lv_home
base: vg
size: 200M
- mkfs:
name: fs_root
base: lv_root
label: "img-rootfs"
type: "ext4"
mount:
mount_point: /
fstab:
options: "rw,relatime"
fsck-passno: 1
- mkfs:
name: fs_home
base: lv_home
type: "ext4"
mount:
mount_point: /home
fstab:
options: "rw,nodev,relatime"
'
export DIB_LOCAL_IMAGE=/home/ubuntu/rhel-guest-image-7.1-20150224.0.x86_64.qcow2
export REG_REPOS='rhel-7-server-optional-rpms,rhel-7-server-extras-rpms'
export REG_AUTO_ATTACH=true
export REG_USER='XXX'
export REG_PASSWORD='xxx'
export REG_METHOD=portal
export DIB_PYTHON_VERSION=2
export DIB_EXTLINUX=1
export DIB_NO_TMPFS=1
Host system: Ubuntu 16.04
Is there any issue? |
|
2018-10-25 02:08:57 |
Xiwen Deng |
attachment added |
|
redhat.log https://bugs.launchpad.net/diskimage-builder/+bug/1799488/+attachment/5205140/+files/redhat.log |
|
2018-10-25 02:09:14 |
Xiwen Deng |
attachment added |
|
redhat.log https://bugs.launchpad.net/diskimage-builder/+bug/1799488/+attachment/5205141/+files/redhat.log |
|
2018-10-25 06:16:55 |
Xiwen Deng |
description |
I have a ironic env and want to build some bare metal image. I use diskimage_builder to build a redhat7 image that support lvm, the redhat7 image build successed. But when bare-metal boot from this image, cannot find bootloader.
diskimage-builder command is follow:
disk-image-create rhel7 vm devuser disable-selinux dhcp-all-interfaces dracut-regenerate -o redhat7
export DIB_BLOCK_DEVICE_CONFIG='
- local_loop:
name: image0
- partitioning:
base: image0
label: mbr
partitions:
- name: root
flags: [ boot,primary ]
size: 100%
- lvm:
name: lvm
base: [root]
pvs:
- name: pv
options: ["--force"]
base: root
vgs:
- name: vg
base: ["pv"]
options: ["--force"]
lvs:
- name: lv_root
base: vg
size: 1800M
- name: lv_home
base: vg
size: 200M
- mkfs:
name: fs_root
base: lv_root
label: "img-rootfs"
type: "ext4"
mount:
mount_point: /
fstab:
options: "rw,relatime"
fsck-passno: 1
- mkfs:
name: fs_home
base: lv_home
type: "ext4"
mount:
mount_point: /home
fstab:
options: "rw,nodev,relatime"
'
export DIB_LOCAL_IMAGE=/home/ubuntu/rhel-guest-image-7.1-20150224.0.x86_64.qcow2
export REG_REPOS='rhel-7-server-optional-rpms,rhel-7-server-extras-rpms'
export REG_AUTO_ATTACH=true
export REG_USER='XXX'
export REG_PASSWORD='xxx'
export REG_METHOD=portal
export DIB_PYTHON_VERSION=2
export DIB_EXTLINUX=1
export DIB_NO_TMPFS=1
Host system: Ubuntu 16.04
Is there any issue? |
I have a ironic env and want to build some bare metal image. I use diskimage_builder to build a redhat7 image that support lvm, the redhat7 image build successed. But when bare-metal boot from this image, cannot find bootloader.
diskimage-builder command is follow:
disk-image-create rhel7 vm devuser disable-selinux dhcp-all-interfaces dracut-regenerate -o redhat7
export DIB_BLOCK_DEVICE_CONFIG='
- local_loop:
name: image0
- partitioning:
base: image0
label: mbr
partitions:
- name: root
flags: [ boot,primary ]
size: 100%
- lvm:
name: lvm
base: [root]
pvs:
- name: pv
options: ["--force"]
base: root
vgs:
- name: vg
base: ["pv"]
options: ["--force"]
lvs:
- name: lv_root
base: vg
size: 1800M
- name: lv_home
base: vg
size: 200M
- mkfs:
name: fs_root
base: lv_root
label: "img-rootfs"
type: "ext4"
mount:
mount_point: /
fstab:
options: "rw,relatime"
fsck-passno: 1
- mkfs:
name: fs_home
base: lv_home
type: "ext4"
mount:
mount_point: /home
fstab:
options: "rw,nodev,relatime"
'
export DIB_LOCAL_IMAGE=/home/ubuntu/rhel-guest-image-7.1-20150224.0.x86_64.qcow2
export REG_REPOS='rhel-7-server-optional-rpms,rhel-7-server-extras-rpms'
export REG_AUTO_ATTACH=true
export REG_USER='XXX'
export REG_PASSWORD='xxx'
export REG_METHOD=portal
export DIB_PYTHON_VERSION=2
export DIB_EXTLINUX=1
export DIB_NO_TMPFS=1
Host system: Ubuntu 16.04
Maybe the image miss bootloader. Is there any issue? |
|