ArchipelProject / Archipel

XMPP Based Orchestrator
http://archipelproject.org
GNU Affero General Public License v3.0
800 stars 126 forks source link

Virtio-Disk [Device] from directory - missing source information #1157

Open explanar opened 8 years ago

explanar commented 8 years ago

i tried to setup a Virtio device for a Guest from a Host-owned directory: Disk-Device Setup

The error "missing source information for device" occurs. Error: missing source information

is there a way to solve this?

After that i tried to passthrough a directory to the guest via xml-code:

    <filesystem accessmode='passthrough' type='mount'>
      <source dir='/media/cubefiles'/>
      <target dir='cubefiles'/>
    </filesystem>

and wrote the Modules loop, virtio, 9p, 9pnet, 9pnet_virtio to the guests /etc/modules. After that i could mount the directory to the guest, but the Debian-OS does not see the passthrough as a device - what i need it to (openmediavault).

Source for the passthroug: http://rabexc.org/posts/p9-setup-in-libvirt

yhaenggi commented 8 years ago

This is not an issue of Archipel/QEMU/KVM. openmediavault probably expects a real disk? Forwarding a directory works.

explanar commented 7 years ago

Please look at entry "Source Type" in first Screenshot to see what the VM/omv are expecting while omv can't expect anything yet in case of not being able to boot or even validate the VM-Settings.

Utils.py error msg: Error stanza is not a valid acp: 'ascii' codec can't decode byte 0xc3 in position 29 ordinal not in range (128)

explanar commented 7 years ago

Workaround: Add XML for Guest `<devices ...>

`

Edit /etc/modules of Guest: loop virtio 9p 9pnet 9pnet_virtio Execute as root of Guest: sudo service kmod start sudo mount testlabel /mnt -t 9p -o trans=virtio sudo mkdir /mnt/testdir Check as Host if testdir exists and delete. If there is Access error, Host has to sudo setfacl -R -m u:libvirt-qemu:rwx /opt/test