This article explains how to troubleshoot the following error that occurs when attempting to spin up a Spot Instance:
"Can't Spin Spot Instance: Code: InvalidBlockDeviceMapping, Message: The device 'xvda' is used in more than one block-device mapping."
This problem appears when there is a mismatch between the block device mapping configured in the group and the device name defined in the associated Amazon Machine Image (AMI).
The issue occurs because the AMI and the group refer to the same device using different naming formats.
Example configurations:
-
AMI configuration:
"deviceName": "xvda" -
Group configuration:
"deviceName": "/dev/xvda"
To resolve the issue, update the group's configuration so that the device name matches the expected AMI format.
Steps:
-
Go to Actions.
-
Select Edit configuration.
-
Navigate to the Review tab.
-
Switch to JSON Edit mode.
-
Find the block device mapping configuration and update the device name from:
"deviceName": "xvda"to:
"deviceName": "/dev/xvda". -
Save and apply the changes.
Outcome
After saving the updated configuration, the group can successfully launch instances without triggering the InvalidBlockDeviceMapping error.
Related Articles
Max Spot Instance Count Exceeded error when launching AWS Spot Instances 23Number of Views Resolve botocore ClientError when stopping Spot Instances 2Number of Views Azure error: RequestDisallowedByPolicy when launching VM 13Number of Views GKE spot instance launches fail due to InstanceTaxonomies incompatibility 7Number of Views Resolve EBS encryption errors during instance launch in Ocean 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add additional feedback (optional)
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
|
FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513
(toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367
(toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895
2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago