Giter VIP home page Giter VIP logo

Comments (8)

nooodles2023 avatar nooodles2023 commented on August 29, 2024

For host file system, you could use virtio-fs device, there is a config sample in sample.yaml.
For local network, mvisor only support UIP as backend network now, you could map the port from guest to host.

from mvisor.

woecj avatar woecj commented on August 29, 2024

Ok, thank you for the answer.
But can you give me some info on the syntax of the yaml file to make these entries.
concerning fs access, the virtio-fs device has entries for fs size and inode count, so I am unsure how to use existing directory of the host file system.
concerning host network, I do not recognise the syntax of the according entry for mapping host port and what changes do I have to made on the host?
There is no documents for that, so I have problems to make them.
Thanks

from mvisor.

nooodles2023 avatar nooodles2023 commented on August 29, 2024
  • class: virtio-fs
    path: /tmp/fuse
    disk_name: mvisor-fs
    disk_size: 2G
    inode_count: 200
    disk_size is the config of virtio-fs disk total size for guest vm, inode_count is the limit of total file count in virtio-fs disk.
    if you want to map an existing directory, make sure the disk_size and inode_count are bigger than them in the directory.

  • class: virtio-network
    mac: 00:50:00:11:22:33
    map: tcp:0.0.0.0:8022-:22
    Here is an example of port map. It maps the port 22 in guest vm to host 8022.

from mvisor.

woecj avatar woecj commented on August 29, 2024

Ok,
where should the disk mvisor-fs appear in the vm? are there further configure steps in the vm necessary?
concerning network:
how to map host network to a port?
Thanks, woecj

from mvisor.

nooodles2023 avatar nooodles2023 commented on August 29, 2024

the mvisor-fs disk would appear when you install virtio-fs guest driver, for more information, check https://virtio-fs.gitlab.io/.
buddy, local network was not accessible because we only implemented UIP, the only way you can try was mapping port, it will help you access port in vm from host or redirect url in guest to another

from mvisor.

woecj avatar woecj commented on August 29, 2024

ok, fs access running now.

Is there any source for configuring uiP stack for amd64 machine?

from mvisor.

78 avatar 78 commented on August 29, 2024

@woecj uip is the default stack for virtio-network device. You don't need to do any further configuration. Just one line is enough:

     -class: virtio-network

uip creates a NAT for the VM to access the internet. I'm sure you can access the host local network from the guest OS.

from mvisor.

woecj avatar woecj commented on August 29, 2024

You are right. Seems starting the virtio-fs service in the vm also started the virtio-network
Access to local network ok now
Thanks!

from mvisor.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.