How to attach and mount Xen DomU's disk to Dom0

How to attach and mount Xen DomU's disk to Dom0

asked Dec 29, 2013 by anonymous

1 Answer

 
Best answer

To attach phy:vg_xen/vm-10.1.1.228 to xvda on Domain-0:

# xm block-attach Domain-0 phy:vg_xen/vm-10.1.1.228 xvda w

Mount the new partition /dev/xvda2 to /mnt/xvda2:

# mount /dev/xvda2 /mnt/xvda2

After finishing using the partition, umount it and detach it:

# umount /mnt/xvda2/
# xm block-detach Domain-0 xvda
answered Dec 29, 2013 by anonymous
edited Dec 29, 2013

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...