Sudarshan Pathalam (supathal)
2013-Nov-08 03:29 UTC
[libvirt-users] virt-install not spawning VM
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
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