Skip to content

Commit 004aef9

Browse files
committed
Adds QEMU build script for VHDX support
1 parent 42f2f67 commit 004aef9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

qemu-build-with-vhdx-ubuntu.sh

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Tested on Ubuntu Server 12.04
5+
6+
sudo apt-get install -y pkg-config uuid-dev libglib2.0 autoconf zlib1g-dev libtool
7+
8+
QEMU_DIR=qemu-1.7.0
9+
QEMU_SRC=$QEMU_DIR.tar.bz2
10+
11+
wget http://wiki.qemu-project.org/download/$QEMU_SRC
12+
tar jxf $QEMU_SRC
13+
14+
pushd .
15+
cd $QEMU_DIR
16+
# target-list is here just to limit the amount of stuff to compile
17+
./configure --enable-uuid --enable-vhdx --target-list=x86_64-linux-user
18+
make
19+
# Avoid installing everything, just install qemu-img
20+
#make install
21+
popd
22+
23+
QEMU_IMG=`which qemu-img`
24+
25+
if [ -f "$QEMU_IMG" ]; then
26+
sudo mv -f $QEMU_IMG $QEMU_IMG.old
27+
sudo cp -f $QEMU_DIR/qemu-img $QEMU_IMG
28+
fi

0 commit comments

Comments
 (0)