[virt-tools-list] problem with virt-install --extra-args

Andrea Bolognani abologna at redhat.com
Wed May 29 09:44:41 UTC 2019


On Tue, 2019-05-28 at 17:37 +0000, Carl G. Riches wrote:
> Not sure if this is the correct place to ask this question--let me know if 
> there's a better venue for this.
> 
> I'm trying to pass kickstart command-line arguments from virt-install via 
> --extra-args.  It's not working.  Here is the virt-install command I'm 
> using:
> 
> virt-install \
>    --name server1 \
>    --memory 2048 \
>    --vcpus 2 \
>    --os-variant "rhel7" \
>    --disk path=/dev/guest_images_lvm/fest \
>    --hvm \
>    --location "nfs:192.168.0.3:/mnt/TANK/software/CentOS/7/BaseInstall" \
>    --network bridge=br2 \
>    -nographics \
>    --extra-args="ks=nfs:192.168.0.3:/mnt/TANK/software/CentOS/7/BaseInstall/ks/ks.DC-VM ip=192.168.0.88::192.168.0.69:255.255.255.0:server1:eth0:none"
> 
> This fails with the error:
> 
>    virt-install: error: unrecognized arguments:
>    ip=192.168.0.88::192.168.0.69:255.255.255.0:server:eth0:none"
> 
> I've tried searching the for this error message but can't find any 
> references.  Can the --extra-args list have a space character in it?  Is 
> that the problem here?
> 
> I'm using virt-install version 1.5.0 on CentOS Linux release 7.6.1810.

I can't reproduce this on RHEL 7.6, and there shouldn't be any
significant difference in the two when it comes to virt-manager.

Your command line looks fairly okay, with only one thing catching
my eye: it should be "--nographics" or better yet "--graphics none",
so with two dashes rather than one (though virt-install seems to be
okay with your version too).

Anyway, having multiple, whitespace-separate options in --extra-args
is definitely supported, so that error message is very surprising.
Are you running the above right on the shell? Is there no additional
quoting involved that might muddy the waters?

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the virt-tools-list mailing list