0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【備忘録】KVMコンソールで使うISOイメージ作成

Last updated at Posted at 2022-02-23

【概要】
Ubuntu 20.04.3 LTSのISOをコンソール起動対応にする。

・ISOイメージを作業用エリアにコピー 

# mount ubuntu-20.04.3-live-server-amd64.iso /mnt
# mkdir ubuntu-20.04.3-live-server-amd64-console
# cd ubuntu-20.04.3-live-server-amd64-console
# rsync -a /mnt/ .
# umount /mnt
# ll
total 80
dr-xr-xr-x 11 root root  4096 Aug 24  2021 ./
drwxrwxrwx  5 root root  4096 Feb 23 10:24 ../
dr-xr-xr-x  2 root root  4096 Aug 24  2021 .disk/
dr-xr-xr-x  3 root root  4096 Aug 24  2021 EFI/
dr-xr-xr-x  3 root root  4096 Aug 24  2021 boot/
dr-xr-xr-x  3 root root  4096 Aug 24  2021 casper/
dr-xr-xr-x  3 root root  4096 Aug 24  2021 dists/
dr-xr-xr-x  2 root root  4096 Aug 24  2021 install/
dr-xr-xr-x  2 root root 12288 Feb 23 10:35 isolinux/
-r--r--r--  1 root root 27368 Aug 24  2021 md5sum.txt
dr-xr-xr-x  3 root root  4096 Aug 24  2021 pool/
dr-xr-xr-x  2 root root  4096 Aug 24  2021 preseed/
lrwxrwxrwx  1 root root     1 Aug 24  2021 ubuntu -> ./

・コンソール対応にファイル変更1(isolinux.cfg)
 ui gfxboot bootlogo行をコメントアウト

# vi isolinux/isolinux.cfg
path
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
# ui gfxboot bootlogo ←コメント

・コンソール対応にファイル変更1(txt.cfg)
 下記を追加
 serial 0 115200
 console=tty0 console=ttyS0,115200n8

# vi ./isolinux/txt.cfg
serial 0 115200
default live
label live
  menu label ^Install Ubuntu Server
  kernel /casper/vmlinuz
  append   initrd=/casper/initrd quiet console=tty0 console=ttyS0,115200n8  ---
label hwe-live
  menu label ^Install Ubuntu Server with the HWE kernel
  kernel /casper/hwe-vmlinuz
  append   initrd=/casper/hwe-initrd quiet  ---
label memtest
  menu label Test ^memory
  kernel /install/mt86plus
label hd
  menu label ^Boot from first hard disk
  localboot 0x80

・ISOイメージ作成
 ubuntu-20.04.3-live-server-amd64-console.isoでISOを作成

# mkisofs -r -l -J -o ../ubuntu-20.04.3-live-server-amd64-console.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table .
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?