Skip to content

Commit 6db7f61

Browse files
authored
Merge pull request #97703 from cjp256/patch-3
create-upload-generic: start with modern QEMU options before legacy
2 parents 888b39b + 1e3821d commit 6db7f61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/virtual-machines/linux/create-upload-generic.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ In this case, resize the VM using either the Hyper-V Manager console or the [Res
101101
4. Now, convert the RAW disk back to a fixed-size VHD.
102102
103103
```bash
104-
qemu-img convert -f raw -o subformat=fixed -O vpc MyLinuxVM.raw MyLinuxVM.vhd
104+
qemu-img convert -f raw -o subformat=fixed,force_size -O vpc MyLinuxVM.raw MyLinuxVM.vhd
105105
```
106106
107-
Or, with qemu version 2.6+, include the `force_size` option.
107+
Or, with qemu versions before 2.6, remove the `force_size` option.
108108
109109
```bash
110-
qemu-img convert -f raw -o subformat=fixed,force_size -O vpc MyLinuxVM.raw MyLinuxVM.vhd
110+
qemu-img convert -f raw -o subformat=fixed -O vpc MyLinuxVM.raw MyLinuxVM.vhd
111111
```
112112
113113
## Linux Kernel Requirements

0 commit comments

Comments
 (0)