Bug 880097
Summary: | qemu-kvm fail to re-used the configuration of virtual devices saved with writeconfig | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Sibiao Luo <sluo> | ||||
Component: | qemu-kvm | Assignee: | Virtualization Maintenance <virt-maint> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.4 | CC: | acathrow, bsarathy, chayang, dyasny, juzhang, mazhang, michen, mkenneth, mst, qzhang, sluo, virt-maint | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-11-26 10:26:21 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Sibiao Luo
2012-11-26 09:13:34 UTC
Created attachment 651824 [details]
dumps the virtual machine devices configuration to dump.cfg file via 'writeconfig'.
help text is explicit: -net none use it alone to have zero network devices. If no -net option is provided, the default is '-net nic -net user' so without -net none you have requested the default nic (rtl8139) which conflicts with the configuration you are trying to read in. (In reply to comment #5) > help text is explicit: > -net none use it alone to have zero network devices. If no -net option > is provided, the default is '-net nic -net user' > > so without -net none you have requested the default nic (rtl8139) > which conflicts with the configuration you are trying to read in. ok, thanks for your checking. mst, how about the [cpudef] in the dump file ? I did not see any about the [cpudef] in the dump file in the rhel6.4, but i remember that the rhel6.3GA can do it successfully, please help me check it. (In reply to comment #5) > help text is explicit: > -net none use it alone to have zero network devices. If no -net option > is provided, the default is '-net nic -net user' > > so without -net none you have requested the default nic (rtl8139) > which conflicts with the configuration you are trying to read in. btw, why it fail to prompt that relate to the 'PCI: devfn 24 not available for virtio-blk-pci' and ''virtio-blk-pci' could not be initialized'? doest the prompt have no any problem ? qemu-kvm:/home/dump.txt:22: PCI: devfn 24 not available for virtio-blk-pci, in use by rtl8139 qemu-kvm:/home/dump.txt:22: Device 'virtio-blk-pci' could not be initialized (In reply to comment #7) > btw, why it fail to prompt that relate to the 'PCI: devfn 24 not available > for virtio-blk-pci' and ''virtio-blk-pci' could not be initialized'? doest > the prompt have no any problem ? > > qemu-kvm:/home/dump.txt:22: PCI: devfn 24 not available for virtio-blk-pci, > in use by rtl8139 > qemu-kvm:/home/dump.txt:22: Device 'virtio-blk-pci' could not be initialized hmm...the rtl8139 was added by default to the addr = 0x3, so it was conflicts with the 'virtio-blk-pci' which i assigned the addr=0x3. I have tried two scenarios: - boot a guest without network device and assign the addr for each pci device(system addr=0x3, balloon addr=0x4, data disk addr=0x5), it fail to boot. # /usr/libexec/qemu-kvm -M rhel6.3.0 -enable-kvm -m 4096 -smp 4,sockets=2,cores=2,threads=1 -usb -device usb-tablet,id=input0 -name image_streaming -uuid 990ea161-6b67-47b2-b803-19fb01d30d30 -rtc base=localtime,clock=host,driftfix=slew -drive file=/mnt/windows_7_ultimate_sp1_x64.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -spice port=5931,disable-ticketing -vga qxl -global qxl-vga.vram_size=67108864 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 -drive file=/mnt/small-data-disk.qcow2,if=none,id=data-disk,format=qcow2,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=data-disk,id=sluo-disk -monitor stdio do_spice_init: starting 0.10.1 spice_server_add_interface: SPICE_INTERFACE_MIGRATION spice_server_add_interface: SPICE_INTERFACE_KEYBOARD spice_server_add_interface: SPICE_INTERFACE_MOUSE spice_server_add_interface: SPICE_INTERFACE_QXL red_worker_main: begin display_channel_create: create display channel cursor_channel_create: create cursor channel qemu-kvm: -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1: PCI: devfn 24 not available for virtio-blk-pci, in use by rtl8139 qemu-kvm: -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x3,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1: Device 'virtio-blk-pci' could not be initialized - boot a guest without network device and assign the addr for each pci device(system addr=0x4, balloon addr=0x5, data disk addr=0x6), it can boot successfully, and check that the rtl8139 was added to the addr=0x3. # /usr/libexec/qemu-kvm -M rhel6.3.0 -enable-kvm -m 4096 -smp 4,sockets=2,cores=2,threads=1 -usb -device usb-tablet,id=input0 -name image_streaming -uuid 990ea161-6b67-47b2-b803-19fb01d30d30 -rtc base=localtime,clock=host,driftfix=slew -drive file=/mnt/windows_7_ultimate_sp1_x64.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -spice port=5931,disable-ticketing -vga qxl -global qxl-vga.vram_size=67108864 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -drive file=/mnt/small-data-disk.qcow2,if=none,id=data-disk,format=qcow2,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x6,drive=data-disk,id=sluo-disk -monitor stdio |