Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7937139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:26:51+00:00 2026-06-03T22:26:51+00:00

I have an AMI with Windows Server 2008 as an EBS root device. I

  • 0

I have an AMI with Windows Server 2008 as an EBS root device. I can start it an instance using boto and remote desktop into it, but I cannot seem to get it mount its ephemeral storage. Is something wrong with my BlockDeviceMapping?

Here is my code:

import boto
from boto.ec2.connection import EC2Connection
conn = EC2Connection(mykey, mysecretkey)
bdm = boto.ec2.blockdevicemapping.BlockDeviceMapping({'/dev/xvdb':'ephemeral0'})
conn.run_instances(myami, key_name=mykeyname,security_groups=[mysecgroup],block_device_map=bdm)

When I run this code, an instance fires up and I can access, but I only see the root device mounted.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T22:26:52+00:00Added an answer on June 3, 2026 at 10:26 pm

    I figured it out. I had seen some examples which led me to believe that the block device map should be a string to string map, but it should actually be a string to BlockDeviceType map. Here is how I got it to work:

    from boto.ec2.connection import EC2Connection
    from boto.ec2.blockdevicemapping import BlockDeviceType, BlockDeviceMapping
    conn = EC2Connection(mykey, mysecretkey)
    xvdb = BlockDeviceType()
    xvdb.ephemeral_name='ephemeral0'
    bdm = BlockDeviceMapping()
    bdm['/dev/xvdb'] = xvdb
    conn.run_instances(myami, key_name=mykeyname,security_groups=[mysecgroup],block_device_map=bdm)
    

    When I logged in, I could see my ephemeral drive. Not that it does not show up in the AWS management console as a block device. You still only see your root device.

    Here is a code sample / forum question that helped me figure it out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running SQL Server 2008 Express on Windows XP on a VirtualPC instance inside
I have an ASP.NET application running on a Windows Server 2008 box with IIS
I am trying to run web application scripted in PHP on windows server 2008.
I have been using Windows 7 for a while but have not had to
I have made an application project in Visual Studio 2008 C#, SQL Server from
I have a ASP.NET 1.1 application running on IIS 6 / Windows Server 2003.
I am building a new Windows Server 2008 R2 server that will be running
I recently installed SQL Server 2008 Express on my Windows 7 Ultimate x64 home
I want to add a user in SQL Server 2008 so I can use
I have a desktop, and a Laptop. The Desktop has Windows 7 64-bit and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.