Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
the qemu driver does not allow the user use "--persistent" option. but virsh help list the option.
static int qemudDomainAttachDeviceFlags(virDomainPtr dom,
const char *xml,
unsigned int flags) {
if (flags & VIR_DOMAIN_DEVICE_MODIFY_CONFIG) {
qemuReportError(VIR_ERR_OPERATION_INVALID,
"%s", _("cannot modify the persistent configuration of a domain"));
return -1;
}
return qemudDomainAttachDevice(dom, xml);
}
# virsh help attach-device
NAME
attach-device - attach device from an XML file
SYNOPSIS
attach-device <domain> <file> [--persistent]
DESCRIPTION
Attach device from an XML <file>.
OPTIONS
<domain> domain name, id or uuid
<file> XML file
--persistent persist device attachment
the same error in attach-disk.
# virsh attach-device snapshot-4 interface.xml --persistent
error: Failed to attach device from interface.xml
error: Requested operation is not valid: cannot modify the persistent configuration of a domain
# virsh attach-disk snapshot-4 /var/lib/libvirt/images/vol-test3 vdb --persistent
error: Failed to attach disk
error: Requested operation is not valid: cannot modify the persistent configuration of a domain
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
the same error in attach-interface.
# virsh attach-interface snapshot-4 network default vnet1 --persistent
error: Failed to attach interface
error: Requested operation is not valid: cannot modify the persistent configuration of a domain
# virsh help attach-interface
NAME
attach-interface - attach network interface
SYNOPSIS
attach-interface <domain> <type> <source> [<target>] [<mac>] [<script>] [--persistent]
DESCRIPTION
Attach new network interface.
OPTIONS
<domain> domain name, id or uuid
<type> network interface type
<source> source of network interface
<target> target network name
<mac> MAC address
<script> script used to bridge network interface
--persistent persist interface attachment
Comment 3RHEL Program Management
2010-06-07 15:58:28 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
inclusion.
Description of problem: the qemu driver does not allow the user use "--persistent" option. but virsh help list the option. static int qemudDomainAttachDeviceFlags(virDomainPtr dom, const char *xml, unsigned int flags) { if (flags & VIR_DOMAIN_DEVICE_MODIFY_CONFIG) { qemuReportError(VIR_ERR_OPERATION_INVALID, "%s", _("cannot modify the persistent configuration of a domain")); return -1; } return qemudDomainAttachDevice(dom, xml); } # virsh help attach-device NAME attach-device - attach device from an XML file SYNOPSIS attach-device <domain> <file> [--persistent] DESCRIPTION Attach device from an XML <file>. OPTIONS <domain> domain name, id or uuid <file> XML file --persistent persist device attachment the same error in attach-disk. # virsh attach-device snapshot-4 interface.xml --persistent error: Failed to attach device from interface.xml error: Requested operation is not valid: cannot modify the persistent configuration of a domain # virsh attach-disk snapshot-4 /var/lib/libvirt/images/vol-test3 vdb --persistent error: Failed to attach disk error: Requested operation is not valid: cannot modify the persistent configuration of a domain Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: