nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Add or attach new virtual usb block device for Linux XEN guest VPS

This is a discussion on Add or attach new virtual usb block device for Linux XEN guest VPS within the XEN forums, part of the Linux virtualization category; Learn How to add or attach additional storage (like USB drive or block device )to your running para-virtualized Xen Linux ...


Go Back   nixCraft Linux Forum > Linux virtualization > XEN

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-15-2007, 09:31 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 557
Rep Power: 6
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default Add or attach new virtual usb block device for Linux XEN guest VPS

Learn How to add or attach additional storage (like USB drive or block device )to your running para-virtualized Xen Linux guests os?

You can always create a new virtual block device by passing block-attach command to xm xen management user interface vps tool. This will trigger a hotplug event for the guest.

Examples

Following will mount the dsl iso as /dev/hdc in the guestdomain as a read only device. This will probably not be detected as a cdrom by the guest, but mounting /dev/hdc manually will work

Code:
xm block-attach guestdomain file://path/to/dsl-2.0RC2.iso /dev/hdc ro
Following will export the file /var/lib/xen/images/disk2.img as /dev/xvdb inside the guest:
Code:
xm block-attach guestdomain /var/lib/xen/images/disk2.img /dev/xvdb w
Ref : xm(1): Xen management user interface - Linux man page
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Problem on making Guest OS to allow Internet get in satimis Computer Networking and Internet/broadband 0 01-31-2008 09:51 AM
waiting for device dev/sda5 to appear secure Linux hardware 1 08-22-2007 12:00 PM
XEN Linux VPS reclaim or recover memory when a guest domain 0 is shutdown rockdalinux XEN 0 06-15-2007 09:50 PM
Linux software for development device drivers marfy Linux software 1 04-16-2007 04:20 PM
Device eth0 does not seem to be present error and solution jerry Linux software 1 06-20-2006 05:07 PM


All times are GMT +5.5. The time now is 12:10 PM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36