HarryWei / cloudxy

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

qemu can't boot system attach hlfs disk and from cdrom #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

first   hlfs is the new trunk r1641

01: cd qemu
02: git reset --hard v1.3.0
03: wget -c 
http://cloudxy.googlecode.com/svn/branches/hlfs/person/harry/hlfs/patches/hlfs_d
river_for_qemu.patch
04: git apply patches/hlfs_driver_for_qemu.patch
05: sudo apt-get install libsdl1.2-dev
06: ./configure --enable-kvm --enable-debug --enable-hlfs --enable-sdl
07: make -j8 & sudo make install
08: mkdir /tmp/testenv
09: ./qemu-img create -f hlfs hlfs:local:///tmp/testenv/testfs 10G
10: cd qemu/x86_64-softmmu$ 
11: ./qemu-system-x86_64 -hda hlfs:local:///tmp/testenv/testfs  -cdrom 
/home/kanghua/ubuntu-12.04-mini.iso -boot d -m 512 -no-acpi

output:

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 init_from_superblock
SEGMENT_SIZE:67108864,HBLOCK_SIZE:8192
father uri:(null)
enter func get_cur_latest_segment_info
how much file :3

7777 file:alive_snapshot.txt,size:43,time:1359795453

7777 file:snapshot.txt,size:60,time:1359797807

7777 file:superblock,size:115,time:1359794584

7777 file:,size:0,time:0

leave func get_cur_latest_segment_info
Raw Hlfs Ctrl Init Over ! 
uri:local:///tmp/testenv/testfs,max_fs_size:10240,seg_size:67108864,block_size:8
192,last_segno:0,last_offset:0,start_segno:0,io_nonactive_period:10

(process:6963): GLib-ERROR **: /build/buildd/glib2.0-2.32.3/./glib/gmem.c:165: 
failed to allocate 1688849860263936 bytes
enter func seg_clean_task
跟踪/断点陷阱 (核心已转储)

another patch

01: cd qemu
02: make clean
03: rm block/hlfs.c 
04: git reset --hard v1.3.0
05: wget -c git 
http://cloudxy.googlecode.com/svn/trunk/hlfs/patches/hlfs_driver_for_qemu_1.3.0.
patch
06: git apply hlfs_driver_for_qemu_1.3.0.patch
06: ./configure --enable-kvm --enable-debug --enable-hlfs --enable-sdl
07: make -j8 & sudo make install
08: ./qemu-img create -f hlfs hlfs:local:///tmp/testenv/testfs 10G
09: cd qemu/x86_64-softmmu
10: ./qemu-system-x86_64 -hda hlfs:local:///tmp/testenv/testfs  -cdrom 
/home/kanghua/ubuntu-12.04-mini.iso -boot d -m 512 -no-acpi

output:

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 init_from_superblock
SEGMENT_SIZE:67108864,HBLOCK_SIZE:8192
father uri:(null)
enter func get_cur_latest_segment_info
how much file :1

7777 file:superblock,size:115,time:1359869795

7777 file:,size:0,time:0

leave func get_cur_latest_segment_info
Raw Hlfs Ctrl Init Over ! 
uri:local:///tmp/testenv/testfs,max_fs_size:10240,seg_size:67108864,block_size:8
192,last_segno:0,last_offset:0,start_segno:0,io_nonactive_period:10
enter func seg_clean_task
 we should do clean in silent period ;access timestamp:0,cur timestamp:1359869853521

(process:15535): GLib-ERROR **: /build/buildd/glib2.0-2.32.3/./glib/gmem.c:165: 
failed to allocate 1688849860263936 bytes
跟踪/断点陷阱 (核心已转储)

outside:

    if I boot from only from cdrom else to attach hlfs will boot but the xshell spring windows hang on the attach image

01: ./qemu-system-x86_64 -hda hlfs:local:///tmp/testenv/testfs  -cdrom 
/home/kanghua/ubuntu-12.04-mini.iso -boot d -m 512 -no-acpi

Original issue reported on code.google.com by littlesmartsmart on 3 Feb 2013 at 6:28

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by harryxi...@gmail.com on 3 Feb 2013 at 11:03