[root@localhost ~]# sudo virt-install \ --name=win10 \ --memory=4096 \ --vcpus=2 \ --disk size=50 \ --cdrom=/home/windows_10_professional_x64_2022.iso \ --os-type=windows \ --os-variant=win10 \ --network bridge=br0 \ --graphics vnc \ --noautoconsole \ --virt-type=kvm \ --cpu host usage: virt-install --name NAME --memory MB STORAGE INSTALL [options] virt-install: error: unrecognized arguments
时间: 2023-10-05 19:14:42 浏览: 67
It seems like there is a syntax error in your command. Please remove the backslash (\) character at the end of each line except for the last line, which should not have a backslash. The corrected command should look like this:
```
sudo virt-install --name=win10 --memory=4096 --vcpus=2 --disk size=50 --cdrom=/home/windows_10_professional_x64_2022.iso --os-type=windows --os-variant=win10 --network bridge=br0 --graphics vnc --noautoconsole --virt-type=kvm --cpu host
```
This command should create a new virtual machine named "win10" with the specified settings. Please note that you may need to adjust some of the options (such as the network bridge or the path to the ISO file) to match your specific environment.
相关推荐
![xlsx](https://img-home.csdnimg.cn/images/20210720083732.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pptx](https://img-home.csdnimg.cn/images/20210720083543.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![xlsx](https://img-home.csdnimg.cn/images/20210720083732.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)