Skip to content

Commit

Permalink
Add hyperV support
Browse files Browse the repository at this point in the history
Add hyperV support to cosa including a buildextend command to create
vhdx images.

Supports coreos/fedora-coreos-tracker#1411

Signed-off-by: Brent Baude <bbaude@redhat.com>
  • Loading branch information
baude committed Feb 13, 2023
1 parent 2cf91c9 commit d111363
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/coreos-assembler.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
// commands we'd expect to use in the local dev path
var buildCommands = []string{"init", "fetch", "build", "run", "prune", "clean", "list"}
var advancedBuildCommands = []string{"buildfetch", "buildupload", "oc-adm-release", "push-container", "upload-oscontainer", "buildextend-extensions"}
var buildextendCommands = []string{"aliyun", "aws", "azure", "digitalocean", "exoscale", "extensions", "extensions-container", "gcp", "hashlist-experimental", "ibmcloud", "kubevirt", "legacy-oscontainer", "live", "metal", "metal4k", "nutanix", "openstack", "qemu", "secex", "virtualbox", "vmware", "vultr"}
var buildextendCommands = []string{"aliyun", "aws", "azure", "digitalocean", "exoscale", "extensions", "extensions-container", "gcp", "hashlist-experimental", "hyperv", "ibmcloud", "kubevirt", "legacy-oscontainer", "live", "metal", "metal4k", "nutanix", "openstack", "qemu", "secex", "virtualbox", "vmware", "vultr"}
var utilityCommands = []string{"aws-replicate", "compress", "copy-container", "koji-upload", "kola", "push-container-manifest", "remote-build-container", "remote-prune", "remote-session", "sign", "tag", "update-variant"}
var otherCommands = []string{"shell", "meta"}

Expand Down
1 change: 1 addition & 0 deletions pkg/builds/cosa_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ type BuildArtifacts struct {
Exoscale *Artifact `json:"exoscale,omitempty"`
ExtensionsContainer *Artifact `json:"extensions-container,omitempty"`
Gcp *Artifact `json:"gcp,omitempty"`
Hyperv *Artifact `json:"hyperv,omitempty"`
IbmCloud *Artifact `json:"ibmcloud,omitempty"`
Initramfs *Artifact `json:"initramfs,omitempty"`
Iso *Artifact `json:"iso,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions src/cmd-buildextend-hyperv
5 changes: 5 additions & 0 deletions src/cosalib/qemuvariants.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
"--format=oldgnu"
]
},
"hyperv": {
"image_format": "vhdx",
"image_suffix": "vhdx",
"platform": "hyperv",
},
"kubevirt": {
"image_format": "qcow2",
"platform": "kubevirt",
Expand Down

0 comments on commit d111363

Please sign in to comment.