I would like to perform a unattended installation of ubuntu 16.04 amd64 server. I read and followed this two threads:
https://forum.proxmox.com/threads/u...with-the-qm-create-command.15405/#post-115308
and
https://morph027.gitlab.io/post/pve-kickseed/
I use PVE 4.4
This is my bash script:
-------------------------------------------------------------------------------------------------------------------------------------------
#!/usr/bin/env bash
qm create 4003 \
--virtio0 pve1-all-other-data:32,format=qcow2,cache=writethrough \
--net0 virtio,bridge=vmbr0 \
--name unattended-test \
--bootdisk virtio0 \
--ostype l26 \
--memory 1024 \
--cores 2 \
--args '-kernel /root/linux/linux -initrd /root/linux/initrd.gz -append preseed/file=/root/linux/preseed.cfg'
qm start 4003
exit
-------------------------------------------------------------------------------------------------------------------------------------------
The VM and the installation starts but the preseed.cfg is not preseeded and I have to answer all the installer questions.
Does anyone have a suggestion what I'am doing wrong here?
Another question I have is, is it possible to use a local iso and preseed it to perform the installation.
On Ubuntu KVM/QEMU I can perform a preseeded installation with a local iso which is much faster.
Here is my function I use for KVM/QEMU on Ubuntu:
-------------------------------------------------------------------------------------------------------------------------------------------
#!/usr/bin/env bash
create_kvm_vm (){
virt-install \
--connect qemu:///system \
--ram ${!VM_RAM} \
--vcpus ${!VM_VCPU} \
--video qxl \
--graphics vnc \
--name ${!HOSTN} \
--disk pool=default,size=${!VM_DISKSIZE},bus=virtio \
--network bridge=${!VM_NIC},model=virtio \
--location /var/lib/libvirt/images/ubuntu-16.04.1-server-amd64.iso \
--initrd-inject=/tmp/${!HOSTN}/preseed.cfg \
--os-type=linux \
--os-variant=ubuntu16.04 \
--virt-type kvm
}
-------------------------------------------------------------------------------------------------------------------------------------------
This works fine and is the same preseed.cfg as I used for qm create.
https://forum.proxmox.com/threads/u...with-the-qm-create-command.15405/#post-115308
and
https://morph027.gitlab.io/post/pve-kickseed/
I use PVE 4.4
This is my bash script:
-------------------------------------------------------------------------------------------------------------------------------------------
#!/usr/bin/env bash
qm create 4003 \
--virtio0 pve1-all-other-data:32,format=qcow2,cache=writethrough \
--net0 virtio,bridge=vmbr0 \
--name unattended-test \
--bootdisk virtio0 \
--ostype l26 \
--memory 1024 \
--cores 2 \
--args '-kernel /root/linux/linux -initrd /root/linux/initrd.gz -append preseed/file=/root/linux/preseed.cfg'
qm start 4003
exit
-------------------------------------------------------------------------------------------------------------------------------------------
The VM and the installation starts but the preseed.cfg is not preseeded and I have to answer all the installer questions.
Does anyone have a suggestion what I'am doing wrong here?
Another question I have is, is it possible to use a local iso and preseed it to perform the installation.
On Ubuntu KVM/QEMU I can perform a preseeded installation with a local iso which is much faster.
Here is my function I use for KVM/QEMU on Ubuntu:
-------------------------------------------------------------------------------------------------------------------------------------------
#!/usr/bin/env bash
create_kvm_vm (){
virt-install \
--connect qemu:///system \
--ram ${!VM_RAM} \
--vcpus ${!VM_VCPU} \
--video qxl \
--graphics vnc \
--name ${!HOSTN} \
--disk pool=default,size=${!VM_DISKSIZE},bus=virtio \
--network bridge=${!VM_NIC},model=virtio \
--location /var/lib/libvirt/images/ubuntu-16.04.1-server-amd64.iso \
--initrd-inject=/tmp/${!HOSTN}/preseed.cfg \
--os-type=linux \
--os-variant=ubuntu16.04 \
--virt-type kvm
}
-------------------------------------------------------------------------------------------------------------------------------------------
This works fine and is the same preseed.cfg as I used for qm create.