ubuntu安装笔记

ubuntu server installer的远程安装

意外发现了ubuntu server installer提供了远程安装的选项。正常启动,打开ubuntu installer后,按f1或者点右上角的[Help],可以看到菜单里有个叫Remote SSH Access的项,点开之后就会呈现能够远程访问安装器所在的live os的ssh凭据,就能方便地远程配置安装了。

启动ubuntu iso

如果无法识别分区,运行insmod part_gpt part_mbr

在grub中执行:

set root=(hd0,3)
set isofile="/ubuntu-20.04.4-live-server-amd64.iso"
loopback loop $isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile fsck.mode=skip quiet toram --
initrd (loop)/casper/initrd

# after boot, run `sudo umount -lrf /dev/sd?` to umount the partition containing the ISO file
# ref: https://askubuntu.com/questions/1254298/boot-ubuntu-iso-pure-from-ramdisk-memdisk

Last modified on 2022-03-01