我正在使用preseed来安装Debian 7.5。 我使用Debain 7.5提供的linux和initrd.gz进行PXE引导。 我已经整个系统到了可以完全自动安装操作系统的地步。 我想安装程序完成运行脚本,这是我有一个问题。 我得到preseed使用late_command设置成功调用脚本: di preseed/late_command \ in-target wget -nv -0 /root/myscript.sh http://pxeserver/myscript.sh ; \ in-target chmod +x /root/myscript.sh ; \ in-target /root/myscript.sh myscript.sh的最小版本看起来像这样: #!/bin/bash mkdir /installfiles mount pxeserver:/installfiles /installfiles # Run lots of scripts from /installfiles 唉,挂载失败,错误:mount.nfs:没有这样的设备 我已经尝试了以下的东西: apt-get install nfs-common :确保实际安装了nfs。 它已经是。 which mount.fs :确保贴片机确实存在。 它做了。 一旦系统重新启动,我就可以使用NFS进行挂载,所以我知道这与安装过程中系统的状态有关。 这个脚本作为使用Kickstart的Red Hat机器的安装后脚本运行时没有问题。
我们通过preseed / url使用preseed.cfg来自动化系统部署/configuration。 预置文件保存在源代码pipe理(Subversion)中。 这使得它们可以通过HTTP方便地使用,并且可以限制访问。 我想重用这个资源,但我一直没能find任何方式使用preseed / url需要身份validation。 是否有可能使用需要validation的预先设定的url?
我有一个完整的Ubuntu镜像位于服务器上 http://leelah.home.ianwilson.org/ubuntu/ 在我的preseed.cfg文件中,我有以下的configurationselect我的国家镜像: di mirror/country string manual di mirror/http/hostname string leelah.home.ianwilson.org di mirror/http/directory string /ubuntu di mirror/http/mirror select leelah.home.ianwilson.org 我可以尾随我的access_log文件,看到我的preseed文件正在从安装程序中检索,但没有别的。 当我看到我的networkingstream量时,我看到stream量正在archive.ubuntu.com,而不是我的本地镜像。 如果在引导式安装过程中select“手动镜像”并指定我的镜像服务器,它将使用本地镜像,但是,尝试通过预先设置完成此操作的任何尝试都将失败。 我应该把什么放在我的预先定义的文件,以便安装程序默认到我的本地镜像?
我编写了一个BASH脚本,用于在基于ARM的Debian系统上进行无人值守安装。 其中一个正在安装的软件包是samba。 我补充说 apt-get -y install samba 进入我的安装程序,但apt-get因为Samba工作组的一个错误configuration窗口而挂起。 我怎样才能通过这样的窗户? 我的脚本在apt-get安装包之后下载正确的smb.conf等。
我在我的preseed.cfg中使用此代码进行debiantesting(wheezy): #Partman partman-auto partman-auto/init_automatically_partition select 50some_device__________regular partman-auto partman-auto/select_disk select /var/lib/partman/devices/=dev=sda partman-auto partman-auto/choose_recipe select /lib/partman/recipes/30atomic partman-base partman/choose_partition select 90finish__________finish di partman/confirm boolean true 以便用boot + swap + root分区(“标准”分区整个磁盘分区为一个分区的所有内容)对整个磁盘sda进行分区。 但是,使用这个块会无休止地循环。 用DEBCONF_DEBUG = 5,我可以在第四个控制台看到它在partman中循环。 我如何解决这个代码,并将添加 partman-auto-lvm partman-auto-lvm/new_vg_name string in0 partman-auto partman-auto/init_automatically_partition select 70some_device_crypto__________crypto (后者而不是第一块第一行)使我LVMencryption卷?
我正在使用libvirt的virt-install命令创build一个新的虚拟机。 该命令使用initrd-inject从pipe理程序中提取本地预置文件: virt-install \ –autostart \ –name vm1 \ –ram 4096 \ –location=http://archive.ubuntu.com/ubuntu/dists/precise/main/installer-amd64/ \ –initrd-inject=/var/lib/libvirt/preseeds/vms/preseed.cfg \ –extra-args="locale=en_US console-setup/ask_detect=false keyboard-configuration/layoutcode=us hostname=virtual domain=unassigned-domain interface=auto" \ –vcpu=4 \ –vnc \ –vnclisten=0.0.0.0 \ –noautoconsole \ –os-type=linux \ –os-variant=ubuntukarmic \ -w bridge=br0 \ -w bridge=br1 \ -w network=default \ –disk format=qcow2,size=20,bus=virtio,path=/export/vm/vm1.qcow2 一切正常,直到preseed的late_command部分dynamic地打印一个暴发户脚本文件与下面的行; di preseed/late_command string printf "description \"the run-once bootstrap\"\n\nstart […]
我正在尝试为一些Ubuntu 12.04工作站设置一个最小安装,在这里我可以popup一个CD-ROM,打几次,然后让它为我成像和部署一个现成的系统。 该系统有3个驱动器,但由于Ubuntu的自动安装方法只能做一个驱动器,我只是试图自动分区的第一个驱动器。 这些机器已经有了已经定义的分区,第一个分区是我想要保留的公用分区,而驱动器上的其余分区应该被吹走并用于Ubuntu安装。 总结一下,我想: 删除第一个硬盘上的所有现有Linux分区(实用程序分区是vfat)。 在该空间中创build一个大小为159000 MB的ext4分区,并将其用作/。 这是我的问题 – Ubuntu Kickstart允许我删除所有现有的Linux分区,但是不使用指定的分区信息,我会提示是否使用引导选项或手动。 无论我现在select什么,它创build的分区都使用整个驱动器,而不是159 GB。 如果我通过预置来使用Ubuntu partman,那么它没有一个选项可以把Linux分区吹走,这完全没有。 我一直在尝试使用组合的方法,在其中指定一个ks.cfg文件,其中包含预定义的命令,但我仍然被提示为“引导或手动”选项。 有任何想法吗? 我正在使用备用安装光盘12.04.2,amd64。 这是我的ks.cfg文件: #Generated by Kickstart Configurator #platform=AMD64 or Intel EM64T #System language lang en_US #Language modules to install langsupport en_US #System keyboard keyboard us #System mouse mouse #System timezone timezone –utc America/New_York preseed clock-setup/ntp boolean false #Root […]
使用Ubuntu 10.10备用的预定义文件,我无法跳过“键盘的起源”问题。 任何想法为什么? 我的预置文件如下所示 #### Contents of the preconfiguration file (for squeeze) ### Localization # Preseeding only locale sets language, country and locale. di debian-installer/locale string en_US # The values can also be preseeded individually for greater flexibility. #di debian-installer/language string en #di debian-installer/country string NL #di debian-installer/locale string en_GB.UTF-8 # Optionally specify additional locales […]
我试图通过networking完全自动化Ubuntu安装,但是只有在networking适配器检测之后才加载预先select的文件。 即使在预先select的文件中有这些选项,安装程序也总是要求这个选项: # Select language di debconf/language string en_US:en # Locale settings di localechooser/shortlist select other di localechooser/continentlist select South America di localechooser/countrylist/South_America select BR di localechooser/preferred-locale select en_US.UTF-8 # Keyboard selection. # Disable automatic (interactive) keymap detection. di console-setup/ask_detect boolean false di keyboard-configuration/layout select English (US) di keyboard-configuration/variant select English (US) – English (US, […]
我确定我错过了一些简单的东西,但我想不起来是什么。 我使用Cobbler来导入Debian 8.3.0,但是当我试图在连接到networking的机器上安装它时,安装程序要求一个CDROM,找不到它,然后退出。 有谁知道我需要调整在预先定义的文件或内核参数,以告诉它在networkingpath上find它的安装文件?