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'/> <target dev='sda' bus='scsi'/> <address type='drive' controller='0' bus='0' unit='0'/> </disk> <controller type='scsi' index='0' model='vmpvscsi'/> <controller type='ide' index='0'/> <interface type='bridge'> <source bridge='VM Network'/> </interface> </devices> </domain> Has been unable to create the VMDK files, can you tell me what reason be? Thank you very much ! I will always wait for your reply, this problem is very important to me.
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
On 12/29/2014 05:17 AM, 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 :[meta-comment] Your message occupied 140 kilobytes, mainly because you attached a .jpg screenshot instead of copying and pasting the text in the terminal window that you captured in your screenshot. That puts an inordinate amount of load on the mail server, and is not nice to list subscribers behind slow connections and/or stuck paying for everything they download. And even for subscribers that don't mind opening the image, it is a lot harder to retype the contents of your screenshot than it is to copy and paste your example in order to try and reproduce your issue. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 604 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20150103/6847fefb/attachment.sig>
Apparently Analagous Threads
- Re: Error while starting the node on ESXi hypervisor
- Error while starting the node on ESXi hypervisor
- Create VMWare ESXi domain via virsh error(error: this function is not supported by the connection driver: virDomainCreateXML)
- Re: Error while adding volume through virsh
- Error while adding volume through virsh