diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 25cb4ad5901e987648dfe9e49bcaf2558eab2104..ad80be034b1f64632535df1c3303ed8009f0847f 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -6957,9 +6957,13 @@ qemuDomainCreateDevice(const char *device, } if (mknod(devicePath, sb.st_mode, sb.st_rdev) < 0) { - virReportSystemError(errno, - _("Failed to make device %s"), - devicePath); + if (errno == EEXIST) { + ret = 0; + } else { + virReportSystemError(errno, + _("Failed to make device %s"), + devicePath); + } goto cleanup; }