Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Kvm-net Mode (3)

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Host

(1)。 Enable and allow forwarding: vim / etc/sysctl.conf net.ipv4.ip_forward = 1 (2). Create a disk: qemu-img create-f raw / opt/CentOS-7.4-0-node2-x86_64.raw 10G (3). Create virtual machine-network mode as [bridging]: virt-install-- name node2--virt-type kvm-- ram 1024-- cdrom=/usr/local/src/CentOS-7.4.1708-x86_64-DVD.iso-- disk=/opt/CentOS-7.4-0-node2-x86_64.raw-- network bridge=virbr0-- graphics vnc,listen=0.0.0.0-- noautoconsole (4) .vnc connection, install Centos

two。 Client

Use vnc to link [host] to operate [client]

Net mode is to share a separate network with [host]. Access to the external network is forwarded by [host], and the external network cannot access [client].

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report