feat(host): qemu add uuid option

This commit is contained in:
Zexi Li
2021-12-14 21:03:47 +08:00
parent 978dc20edb
commit 194b0a1c59
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -188,6 +188,7 @@ func (s *SKVMGuestInstance) generateArmStartScript(data *jsonutils.JSONDict) (st
// exceeds the recommended cpus supported by KVM (32)
cmd += fmt.Sprintf(" -smp %d,maxcpus=32", cpu)
cmd += fmt.Sprintf(" -name %s", name)
cmd += fmt.Sprintf(" -uuid %s", uuid)
cmd += fmt.Sprintf(" -m %dM,slots=4,maxmem=262144M", mem)
if options.HostOptions.HugepagesOption == "native" {
+1 -1
View File
@@ -521,7 +521,7 @@ function nic_mtu() {
// #cmd += " -g 800x600"
cmd += fmt.Sprintf(" -smp %d,maxcpus=255", cpu)
cmd += fmt.Sprintf(" -name %s", name)
// #cmd += fmt.Sprintf(" -uuid %s", self.desc["uuid"])
cmd += fmt.Sprintf(" -uuid %s", uuid)
cmd += fmt.Sprintf(" -m %dM,slots=4,maxmem=524288M", mem)
if s.manager.host.IsHugepagesEnabled() {