Auto install OS when create VM

Sep 18, 2022
33
1
13
Hello,

How can I make OS will installed automatic when vm created by CLI?

I see I can do it:
--args '-kernel /root/vmlinuz -initrd /root/initrd.img -append inst.ks=/root/configure.ks'

But it is not working, it do this:
1668536868619.png

Than it enter emergency mode.

Any help?

Thank you!
 
Last edited:
They probably carefully follow many available guides and documentation on how to set something like this up. Since this is happening inside the VM - hypervisor choice is not relevant to the setup in any way.

Its really unclear what steps led you to the screenshot in your original post. Are you booting from some ISO?
I could be wrong, but this seems wrong to me " inst.ks=/root/configure.ks'" - if you are booting from ISO, what is this /root directory? where did it come from? what placed the kickstart file into it that you expect to be there.

https://access.redhat.com/documenta.../html/installation_guide/sect-kickstart-howto:
Code:
A Kickstart file must be placed in one of the following locations:
On removable media, such as a DVD or USB flash drive
On a hard drive connected to the installation system
On a network share reachable from the installation system


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Hey, @maorbari , did you ever get this working?

I am mounting the 'boot.iso' via -cdrom=local:iso/rh8-stream-boot.iso successfully, and if i boot without extra --args, it works fine, but trying to do the --args '-kernel /root/vmlinuz' like you do, i get a "qemu: could not open kernel file".

I've tried variations of:
  • -args "-kernel /vmlinuz"
  • -args "-kernel vmlinuz"
  • -args "-kernel isolinux/vmlinuz"
  • -args "-kernel /isolinux/vmlinuz"
  • -args "-kernel /boot/vmlinuz"
  • -args "-kernel boot/vmlinuz"
  • -args "-kernel /root/vmlinuz"
  • -args "-kernel root/vmlinuz"
all to no avail.

Maybe you're using a different boot.iso? Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!