summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/108/other/591666
blob: ff11a010bfa2a8e52b890b757908e94a4184a1da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
other: 0.892
device: 0.883
semantic: 0.839
graphic: 0.824
socket: 0.811
PID: 0.810
debug: 0.809
vnc: 0.801
boot: 0.792
permissions: 0.791
KVM: 0.772
files: 0.764
performance: 0.750
network: 0.717

broken "pci_add auto storage"

Doing:
(qemu) pci_add auto storage  file=/dev/ram0,if=virtio
Results in:
OK domain 0, bus 0, slot 5, function 0

However no device is actually added to the guest.
QEMU: Latest git code (June 9) from git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git
(seems to be broken from 0.12.1.2)
KVM: Compiled from git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git
checked out (refs/remotes/origin/stable-2.6.32)

Both guest and host are Ubuntu 9.10 with 2.6.32 kernel.
Guest kernel has ACPI enabled (specifically, the PCI slot detection driver)

Guest executed with the following parameters:
 -boot c -drive file=/home/eranr/kvm_images/ubuntu-9.10-2.6.32-perf.img,if=ide,boot=on -m 4096 -net nic,model=virtio -net tap,ifname=qtap0,script=no -vnc :0 -smp 1,cores=1,threads=0 -monitor tcp:localhost:6001,server,nowait

Hi Eran,

Could you lauch "lspci" command on guestOS to see whether there is a new pci device hot-plug in?

On the other hand, the guestOS need to  be configured with "CONFIG_VIRTIO_PCI", otherwise it can not
contain the driver to monitor the virtio-pci device.

Thanks

If configure guest kernel correctly, it seems that virtio for block is OK!
Could you help or send me your configure file to have a second check

Thanks


======== version info ===============
QEMU 0.14.50 monitor 
host kernel: 2.6.39 
guest kernel: 2.6.32  



======== config file for kernel  info ===================
See attachment

=========Doing on qemu monitor ================
QEMU 0.14.50 monitor - type 'help' for more information
(qemu) pci_add auto storage file=/dev/ram0,if=virtio
OK domain 0, bus 0, slot 3, function 0


=========Doing on guest console ===============
1.  ---see the disk on guest
root@qemux86-64:~# dmesg | grep 'vda'
[  245.440217]  vda: unknown partition table
root@qemux86-64:~# fdisk -l

Disk /dev/sda: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table

Disk /dev/vda: 16 MB, 16777216 bytes
16 heads, 63 sectors/track, 32 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Disk /dev/vda doesn't contain a valid partition table

2. --- write content to virtio disk

root@qemux86-64:~# echo 'helloHypervisor' > /dev/vda  
root@qemux86-64:~# head /dev/vda 
helloHypervisor



=========Doing on host console =============

[root@oc8440477808 linux-2.6.39]# head /dev/ram0
helloHypervisor


========= conclusion ====================
Host get the data which is passed through virtio device on guest. The data is "helloHpervisor"

So, the kernel version 2.6.32 can support virtio block device with correct
config, especially the following must be choosen:


CONFIG_VIRTIO=y
CONFIG_VIRTIO_RING=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_BLK=y










Did you remember to load PCI hotplug modules into the guest?
sudo modprobe acpiphp
sudo modprobe pci_hotplug 


this is vikas pandey,

1:would u please give me ur kernel and initrd source to me ..am also trying to add pci and usb device in guest os ..

2:
i am using qemu and i am abe to run some of kernel image  and initrd which is available on qemu site for testing purpose.
now my ami is to connect the host usb and access the content after running  iso image or specifing kernel and initrd image on qemu .

for this task i have followed some procedure which is inlined....
//************************************************************************************************************************************************************************

cat /etc/lsb-release
Host pc discription : 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
==>uname -a
Linux vikas-ThinkCentre-A70 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

QEMU emulator version 1.0,1, Copyright (c) 2003-2008 Fabrice Bellard

fist i have checked with iso images
step 1:
dd of=ubuntuimage bs=1024 seek=10485760 count=0  
step 2:
qemu -hda ubuntuimage -cdrom m1040_wifi.iso -usbdevice host:1e3d:2093 -m 192 -boot d
usb_create: no bus specified, using "usb.0" for "usb-host"
(it is a problem which is not permitting guest os to access completly even media will be detected on console while booting on qemu  and we can add usb in qemu but in qemue gues os shelll it is not detecting any where  )
husb: open device 1.6
husb: config #1 need -1
husb: 1 interfaces claimed for configuration 1
husb: grabbed usb device 1.6
husb: config #1 need 1
husb: 1 interfaces claimed for configuration 1
husb: config #1 need 1
husb: 1 interfaces claimed for configuration 1  
=========>2nd i have used kernel and initrd image 
step >qemu-system-arm -kernel zImage.integrator -initrd arm_root.img -hda ubuntuimage -usb -usbdevice host:1e3d:2093  -m 128
segmantation fault
//********************************************************************************************************************************************
please suggest me as soon as possible ,and please tell me that is it compulsary that use kvm and libvirt with qemu for using host usb or not..
because i have also tried alot  with libvirt but every time it is having some different -2 error currently error  related with libvirt is ..
==>virsh -c qemu:///system list

virsh: /usr/lib/libvirt.so.0: version `LIBVIRT_0.9.3' not found (required by virsh)
virsh: /usr/lib/libvirt.so.0: version `LIBVIRT_0.9.0' not found (required by virsh)
virsh: /usr/lib/libvirt.so.0: version `LIBVIRT_PRIVATE_0.9.3' not found (required by virsh)
virsh: /usr/lib/libvirt.so.0: version `LIBVIRT_0.9.2' not found (required by virsh

plese tell me now what should ido...
thanks& regards




The "pci_add" command has been removed since QEMU 2.3.0, so I guess we can close this bug ... if you still can reproduce the problem with the latest version, please feel free to open this ticket again.