[fedora-virt] supplying kickstart file using initrd-inject?
fp.to.anomalyst at xoxy.net
fp.to.anomalyst at xoxy.net
Mon Jan 17 22:09:15 UTC 2011
>From the man page:
--initrd-inject=PATH
Add PATH to the root of the initrd fetched with "--location". This
can be used to run an automated install without requiring a network
hosted kickstart file:
--initrd-injections=/path/to/my.ks --extra-args ``ks=file:/my.ks''
The tree:
# ll /iso
lrwxrwxrwx. 1 root root 9 Jan 13 16:09 /iso -> /aaa1/iso
# ll /iso/F*
-rw-r--r--. 1 root root 719323136 Jan 15 06:40 /iso/Fedora-14-i686-Live-KDE.iso
-rw-r--r--. 1 qemu qemu 3520802816 Jan 4 16:38 /iso/Fedora-14-x86_64-DVD.iso
-rw-r--r--. 1 qemu qemu 230686720 Jan 3 16:52
/iso/Fedora-14-x86_64-netinst.iso
# ll /iso/ks/*.ks
-rw-------. 1 root root 2477 Jan 17 11:32 /iso/ks/foo.ks
The command:
virt-install --name junkfoo1 --ram=512
--location=/iso/Fedora-14-x86_64-DVD.iso --file=/dev/sdc2 --file-size
8 --virt-type=kvm --vcpus=1 --check-cpu --accelerate --os-type=linux
os-variant=fedor14 --initrd-inject=/iso/ks --extra-args
ks=file:/foo.ks --vnc
The result:
ERROR [Errno 21] Is a directory: '/iso/ks'
My google-fu does not seem to turn up an answer as to how I might be
futzing this up.
TIA for a cluestick to the head.
Bonus question:
Since the --file is spec'ing a partition which, of course, has an
intrinsic size, is the size option a) unneeded b) incorrect c) ignored
or some combination?
--file=/dev/sdc2 --file-size 8
More information about the virt
mailing list