HarryWei / cloudxy

Automatically exported from code.google.com/p/cloudxy
6 stars 3 forks source link

After install QEMU, we cannot use 'qemu-img' for hlfs driver #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. git clone git://git.qemu.org/qemu.git
2. cd qemu
3, git reset --hard v1.3.0
4. cp ../hlfs/patches/hlfs_driver_for_qemu.patch ./ 
5. git apply hlfs_driver_for_qemu.patch
6, Modify the dead path
7, ./configure 
8, make
9, sudo make install
10, qemu-img create -f hlfs hlfs:local:///tmp/testenv/testfs 10G 

What is the expected output? What do you see instead?
Expected output:
Create a HLFS block with 10G

See instead:
$ qemu-img create -f hlfs hlfs:local:///tmp/testenv/testfs 10G
qemu-img: Unknown file format 'hlfs'

NOTE:
If we change directory to qemu, and execute
"./qemu-img create -f hlfs hlfs:local:///tmp/testenv/testfs 10G", we can get 
right answers like following.

$ ./qemu-img create -f hlfs hlfs:local:///tmp/testenv/testfs 10G
** Message: enter func bdrv_hlbs_init
** Message: leave func bdrv_hlbs_init
Formatting 'hlfs:local:///tmp/testenv/testfs', fmt=hlfs size=10737418240 
** Message: enter func hlbs_create
** Message: enter func parse_vdiname
** Message: 999 filename is local:///tmp/testenv/testfs
** Message: leave func parse_vdiname
enter func init_storage_handler
loc [fs:testfs], 

uri:local:///tmp/testenv/testfs,head:local,dir:/tmp/testenv,fsname:testfs,hostna
me:default,port:0,user:kanghua
leave func init_storage_handler
enter func deinit_storage_handler
disconnect succ
leave func deinit_storage_handler
** Message: leave func hlbs_create

Original issue reported on code.google.com by harryxi...@gmail.com on 1 Feb 2013 at 12:29

GoogleCodeExporter commented 9 years ago
I believe your /usr/bin/qemu-img is not the ~/qemu/qemu-img

Original comment by littlesmartsmart on 1 Feb 2013 at 1:18

GoogleCodeExporter commented 9 years ago
new qemu have been installed in /usr/local/bin

Original comment by littlesmartsmart on 2 Feb 2013 at 2:23

GoogleCodeExporter commented 9 years ago
You are right. It is installed into /usr/local/bin dir ;-)

Original comment by harryxi...@gmail.com on 2 Feb 2013 at 2:58

GoogleCodeExporter commented 9 years ago

Original comment by kanghua...@gmail.com on 9 Feb 2013 at 6:24