<div dir="ltr">Thanks, Peter.<div><br></div><div>Your advice did the trick.  And your comment "You're already very close to a working solution." gave me hope when I first read it. :-)</div><div><br></div><div>For those that stumble upon this thread in the future, here the final command line:</div><div><br></div><div><br></div><div>virt-install --name=win10 \<br>--ram=4096 \<br>--cpu=host \<br>--vcpus=3 \<br>--os-type=windows \<br>--os-variant=win10 \<br>--disk path=/home/bill/win10.img,bus=virtio \<br>--disk path=/home/bill/virtio-win-0.1.172.iso,device=cdrom \<br>--cdrom /home/bill/win10.iso \<br>--network bridge=br0,model=virtio \<br>--graphics vnc,listen=0.0.0.0,port=5901<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 16, 2019 at 2:56 AM Peter Crowther <<a href="mailto:peter.crowther@melandra.com">peter.crowther@melandra.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 15 Sep 2019, 17:36 Henry Cheng, <<a href="mailto:hbc2048@gmail.com" target="_blank">hbc2048@gmail.com</a>> wrote:<br>
> I'm having trouble getting a vm going.  (This is my first time ever.  I believe I have kvm/qemu + virt-manager tools installed correctly.)<br>
<br>
Welcome to the list, and welcome to virt-install's "interesting"<br>
differences in parameter parsing depending on which parameter you use!<br>
 You're already very close to a working solution.<br>
<br>
> ERROR    Validating install media '/home/bill/win10.iso,bus=ide' failed: Must specify storage creation parameters for non-existent path '/home/bill/win10.iso,bus=ide'.<br>
> I'm not sure what " non-existent path " means below because i know that file exists at that path.<br>
<br>
... tells you that there's not a file at the path<br>
'/home/bill/win10.iso,bus=ide'.  There probably isn't, though I<br>
suspect there's one at  '/home/bill/win10.iso' ;-).  virt-install is<br>
parsing everything after the = as a path, because --cdrom doesn't take<br>
key=value parameters (unlike --disk).  Everything in the argument is<br>
assumed to be part of the path.<br>
<br>
So you could either use simply:<br>
  --cdrom=/home/bill/win10.iso,<br>
or a --disk parameter that allows you to pass options...<br>
>    --disk /home/bill/win10.iso,device=cdrom,bus=ide   <<< this one gives:  "An install method must be specified"<br>
<br>
... which you did.  This has worked, so you've moved on to a different<br>
problem: virt-install can't guess what to boot from (in this case,<br>
which of two cdrom devices), so is asking you to specify via --boot.<br>
I'm not sure how to specify this for two CDROM drives (I use floppy =<br>
CDROM for my Windows installs, see below).  You *might* be able to<br>
specify --boot cdrom, or you might need to do more work, or it might<br>
depend on your virt-install version.<br>
<br>
Cheers,<br>
<br>
- Peter<br>
<br>
== ADDENDA ==<br>
<br>
> (Also, I am doing this on a headless server so using the gui virt-manager isn't an option.)<br>
<br>
Assuming your headless server is a UNIX box of some kind, you can<br>
always install enough of X11 that you can run virt-manager with the<br>
display on a window on the machine from which you're remoting into the<br>
server.  Talk to me off-list if you want more details; I routinely run<br>
virt-manager on our headless servers from my Windows desktop box.<br>
<br>
> This is what I a getting when I try to create the vm.<br>
> $ virt-install --name=win10 \<br>
> > --disk path=/home/bill/win10.img,bus=virtio \<br>
> > --cdrom=/home/bill/win10.iso,bus=ide \<br>
> > --disk path=/home/bill/virtio-win-0.1.172.iso,device=cdrom,bus=ide \<br>
<br>
OK, you're going for the dual-CDROM approach to adding the Windows<br>
drivers.  I've not tried that, so can't comment on how well it works.<br>
I still use the floppy image and a single CDROM image (and a SATA<br>
rather than IDE bus, though that shouldn't make a difference):<br>
<br>
    --disk=device=floppy,path=/path/to/floppy.img \<br>
    --disk=device=cdrom,bus=sata,perms=ro,path=/path/to/image.iso \<br>
<br>
Just as a side note, I suspect you'll eventually want to add<br>
",model=virtio" to your network line, so that you use the (fast)<br>
virtio driver there as well, rather than whatever default virt-install<br>
gives you for Windows 10.<br>
</blockquote></div>