我正尝试使用pxeboot和netinstall创build自动configuration服务器。 一切正常(RAID,LVM,…),但我需要为某些目录创buildtmpfs。 我想使用partman的很好的select – 创build大小为x%内存的分区。 因此,无论有多less内存,每台服务器都要使用20%作为tmpfs。 这是可能的,否则我将不得不创build自定义脚本并执行它作为late_command?
经过大量的试验和错误,我终于放弃了R320提供的“SATA RAID”,并采用了AHCI模式。 分区/configuration工作正常,但在下次启动时,机器声称没有操作系统。 在ISO(vFlash)的救援模式下启动它我可以安装磁盘,将chroot安装到已安装的操作系统,重新安装GRUB w / o错误,但仍然无法启动。 按预期方式运行ISO的完整安装。 我如何确定这种行为的原因,更重要的是让它消失? [编辑1下面] 所以我尝试从手动安装中select,过滤掉了所有有disk | partm | grub的内容,并为R320创build了预定义的分区文件。 使用该机器永远不会过去的partman: reading all physical volumes … [编辑2下面] 所以..不能找出为什么/如何configuration系统是永远不能启动16.04我想我会尝试debian8(杰西),并要求他们在IRC预失败,当它失败。 在工头添加了Debian作为操作系统,并将其与Ubuntu相同的预置文件相关联,将主机操作系统从Ubuntu 16.06更改为Debian,并启动了构build。 必须回答2安装程序的问题(语言,硬盘的GRD),并在30分钟内有一个工作的服务器:/不是我想要的。 谁能告诉我如何找出为什么Ubuntu的行为如此不同? 干杯
我正在尝试生成一个半自动的Ubuntu安装。 但是,我正在运行与preseed文件有关的分区问题。 我想要发生的是: 跳过用户通常会指定的菜单(使用所有不同的变体)或手动分区 询问用户使用哪个磁盘(如果我们有多个磁盘) 使用预先指定的分区配方 目前我所拥有的是: ### Partitioning # In addition, you'll need to specify the method to use. # The presently available methods are: # – regular: use the usual partition types for your architecture # – lvm: use LVM to partition the disk # – crypto: use LVM within an encrypted partition […]
假设我在Virtual Box中创build一个虚拟机。 我的环境TFTP启动准备就绪。 安装顺利,除了机器没有VM名称作为主机名… 如何强制呢?
我正在build立一个环境来安装许多Lenny机器,我需要避免与这个过程的任何对话,除了angular落的情况。 有一件让我一直困扰的事情是,在我预先准备好的磁盘配方创buildLinux RAID-1设备之后,安装程序会警告我内核无法重新读取每个MD设备上的分区表。 当我进行手动安装并尝试使用debconf-get-selections预先安装另一个安装时,它似乎完全忽略了整个预置文件。 但通过阅读这些选项,我找不到任何似乎表明它会select“确定”在这个额外的警告。
我正在尝试第一次使用预定义的文件来安装Ubuntu 11.10服务器。 我通过从示例文件开始创build预先定义的文件 ,只是取消注释/select合理的内容。 这是结果,没有评论,(相对)简洁。 你可以看到整个事情,评论和所有, 在这里 。 di debian-installer/locale string en_US di console-setup/ask_detect boolean false di console-setup/layoutcode string us di netcfg/choose_interface select auto di netcfg/get_hostname string leeroy di netcfg/get_domain string wharton.upenn.edu di netcfg/wireless_wep string di mirror/country string manual di mirror/http/hostname string http.us.debian.org di mirror/http/directory string /ubuntu di mirror/http/proxy string di mirror/suite string squeeze di […]
除了通常的设置,我创build一个普通的用户foo ,我想运行几个 di preseed/late_command命令作为那个foo用户。 我最初的想法是用sudo简单地调用这些命令,例如: di preseed/late_command in-target echo "<pwd>" | sudo -Si <command> di preseed/late_command in-target echo "<pwd>" | sudo -Si <command> 。 这适用于某种types的命令。 但问题是,一些命令加载了shell脚本,这些脚本不需要使用sudo运行。 发出一个su -c "<command>"将是另一种select,但是su不提供从stdin读取密码的可能性。 使用su的用户之间跳转是否安全(如果是的话,我如何提供stdin?并且它是否工作或者只是导致su: must be run from a terminal )还是会导致问题?
我有这个configuration(节选)为我的preseed di partman-auto/method string raid di partman-auto/disk string /dev/sda /dev/sdb /dev/sdc /dev/sdd di partman-auto/expert_recipe string \ multiraid:: \ 512 10 512 raid \ $primary{ } \ method{ raid } \ . \ 2000 20 3000 raid \ method{ raid } \ . \ 10000 30 4000000 raid \ method { raid } \ . \ […]
在/var/log/installer/cdebconf/questions.dat我这样说: Name: preseed/late_command Template: preseed/late_command Value: wget http://suportrecerca.barcelonamedia.org/Utilitats/preseed/postscript/post.sh \ -O /usr/sbin/post.sh; chmod 777 /usr/sbin/post.sh; /usr/sbin/post.sh Owners: di Flags: seen 我可以下载post.sh脚本,如下所示: #!/bin/sh ### postscript de veritat #TODO ###### # # config puppet # VAS (puppet?) # snmp (puppet?) apt-get clean apt-get update apt-get -y install htop vim apt-get autoremove # and more stuff that by now […]
我正在使用PXE和USB设置安装程序,并且工作正常,但是我需要在启动菜单中添加一些不同的选项以使用不同的预定义文件。 这是针对不同的情况,比如是否设置软件RAID,以及多less个磁盘等。 因此,理想情况下,我想滚动一个包含多个预先选定文件的initrd映像,并指定在内核参数中使用哪一个映像,详见手册 。 但是,这是行不通的。 看来不pipe我如何指定preseed / file =,安装程序只会查找/preseed.cfg。 下面是我的pxelinux.cfg / default文件的一个例子(syslinux也有一个类似的configuration): DISPLAY boot.txt DEFAULT install_raid_1disk LABEL install_raid_1disk kernel installer/2b/linux append vga=normal initrd=/installer/2b/initrd.gz preseed/file=/preseed-net-raid-1disk.cfg — LABEL install_raid_2disks kernel installer/2b/linux append vga=normal initrd=/installer/2b/initrd.gz preseed/file=/preseed-net-raid-2disks.cfg — LABEL install_noraid kernel installer/2b/linux append vga=normal initrd=/installer/2b/initrd.gz preseed/file=/preseed-net-noraid.cfg — PROMPT 1 TIMEOUT 20