[Qemu-discuss] Problem converting from vmdk to raw format
Hello, I tried to convert a .vmdk file to a raw file with this command: "qemu-img convert -f vmdk /media/windows/WinXP-disk1.vmdk winxp.raw" The result was: "qemu-img: Could not open '/media/windows/WinXP-disk1.vmdk" I am sure that the vmdk file, WinXP-disk1.vmdk it is in the dir /media/windows So what I am doing wrongly? Thanks for the help
Re: [Qemu-discuss] Problem converting from vmdk to raw format
On 1/31/2016 10:53 PM, Alexandre Schenberg wrote: > Hello, I tried to convert a .vmdk file to a raw file with this > command: "qemu-img convert -f vmdk /media/windows/WinXP-disk1.vmdk > winxp.raw" > > The result was: "qemu-img: Could not open '/media/windows/WinXP-disk1.vmdk" > > I am sure that the vmdk file, WinXP-disk1.vmdk it is in the dir /media/windows > > So what I am doing wrongly? > > Thanks for the help > > > > What are the permissions on the file? What do you see when you do ls -al /media/windows/WinXP-disk1.vmdk And what user/group are you using when you try to convert the file?
Re: [Qemu-discuss] Problem converting from vmdk to raw format
On Mon, 02/01 01:53, Alexandre Schenberg wrote: > Hello, I tried to convert a .vmdk file to a raw file with this > command: "qemu-img convert -f vmdk /media/windows/WinXP-disk1.vmdk > winxp.raw" > > The result was: "qemu-img: Could not open '/media/windows/WinXP-disk1.vmdk" > > I am sure that the vmdk file, WinXP-disk1.vmdk it is in the dir /media/windows > > So what I am doing wrongly? Which qemu-img version are you using? Or which commit in the case of git tree? Fam
Re: [Qemu-discuss] Problem converting from vmdk to raw format
thanks, was a permission problem, to change it solved the issue I have another doubt, converting it to raw generate a 126.9GB file. However df shows that the space used in the partition is only 8.x GB. And now I am converting the raw file to an iso file and the iso is really occupying space. So why the space occupied by the raw file seems to do not exists and the one from Iso does? And why the Iso is becaming so big? Thanks for the aid. 2016-02-01 2:40 GMT-02:00, Fam Zheng : > On Mon, 02/01 01:53, Alexandre Schenberg wrote: >> Hello, I tried to convert a .vmdk file to a raw file with this >> command: "qemu-img convert -f vmdk /media/windows/WinXP-disk1.vmdk >> winxp.raw" >> >> The result was: "qemu-img: Could not open >> '/media/windows/WinXP-disk1.vmdk" >> >> I am sure that the vmdk file, WinXP-disk1.vmdk it is in the dir >> /media/windows >> >> So what I am doing wrongly? > > Which qemu-img version are you using? Or which commit in the case of git > tree? > > Fam >
Re: [Qemu-discuss] Problem converting from vmdk to raw format
qemu-img used the "sparse file" feature of your file system to not actually allocate disk sectors for many of the all-zero blocks in the raw file. Your iso creation tool did not. On 01/02/2016 05:42, Alexandre Schenberg wrote: thanks, was a permission problem, to change it solved the issue I have another doubt, converting it to raw generate a 126.9GB file. However df shows that the space used in the partition is only 8.x GB. And now I am converting the raw file to an iso file and the iso is really occupying space. So why the space occupied by the raw file seems to do not exists and the one from Iso does? And why the Iso is becaming so big? Thanks for the aid. 2016-02-01 2:40 GMT-02:00, Fam Zheng: On Mon, 02/01 01:53, Alexandre Schenberg wrote: Hello, I tried to convert a .vmdk file to a raw file with this command: "qemu-img convert -f vmdk /media/windows/WinXP-disk1.vmdk winxp.raw" The result was: "qemu-img: Could not open '/media/windows/WinXP-disk1.vmdk" I am sure that the vmdk file, WinXP-disk1.vmdk it is in the dir /media/windows So what I am doing wrongly? Which qemu-img version are you using? Or which commit in the case of git tree? Enjoy Jakob -- Jakob Bohm, CIO, Partner, WiseMo A/S. http://www.wisemo.com Transformervej 29, 2860 Soborg, Denmark. Direct +45 31 13 16 10 This public discussion message is non-binding and may contain errors. WiseMo - Remote Service Management for PCs, Phones and Embedded