[libvirt-users] virt-install not spawning VM
Martin Kletzander
mkletzan at redhat.com
Fri Nov 8 12:48:02 UTC 2013
On Fri, Nov 08, 2013 at 03:29:31AM +0000, Sudarshan Pathalam (supathal) wrote:
> Hello,
>
> In trying girt-install with below parameters I get the following error,
> -bash: virt-install --connect qemu:///system --name vm1 --ram 2048 --vcpus: No such file or directory
> What am I doing wrong?
>
> Thanks in advance.
>
> host:~# qemu-img create -f qcow2 /var/lib/libvirt/images/vm1.qcow2 20480
> Formatting '/var/lib/libvirt/images/vm1.qcow2', fmt=qcow2 size=20480 encryption=off cluster_size=65536
>
> host:~# ls /var/lib/libvirt/images/
> ubuntu-12.04.3-server-amd64.iso vm1.qcow2
>
> host:~# virt-install \
> > --connect qemu:///system \
> > --name vm1 \
> > --ram 2048 \
> > --vcpus 2 \
> > --disk path=/var/lib/libvirt/images/vm1.qcow2,size=20 \
> > --cdrom /var/lib/libvirt/images/ubuntu-12.04.3-server-amd64.iso \
> > --graphics vnc \
> > --virt-type kvm \
> > --os-type linux\
> > --network=br1 \
> > --hvm
> -bash: virt-install --connect qemu:///system --name vm1 --ram 2048 --vcpus: No such file or directory
>
I can't say whether this is because of copy-paste error or you have
non-braking spaces in there, but this has nothing to do with
virt-install/libvirt, etc. You somehow managed to enter the command
into your shell as one string. Try typing it by hand without
copy-pasting and splitting it into multiple lines.
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20131108/dd84a041/attachment.sig>
More information about the libvirt-users
mailing list