@@ -23,7 +23,7 @@ func newCreateCommand() *cli.Command {
2323 createInput := & app.CreateInput {}
2424 networkInterfaces := & cli.StringSlice {}
2525 metadataFromFile := & cli.StringSlice {}
26- volumes := & cli.StringSlice {}
26+ containerVolumes := & cli.StringSlice {}
2727
2828 cmd := & cli.Command {
2929 Name : "create" ,
@@ -44,7 +44,7 @@ func newCreateCommand() *cli.Command {
4444
4545 createInput .NetworkInterfaces = networkInterfaces .Value ()
4646 createInput .MetadataFromFile = metadataFromFile .Value ()
47- createInput .Volumes = volumes .Value ()
47+ createInput .AdditionalContainerVolumes = containerVolumes .Value ()
4848
4949 if err := a .Create (ctx .Context , createInput ); err != nil {
5050 return fmt .Errorf ("creating microvm: %s" , err )
@@ -154,9 +154,14 @@ func newCreateCommand() *cli.Command {
154154 Destination : & createInput .Metadata .Message ,
155155 },
156156 & cli.StringSliceFlag {
157- Name : "volume" ,
158- Usage : "attach an additional volume, The following format: name=containerimage=mountpoint" ,
159- Destination : volumes ,
157+ Name : "container-volume" ,
158+ Usage : "attach additional volumes using a container image, The following format: name=containerimage=mountpoint" ,
159+ Destination : containerVolumes ,
160+ },
161+ & cli.StringFlag {
162+ Name : "virtiofs-volume" ,
163+ Usage : "attach an additional volume using virtiofs, use the following format: name=localpath=mountpoint" ,
164+ Destination : & createInput .AdditionalVirtioFSVolume ,
160165 },
161166 },
162167 }
0 commit comments