在centos中,您如何自动为yum install回答是,以便它是无辅助安装?
安装介质:ubuntu-10.04-desktop-i386.iso
我尝试了很多不同的引导参数,但安装程序要么忽略了预置配置,要么直接将自己作为 LiveCD 引导。
我尝试过的引导参数示例:
auto url= http://mydomain.com/path/preseed.cfg boot=casper only-ubiquity initrd=/casper/initrd.lz 安静的飞溅——
如果我删除only-ubiquity,它会作为 LiveCD 启动。如果我删除boot=casper,它将无法启动。如果我添加vga=normal locale=en_US console-setup/layoutcode=us console-setup/ask_detect=false interface=auto,它仍然无法进行自动安装。如果我删除auto,它是一样的。
启动此类安装的正确引导参数是什么?
从服务器托管的 apache 日志中preseed.cfg,我看到安装程序在获取预置文件时没有问题。我的预置文件几乎与https://help.ubuntu.com/10.04/installation-guide/example-preseed.txt 中的文件相同。此外,我已经运行debconf-set-selections -c preseed.cfg以确保预置文件是正确的。
我正在尝试从 MSI 包安装应用程序(SalesLogix 7.2 管理工具和服务器),但只想安装特定功能。如何确定功能名称以便我可以尝试使用 ADDLOCAL 参数?

我使用的 virt-install 命令行如下
sudo virt-install kvm ubuntu -v sudo virt-install -v -n gold-egg -r 256 --disk path=/var/lib/libvirt/images/golden-egg.qcow2,size=5 --os-type linux --os-variant ubuntulucid --force --cdrom=temp/ubuntu-10.04.1-server-amd64.iso --virt-type qemu --connect=qemu:///system --extra-args="接口eth0的= =主机域名goldenegg = foo.internal加上netcfg / get_ipaddress = 192.168.1.15加上netcfg / get_netmask = 255.255.255.0加上netcfg / get_gateway = 192.168.1.1加上netcfg / get_nameservers = 192.168.1.1加上netcfg / disable_dhcp = TRUE自动URL = HTTP:/ /192.168.1.100/ "
ubuntu 安装程序正在启动,但它进入交互模式。我已经设置了一个小型网络服务器来提供 preseed 文件,并验证它是在指定的 url 上提供的。但是,服务器不会在创建 VM 时受到影响,并且 VM 控制台或我可以通过的任何其他内容都没有错误。
关于如何继续进行这项工作的任何建议。
我目前正在尝试自动构建运行 Windows Server 2012 R2 的 VM。目前的挑战是自动化添加角色和功能。在角色和功能向导中,有一个选项可以导出可在 PowerShell 中运行的 XML 配置文件。
但是,在查看 XML 文件后,我可以看到它特定于它正在运行的服务器 - 它包含诸如“ComputerName”之类的字段。
如果我想运行一个在许多 VM 上安装角色和功能的脚本怎么办?我需要一个通用的配置文件,而不是针对特定计算机进行个性化。
有没有人对这个问题有意见?
我正在尝试创建一个脚本,强制 Debian Lenny 安装以安装最新版本的 CRAN R。在安装过程中,似乎 libc6 已升级,并且安装需要交互确认可以重新启动三个服务(mysql、exim4、cron )。此过程必须无人值守,因为它在 Amazon 的 Elastic Map Reduce (EMR) 机器上运行。但我的选择不多了。这是我尝试过的一些事情:
这个前面的问题似乎正是我要找的。所以我设置了我的安装脚本如下:
# set my CRAN repos... yes, I know there's a new convention where to put these.
echo "deb http://cran.r-project.org/bin/linux/debian lenny-cran/" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://cran.r-project.org/bin/linux/debian lenny-cran/" | sudo tee -a /etc/apt/sources.list
# set the dpkg.cfg options per the previous SuperUser question
echo "force-confold" | sudo tee -a /etc/dpkg/dpkg.cfg
echo "force-confdef" | sudo tee -a /etc/dpkg/dpkg.cfg
export DEBIAN_FRONTEND=noninteractive
# …Run Code Online (Sandbox Code Playgroud) 此页面说要进行静默安装,请传入参数/s /v/qn。它提到了什么/s- 静默安装 - 但没有提到什么/v/qn。
那么它有什么作用呢?为什么是奇怪的格式?(在一个安装程序上我尝试过/v /qn(有空格)但它没有用。虽然在另一个安装程序上我也必须做/S(大写)并且/v/qn似乎没有做任何事情。)
我是一个巨大的自动化的风扇等等,所以有这样做的能力还挺重要的。
在本例中,我们将文件命名为Autounattend.xml,将其放在引导盘的根目录中,并重新创建 ISO 以从 DVD 引导。我想使用 WDS,但现在不是一个选项。
我使用 System Image Manager 创建了应答文件,其中的一部分如下所示。
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DiskConfiguration>
<Disk wcm:action="modify">
<CreatePartitions>
<CreatePartition wcm:action="modify">
<Order>1</Order>
<Size>71024</Size>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="modify">
<Active>true</Active>
<Extend>false</Extend>
<Format>NTFS</Format>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows Server 2012 SERVERSTANDARD</Value>
</MetaData>
</InstallFrom>
<WillShowUI>OnError</WillShowUI>
</OSImage>
</ImageInstall>
Run Code Online (Sandbox Code Playgroud)
仍然显示这个:

我尝试了各种各样的东西,包括wcm:action="add"整个过程。我不知道为什么这在 Windows 2012 上可能不起作用。我在 Windows 7 …
我正在尝试完全自动化地预置 debian 11 netinstall。\n我在这里阅读了许多文档:
\n这是我的引导行(来自 grub.cfg)
\nset default="autoinstall"\nset timeout=3\n\nmenuentry "Debian 11 Fully Automated UEFI LVM LUKS BTRFS Remote Decrypt DEBUG TTY4" --id autoinstall {\n set background_color=black\n linux /debian-installer/amd64/linux auto=true url=tftp://192.168.1.100/preseed/debseed11_crypt.cfg net.ifnames=0 biosdevname=0 ipv6.disable=1 language=en locale=en_US.UTF-8 keymap=fr vga=788 noprompt DEBCONF_DEBUG=5 --- quiet\n initrd /debian-installer/amd64/initrd.gz\n}\nRun Code Online (Sandbox Code Playgroud)\n这是我的预置文件:
\n#### Preseed preconfiguration file (for Debian buster)\n### Partman early command\n### Kernal parameter\n#d-i debian-installer/add-kernel-opts string net.ifnames=0 biosdevname=0 hostname=unassigned-hostname domain=unassigned-domain\n#d-i debconf/priority critical\n\n#d-i debian-installer/add-kernel-opts string net.ifnames=0 biosdevname=0 console=ttyS0,19200n8\n### Localization\nd-i debian-installer/locale string en_US\nd-i debian-installer/language string en\nd-i …Run Code Online (Sandbox Code Playgroud) debian ×3
automation ×2
installation ×2
msi ×2
preseed ×2
ubuntu ×2
apt ×1
dpkg ×1
libc6 ×1
libvirt ×1
linux ×1
powershell ×1
pxe-boot ×1
ubuntu-10.04 ×1
windows ×1
xml ×1
yum ×1