[fedora-virt] How can we pass kernel arguments(e.g:ks=hd:/dev/..) to a cdrom-based guest install?

Daniel P. Berrange berrange at redhat.com
Thu Feb 4 10:38:29 UTC 2010


On Thu, Feb 04, 2010 at 10:45:37AM +0800, Li Ming wrote:
> Hi,
>     How can I pass the ks argument to a guest during install? I am 
> writing an auto install python script,I can use virt-install --location 
> install_tree --extra-args ks=...., but this will active the network, we 
> want to mirror a true DVD install. If use virt-install --cdrom will 
> solve this issue, we have a bad way to pass ks argument,uncompress the 
> ISO,update the syslinux kernel args,then build the ISO again,but this 
> will consume big resource,not a good way. Does someone have good 
> suggestion for me to pass ks arg to kernel while using virt-install 
> --cdrom in python script?

It is only posible to pass kernel boot args when booting off kernel/initrd
direction (ie --location).  With --cdrom the BIOS is in charge. So if you
need to pass args, then you'll have to modify your ISO image to include
them directly.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


More information about the virt mailing list