VM creation fails copying image from USB NTFS disk
840449Feb 16 2011 — edited Mar 3 2011As I have limited disk space available on the server I copied the VM Template to an 500 GB NTFS USB drive and mounted it on /OVS/seed_pool
When creating the virtual machine it throws the following error:
Check Agent Version
Check Address and NetworkType
Register virtual machine img
Register virtual machine geninfo
Register networks
Register virtual disks
CopyFromTemplateAsync:Call agent
CopyFromTemplateCallBack
CallBack:end-success:end:failed:<Exception: ['dd', 'if=/var/ovs/mount/EC31AC07D7274BF3BF9D093861391DF4/seed_pool/OVM_EL5U3_X86_EBIZ12.1.1_DB_VIS_PVM/ebs1211db.img', 'iflag=direct', 'of=/var/ovs/mount/EC31AC07D7274BF3BF9D093861391DF4/running_pool/40_EBS_DEMO_DB/ebs1211db.img', 'bs=1M'] => dd: opening `/var/ovs/mount/EC31AC07D7274BF3BF9D093861391DF4/seed_pool/OVM_EL5U3_X86_EBIZ12.1.1_DB_VIS_PVM/ebs1211db.img': Invalid argument
>
StackTrace:
File "/opt/ovs-agent-2.3/OVSXUtility.py", line 355, in utl_cp_vm
cmd = ["dd", "if=%s" % src, "iflag=direct", "of=%s" % dst, "bs=1M"]
File "/opt/ovs-agent-2.3/OVSCommons.py", line 85, in run_cmd
raise Exception('%s => %s' % (cmdlist, p.childerr.read()))
Problem is: 'dd iflag=direct' isn't supported by fs type ntfs-3g which is the one used for mounting the USB drive.
I modified OVSXUtility.py and compiled it into OVSXUtility.pyc ... still VM Manager keeps running the original. (I am not python versed)
Is there any workaround?