[libvirt-users] Please help me!Thank You!
Kashyap Chamarthy
kchamart at redhat.com
Fri Jan 2 17:21:21 UTC 2015
On Mon, Dec 29, 2014 at 08:17:42PM +0800, 75124955 wrote:
> I am using Libvirt virsh command by vmware esx created a virtual host, has been unable to create success.
> My creation process is as follows :
>
> Create a virtual host XML file content is as follows:
> <domain type='vmware'>
> <name>test1</name>
> <memory>524288</memory>
> <currentMemory>524288</currentMemory>
> <vcpu>1</vcpu>
> <os>
> <type arch='x86_64'>hvm</type>
> </os>
> <devices>
> <disk type='file' device='disk'>
> <source file='[datastore1 (2)] test1/test1.vmdk'/>
Here is your issue: the source file should be a proper *path* to the
vmdk file. This does not look like a valid path: '[datastore1 (2)]
test1/test1.vmdk'
Libvirt's default store is in /var/lib/libvirt/images. So, first try
placing your image there and try:
. . .
<source file='/var/lib/libvirt/images/test1.vmdk'/>
. . .
--
/kashyap
More information about the libvirt-users
mailing list