Re: List of valid arch's for virt-install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/11/24 7:43 AM, Jeffrey Walton wrote:
> The man page for virt-install [1] does not list valid arch's. (I can't
> find a page for virt-install at libvirt.org).
> Where can I find the list of valid arch's for virt-install?

Hmm, yeah, it seems the --arch argument doesn't support the usual method
for enumerating possible values (which to be fair, the man page says *some*
suboptions support that):

  $ virt-install --arch=?
  ERROR    Host does not support any virtualization options for architecture '?'

I think something like this is a reasonable fallback:

  $ virsh capabilities | xmllint --xpath '//arch/@name' -
   name="alpha"
   name="armv6l"
   name="armv7l"
   name="aarch64"
   name="cris"
   name="i686"
   name="m68k"
   name="microblaze"
   name="microblazeel"
   name="mips"
   name="mipsel"
   name="mips64"
   name="mips64el"
   name="ppc"
   name="ppc64"
   name="ppc64le"
   name="riscv32"
   name="riscv64"
   name="s390x"
   name="sh4"
   name="sh4eb"
   name="sparc"
   name="sparc64"
   name="x86_64"
   name="xtensa"
   name="xtensaeb"

> A related question is, if I also specify `--cpu host` to ensure the
> host cpu's ISA's are available to the vm, then will that conflict with
> the `--arch arch` option?

I don't know for certain, as I haven't tried, but I'd guess that'd be
fine if the host and the guest are the same (e.g., amd64 host, amd64 guest.)

Someone more knowledgeable will probably weigh in with a more conclusive
answer.

--
Connor



[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux