Skip to content
This repository was archived by the owner on Jul 17, 2023. It is now read-only.
This repository was archived by the owner on Jul 17, 2023. It is now read-only.

9pfs mounting doesn't work with kraft run #71

@razvand

Description

@razvand

Describe the bug

A 9pfs configuration in the kraft.yaml file, similar to the one below, isn't used correctly by kraft run:

volumes:
  guest_fs:
    driver: 9pfs

The comparison on this line fails:

            if volume.driver is VolumeDriver.VOL_9PFS:

preventing the filesystem from being mounted (i.e. the runner.add_virtio_9pfs(path)) isn't called.

What worked for me was replacing the troubling line with:

            if volume.driver == VolumeDriver.VOL_9PFS.name:

Mounting is successful when manually using the qemu-guest script or the qemu-system-x86_64 command. It's the kraft run command that triggers this issue.

To Reproduce

I created a repository for the issue. See the README.md for details on configuring, building and running.

Expected behavior

The 9pfs mounting of a local directory inside the KVM virtual machine should work when using kraft run.

Desktop (please complete the following information):

  • OS: Ubuntu Linux 18.04
  • kraft staging (version 0.5.0.dev441)
  • QEMU version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.37)

Metadata

Metadata

Assignees

Labels

area/appRelating to interacton with Unikraft application (`app-*).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions