[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 22:14:42 浏览: 256
上市公司企业澄清公告数据(2001-2023年) .xlsx
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.
阅读全文