1

I want to mount virtual disks on the XenServer host. I don't have any free space to create a partition this way and want to use a virtual disk on local storage to store ISO images. I can't find any instructions on doing this.

Basically I need to mount the virtual disk below on the host, here is the listing for it from xe vdi-list...

uuid ( RO)                : 1b63af0e-4a32-473c-a20c-4fa408db201f
          name-label ( RW): iso_images
    name-description ( RW): ISO images from installation media
             sr-uuid ( RO): 71041776-39eb-c1ec-e7d1-eb4d047c70ed
        virtual-size ( RO): 21474836480
            sharable ( RO): false
           read-only ( RO): false

All the guides I can find on the subject involve different circumstances, such as the virtual disk being assigned to a VM.

John Tate
  • 179
  • 4
  • 19
  • https://discussions.citrix.com/topic/358515-mounting-a-guest-vm%E2%80%99s-hard-drive-vdi-on-the-host/ – user9517 Feb 23 '16 at 18:58

1 Answers1

1

If you want to have a sharable ISO library

  • If someday you got more than one server, I suggest a ISO's CIFS's share, as it will allow you to enable the HA and it's easier to do and to update.

    xe-mount-iso-sr //server/share -o username=UserName,password=myPassword,domainname=domainname,sec=ntlmv2

    http://support.citrix.com/article/CTX123536

  • If you have a local storage:

    fdisk -l (to find the disk), mount /dev/sdXX /mnt/iso and after xe sr-create type=iso content-type=iso shared=false host-uuid=xxxxxxxxxxxxxxxxxxxx name-label=ISO device-config:location=/mnt/iso device-config:legacy_mode=true

yagmoth555
  • 16,300
  • 4
  • 26
  • 48
  • I just have the one server for now. – John Tate Feb 23 '16 at 17:54
  • @JohnTate Ok, never did a setup like you want, but did you tried the guide you gave, but with a USB stick in example ? as it will be detected as a new partition – yagmoth555 Feb 23 '16 at 17:56
  • I can't add USB storage to the machine. – John Tate Feb 23 '16 at 17:56
  • @JohnTate Your storage you want to use is listed how, /dev/sdbX ? – yagmoth555 Feb 23 '16 at 18:00
  • @JohnTate I ask, as you can easilly just mount the storage you want to use, and issue a command like **xe sr-create type=iso content-type=iso shared=false host-uuid=xxxxxxxxxxxxxxxxxxxx name-label=ISO device-config:location=/mnt/iso device-config:legacy_mode=true** – yagmoth555 Feb 23 '16 at 18:03
  • I don't know where the device file is. If I did I'd have done what you said. That is the problem, I want to mount a virtual disk on the host so I can store ISO images. I have nowhere else to put them. – John Tate Feb 23 '16 at 18:32
  • Try a **fdisk -l** to list all disk, after you do a **mount /dev/sdbX /mnt/iso** and voila, you can do the command I gave. – yagmoth555 Feb 23 '16 at 18:52