mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-30 18:23:35 +08:00
feat(region): add virtio vga type support (#14785)
Signed-off-by: wanyaoqi <d3lx.yq@gmail.com> Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
This commit is contained in:
@@ -4263,7 +4263,7 @@ func (self *SGuest) GetDeployConfigOnHost(ctx context.Context, userCred mcclient
|
||||
}
|
||||
|
||||
func (self *SGuest) getVga() string {
|
||||
if utils.IsInStringArray(self.Vga, []string{"cirrus", "vmware", "qxl"}) {
|
||||
if utils.IsInStringArray(self.Vga, []string{"cirrus", "vmware", "qxl", "virtio", "std"}) {
|
||||
return self.Vga
|
||||
}
|
||||
return "std"
|
||||
|
||||
@@ -400,7 +400,7 @@ type ServerCreateOptionalOptions struct {
|
||||
Iso string `help:"ISO image ID" metavar:"IMAGE_ID" json:"cdrom"`
|
||||
VcpuCount int `help:"#CPU cores of VM server, default 1" default:"1" metavar:"<SERVER_CPU_COUNT>" json:"vcpu_count" token:"ncpu"`
|
||||
InstanceType string `help:"instance flavor"`
|
||||
Vga string `help:"VGA driver" choices:"std|vmware|cirrus|qxl"`
|
||||
Vga string `help:"VGA driver" choices:"std|vmware|cirrus|qxl|virtio"`
|
||||
Vdi string `help:"VDI protocool" choices:"vnc|spice"`
|
||||
Bios string `help:"BIOS" choices:"BIOS|UEFI"`
|
||||
Machine string `help:"Machine type" choices:"pc|q35"`
|
||||
@@ -625,7 +625,7 @@ type ServerUpdateOptions struct {
|
||||
Name string `help:"New name to change"`
|
||||
Vmem string `help:"Memory size" json:"vmem_size"`
|
||||
Ncpu *int `help:"CPU count" json:"vcpu_count"`
|
||||
Vga string `help:"VGA driver" choices:"std|vmware|cirrus|qxl"`
|
||||
Vga string `help:"VGA driver" choices:"std|vmware|cirrus|qxl|virtio"`
|
||||
Vdi string `help:"VDI protocol" choices:"vnc|spice"`
|
||||
Bios string `help:"BIOS" choices:"BIOS|UEFI"`
|
||||
Desc string `help:"Description" json:"description"`
|
||||
|
||||
Reference in New Issue
Block a user