mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 02:37:24 +08:00
feat(host): qemu add uuid option
This commit is contained in:
@@ -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" {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user