blob: 7744075dd558940306c5b26ca6e8bbe520b3e9d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
user-level: 0.989
permissions: 0.983
device: 0.975
architecture: 0.972
ppc: 0.970
socket: 0.967
files: 0.966
virtual: 0.963
PID: 0.955
graphic: 0.947
performance: 0.942
network: 0.940
register: 0.938
mistranslation: 0.932
kernel: 0.931
hypervisor: 0.930
debug: 0.924
arm: 0.918
vnc: 0.906
risc-v: 0.904
VMM: 0.896
TCG: 0.890
boot: 0.888
peripherals: 0.845
x86: 0.838
semantic: 0.826
assembly: 0.744
i386: 0.741
KVM: 0.735
the vhd generated by qemu-img not align with MB again.
I'm using this version on xenial,
andy@bastion:~/temp$ qemu-img -h
qemu-img version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.31), Copyright (c) 2004-2008 Fabrice Bellard
steps to repro:
dd if=/dev/zero of=/tmp/azure_config_disk_image20180901-22672-16zxelu bs=1048576 count=24
mkfs.ext4 -F /tmp/azure_config_disk_image20180901-22672-16zxelu -L azure_cfg_dsk
sudo -n mount -o loop /tmp/azure_config_disk_image20180901-22672-16zxelu /tmp/azure_config_disk_mount66c11d7a-5f2b-4ed5-b959-3b48dbc42a2a20180901-22672-1ejreat
sudo -n chown andy /tmp/azure_config_disk_mount66c11d7a-5f2b-4ed5-b959-3b48dbc42a2a20180901-22672-1ejreat
mkdir -p /tmp/azure_config_disk_mount66c11d7a-5f2b-4ed5-b959-3b48dbc42a2a20180901-22672-1ejreat/configs
sudo -n umount /tmp/azure_config_disk_mount66c11d7a-5f2b-4ed5-b959-3b48dbc42a2a20180901-22672-1ejreat
qemu-img convert -f raw -O vpc -o subformat=fixed,force_size /tmp/azure_config_disk_image20180901-22672-16zxelu papapa2.vhd
unfortunately the papapa2.vhd size is 25166336!=25165824 which means it's not aligned in MiB.
could you please help?
last bug report and fixed is https://bugs.launchpad.net/qemu/+bug/1490611
and even the format is raw:
andy@bastion:~/temp$ qemu-img info papapa2.vhd
image: papapa2.vhd
file format: raw
virtual size: 24M (25166336 bytes)
disk size: 152K
It is -o subformat=fixed which breaks the file format detection
|