* [Bug 1882350] [NEW] it always create sdx device when I configure ide device with hdx name
@ 2020-06-06 10:50 marshell
2020-06-08 15:23 ` Eric Blake
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: marshell @ 2020-06-06 10:50 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
I have configured 2 ide disks with name starting with hd, but when the
vm boots up, it shows disks whose name starting with sd.
1. ide disks in vm xml:
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/data3_raw.qcow2'/>
<target dev='hdc' bus='ide'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/data2.qcow2'/>
<target dev='hdb' bus='ide'/>
</disk>
2. in VM:
sda 8:0 0 2G 0 disk
sdb 8:16 0 1G 0 disk
3. from vm.log:
le=/data2.qcow2,format=qcow2,if=none,id=drive-ide0-0-1 -device ide-
hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive
file=/data3_raw.qcow2,format=raw,if=none,id=drive-ide0-1-0 -device ide-
hd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev t
4. rpm info: (I got the same issue on 2 diff envs)
(1) env1
qemu-kvm-1.5.3-105
libvirt-3.2.0-14.el7
(2) env2
libvirt-5.9.0-1.el8
qemu-4.1.0-1.el8
** Affects: qemu
Importance: Undecided
Status: New
** Tags: ide-hd
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1882350
Title:
it always create sdx device when I configure ide device with hdx name
Status in QEMU:
New
Bug description:
I have configured 2 ide disks with name starting with hd, but when the
vm boots up, it shows disks whose name starting with sd.
1. ide disks in vm xml:
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/data3_raw.qcow2'/>
<target dev='hdc' bus='ide'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/data2.qcow2'/>
<target dev='hdb' bus='ide'/>
</disk>
2. in VM:
sda 8:0 0 2G 0 disk
sdb 8:16 0 1G 0 disk
3. from vm.log:
le=/data2.qcow2,format=qcow2,if=none,id=drive-ide0-0-1 -device ide-
hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive
file=/data3_raw.qcow2,format=raw,if=none,id=drive-ide0-1-0 -device
ide-hd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev t
4. rpm info: (I got the same issue on 2 diff envs)
(1) env1
qemu-kvm-1.5.3-105
libvirt-3.2.0-14.el7
(2) env2
libvirt-5.9.0-1.el8
qemu-4.1.0-1.el8
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1882350/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bug 1882350] [NEW] it always create sdx device when I configure ide device with hdx name
2020-06-06 10:50 [Bug 1882350] [NEW] it always create sdx device when I configure ide device with hdx name marshell
@ 2020-06-08 15:23 ` Eric Blake
2020-06-08 15:23 ` Eric Blake
2020-06-09 0:55 ` [Bug 1882350] " marshell
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Eric Blake @ 2020-06-08 15:23 UTC (permalink / raw)
To: Bug 1882350, qemu-devel
On 6/6/20 5:50 AM, marshell wrote:
> Public bug reported:
>
> I have configured 2 ide disks with name starting with hd, but when the
> vm boots up, it shows disks whose name starting with sd.
This looks more like a libvirt question than a qemu one.
>
> 1. ide disks in vm xml:
>
> <disk type='file' device='disk'>
> <driver name='qemu' type='raw'/>
> <source file='/data3_raw.qcow2'/>
> <target dev='hdc' bus='ide'/>
> </disk>
> <disk type='file' device='disk'>
> <driver name='qemu' type='qcow2'/>
> <source file='/data2.qcow2'/>
> <target dev='hdb' bus='ide'/>
> </disk>
The name that libvirt chooses to identify disks from the host
perspective is independent...
>
>
> 2. in VM:
>
> sda 8:0 0 2G 0 disk
> sdb 8:16 0 1G 0 disk
...from what the guest OS chooses to use. Although there are many
situations where a Linux guest will pick the same names as libvirt chose
on the host side based on the transport (such as SCSI or virtio), there
is no guarantee that this is always the case, nor that your guest is
always running Linux as its OS.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bug 1882350] [NEW] it always create sdx device when I configure ide device with hdx name
2020-06-08 15:23 ` Eric Blake
@ 2020-06-08 15:23 ` Eric Blake
0 siblings, 0 replies; 6+ messages in thread
From: Eric Blake @ 2020-06-08 15:23 UTC (permalink / raw)
To: qemu-devel
On 6/6/20 5:50 AM, marshell wrote:
> Public bug reported:
>
> I have configured 2 ide disks with name starting with hd, but when the
> vm boots up, it shows disks whose name starting with sd.
This looks more like a libvirt question than a qemu one.
>
> 1. ide disks in vm xml:
>
> <disk type='file' device='disk'>
> <driver name='qemu' type='raw'/>
> <source file='/data3_raw.qcow2'/>
> <target dev='hdc' bus='ide'/>
> </disk>
> <disk type='file' device='disk'>
> <driver name='qemu' type='qcow2'/>
> <source file='/data2.qcow2'/>
> <target dev='hdb' bus='ide'/>
> </disk>
The name that libvirt chooses to identify disks from the host
perspective is independent...
>
>
> 2. in VM:
>
> sda 8:0 0 2G 0 disk
> sdb 8:16 0 1G 0 disk
...from what the guest OS chooses to use. Although there are many
situations where a Linux guest will pick the same names as libvirt chose
on the host side based on the transport (such as SCSI or virtio), there
is no guarantee that this is always the case, nor that your guest is
always running Linux as its OS.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1882350
Title:
it always create sdx device when I configure ide device with hdx name
Status in QEMU:
New
Bug description:
I have configured 2 ide disks with name starting with hd, but when the
vm boots up, it shows disks whose name starting with sd.
1. ide disks in vm xml:
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/data3_raw.qcow2'/>
<target dev='hdc' bus='ide'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/data2.qcow2'/>
<target dev='hdb' bus='ide'/>
</disk>
2. in VM:
sda 8:0 0 2G 0 disk
sdb 8:16 0 1G 0 disk
3. from vm.log:
le=/data2.qcow2,format=qcow2,if=none,id=drive-ide0-0-1 -device ide-
hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive
file=/data3_raw.qcow2,format=raw,if=none,id=drive-ide0-1-0 -device
ide-hd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev t
4. rpm info: (I got the same issue on 2 diff envs)
(1) env1
qemu-kvm-1.5.3-105
libvirt-3.2.0-14.el7
(2) env2
libvirt-5.9.0-1.el8
qemu-4.1.0-1.el8
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1882350/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 1882350] Re: it always create sdx device when I configure ide device with hdx name
2020-06-06 10:50 [Bug 1882350] [NEW] it always create sdx device when I configure ide device with hdx name marshell
2020-06-08 15:23 ` Eric Blake
@ 2020-06-09 0:55 ` marshell
2021-05-06 16:08 ` Thomas Huth
2021-07-06 4:17 ` Launchpad Bug Tracker
3 siblings, 0 replies; 6+ messages in thread
From: marshell @ 2020-06-09 0:55 UTC (permalink / raw)
To: qemu-devel
Thanks a lot for the reply.
But from the cmdline of qemu, we can see as following, libvirt passed "-device" option with "ide-hd, bus=ide.0" to qemu. I am wondering why qemu received this option, but it is still dealing it as scsi bus device instead of ide bus device, since with "lssci" cmd, we can see the ide disk we configured in xml.
>3. from vm.log:
>le=/data2.qcow2,format=qcow2,if=none,id=drive-ide0-0-1 -device ide-
hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 >-drive
file=/data3_raw.qcow2,format=raw,if=none,id=drive-ide0-1-0 -device ide-
hd,bus=ide.1,unit=0,drive=drive-ide0-1->0,id=ide0-1-0 -netdev t
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1882350
Title:
it always create sdx device when I configure ide device with hdx name
Status in QEMU:
New
Bug description:
I have configured 2 ide disks with name starting with hd, but when the
vm boots up, it shows disks whose name starting with sd.
1. ide disks in vm xml:
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/data3_raw.qcow2'/>
<target dev='hdc' bus='ide'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/data2.qcow2'/>
<target dev='hdb' bus='ide'/>
</disk>
2. in VM:
sda 8:0 0 2G 0 disk
sdb 8:16 0 1G 0 disk
3. from vm.log:
le=/data2.qcow2,format=qcow2,if=none,id=drive-ide0-0-1 -device ide-
hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive
file=/data3_raw.qcow2,format=raw,if=none,id=drive-ide0-1-0 -device
ide-hd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev t
4. rpm info: (I got the same issue on 2 diff envs)
(1) env1
qemu-kvm-1.5.3-105
libvirt-3.2.0-14.el7
(2) env2
libvirt-5.9.0-1.el8
qemu-4.1.0-1.el8
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1882350/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 1882350] Re: it always create sdx device when I configure ide device with hdx name
2020-06-06 10:50 [Bug 1882350] [NEW] it always create sdx device when I configure ide device with hdx name marshell
2020-06-08 15:23 ` Eric Blake
2020-06-09 0:55 ` [Bug 1882350] " marshell
@ 2021-05-06 16:08 ` Thomas Huth
2021-07-06 4:17 ` Launchpad Bug Tracker
3 siblings, 0 replies; 6+ messages in thread
From: Thomas Huth @ 2021-05-06 16:08 UTC (permalink / raw)
To: qemu-devel
Which kernel / linux distro are you using in the guest? Can you spot
something related in the output of "dmesg" in the guest?
** Changed in: qemu
Status: New => Incomplete
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1882350
Title:
it always create sdx device when I configure ide device with hdx name
Status in QEMU:
Incomplete
Bug description:
I have configured 2 ide disks with name starting with hd, but when the
vm boots up, it shows disks whose name starting with sd.
1. ide disks in vm xml:
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/data3_raw.qcow2'/>
<target dev='hdc' bus='ide'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/data2.qcow2'/>
<target dev='hdb' bus='ide'/>
</disk>
2. in VM:
sda 8:0 0 2G 0 disk
sdb 8:16 0 1G 0 disk
3. from vm.log:
le=/data2.qcow2,format=qcow2,if=none,id=drive-ide0-0-1 -device ide-
hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive
file=/data3_raw.qcow2,format=raw,if=none,id=drive-ide0-1-0 -device
ide-hd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev t
4. rpm info: (I got the same issue on 2 diff envs)
(1) env1
qemu-kvm-1.5.3-105
libvirt-3.2.0-14.el7
(2) env2
libvirt-5.9.0-1.el8
qemu-4.1.0-1.el8
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1882350/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 1882350] Re: it always create sdx device when I configure ide device with hdx name
2020-06-06 10:50 [Bug 1882350] [NEW] it always create sdx device when I configure ide device with hdx name marshell
` (2 preceding siblings ...)
2021-05-06 16:08 ` Thomas Huth
@ 2021-07-06 4:17 ` Launchpad Bug Tracker
3 siblings, 0 replies; 6+ messages in thread
From: Launchpad Bug Tracker @ 2021-07-06 4:17 UTC (permalink / raw)
To: qemu-devel
[Expired for QEMU because there has been no activity for 60 days.]
** Changed in: qemu
Status: Incomplete => Expired
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1882350
Title:
it always create sdx device when I configure ide device with hdx name
Status in QEMU:
Expired
Bug description:
I have configured 2 ide disks with name starting with hd, but when the
vm boots up, it shows disks whose name starting with sd.
1. ide disks in vm xml:
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/data3_raw.qcow2'/>
<target dev='hdc' bus='ide'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/data2.qcow2'/>
<target dev='hdb' bus='ide'/>
</disk>
2. in VM:
sda 8:0 0 2G 0 disk
sdb 8:16 0 1G 0 disk
3. from vm.log:
le=/data2.qcow2,format=qcow2,if=none,id=drive-ide0-0-1 -device ide-
hd,bus=ide.0,unit=1,drive=drive-ide0-0-1,id=ide0-0-1 -drive
file=/data3_raw.qcow2,format=raw,if=none,id=drive-ide0-1-0 -device
ide-hd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev t
4. rpm info: (I got the same issue on 2 diff envs)
(1) env1
qemu-kvm-1.5.3-105
libvirt-3.2.0-14.el7
(2) env2
libvirt-5.9.0-1.el8
qemu-4.1.0-1.el8
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1882350/+subscriptions
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-07-06 4:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-06 10:50 [Bug 1882350] [NEW] it always create sdx device when I configure ide device with hdx name marshell
2020-06-08 15:23 ` Eric Blake
2020-06-08 15:23 ` Eric Blake
2020-06-09 0:55 ` [Bug 1882350] " marshell
2021-05-06 16:08 ` Thomas Huth
2021-07-06 4:17 ` Launchpad Bug Tracker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).