| ... | ... |
@@ -147,6 +147,14 @@ function install_ironic {
|
| 147 | 147 |
if [[ "$IRONIC_IPXE_ENABLED" == "True" ]] ; then |
| 148 | 148 |
install_apache_wsgi |
| 149 | 149 |
fi |
| 150 |
+ |
|
| 151 |
+ if [[ "$IRONIC_VM_LOG_CONSOLE" == "True" ]] && is_ubuntu; then |
|
| 152 |
+ # Ubuntu packaging+apparmor issue prevents libvirt from loading |
|
| 153 |
+ # the ROM from /usr/share/misc. Workaround by installing it directly |
|
| 154 |
+ # to a directory that it can read from. (LP: #1393548) |
|
| 155 |
+ sudo rm -rf /usr/share/qemu/sgabios.bin |
|
| 156 |
+ sudo cp /usr/share/misc/sgabios.bin /usr/share/qemu/sgabios.bin |
|
| 157 |
+ fi |
|
| 150 | 158 |
} |
| 151 | 159 |
|
| 152 | 160 |
# install_ironicclient() - Collect sources and prepare |
| ... | ... |
@@ -78,8 +78,10 @@ def main(): |
| 78 | 78 |
params['emulator'] = "/usr/bin/qemu-kvm" |
| 79 | 79 |
|
| 80 | 80 |
if args.console_log: |
| 81 |
+ params['bios_serial'] = "<bios useserial='yes'/>" |
|
| 81 | 82 |
params['console_log'] = CONSOLE_LOG % {'console_log': args.console_log}
|
| 82 | 83 |
else: |
| 84 |
+ params['bios_serial'] = '' |
|
| 83 | 85 |
params['console_log'] = '' |
| 84 | 86 |
libvirt_template = source_template % params |
| 85 | 87 |
conn = libvirt.open("qemu:///system")
|