Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian安装QEMU (通过virt-manager启动) #49

Open
ysl2 opened this issue Mar 20, 2024 · 0 comments
Open

Debian安装QEMU (通过virt-manager启动) #49

ysl2 opened this issue Mar 20, 2024 · 0 comments
Labels

Comments

@ysl2
Copy link
Owner

ysl2 commented Mar 20, 2024

Ref: https://christitus.com/vm-setup-in-linux/

  1. 检查虚拟化:

    egrep -c '(vmx|svm)' /proc/cpuinfo
    

    If the output is zero then go to bios settings and enable VT-x (Virtualization Technology Extension) for Intel processor and AMD-V for AMD processor.

  2. 安装

sudo apt install qemu-kvm qemu-system qemu-utils python3 python3-pip libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager -y
  1. 检查服务是否开启
sudo systemctl status libvirtd.service
  1. 设置网络
sudo virsh net-start default
sudo virsh net-autostart default
sudo virsh net-list --all
  1. 添加到用户组
sudo usermod -aG libvirt $USER
sudo usermod -aG libvirt-qemu $USER
sudo usermod -aG kvm $USER
sudo usermod -aG input $USER
sudo usermod -aG disk $USER
@ysl2 ysl2 added the debian label Mar 20, 2024
@ysl2 ysl2 changed the title Debian安装QEMU Debian安装QEMU (通过virt-manager启动) Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant