KVERSION=${KVERSION-$(uname -r)}
test_run() {
- $testdir/run-qemu -hda root.ext2 -m 512M -nographic \
+ $testdir/run-qemu -hda root.ext2 -m 128M -nographic \
-net none -kernel /boot/vmlinuz-$KVERSION \
-append "root=/dev/dracut/root rw quiet console=ttyS0,115200n81" \
-initrd initramfs.testing
-f initramfs.makeroot $KVERSION || return 1
rm -rf overlay
# Invoke KVM and/or QEMU to actually create the target filesystem.
- $testdir/run-qemu -hda root.ext2 -m 512M -nographic -net none \
+ $testdir/run-qemu -hda root.ext2 -m 128M -nographic -net none \
-kernel "/boot/vmlinuz-$kernel" \
-append "root=/dev/dracut/root rw rootfstype=ext2 quiet console=ttyS0,115200n81" \
-initrd initramfs.makeroot || return 1
# Start server first
echo "NFS TEST SETUP: Starting DHCP/NFS server"
- $testdir/run-qemu -hda server.ext2 -m 512M -nographic \
+ $testdir/run-qemu -hda server.ext2 -m 128M -nographic \
-net nic,macaddr=52:54:00:12:34:56,model=e1000 \
-net socket,mcast=230.0.0.1:1234 \
-serial udp:127.0.0.1:9999 \
return 1
fi
- $testdir/run-qemu -hda client.img -m 512M -nographic \
+ $testdir/run-qemu -hda client.img -m 128M -nographic \
-net nic,macaddr=$mac,model=e1000 \
-net socket,mcast=230.0.0.1:1234 \
-kernel /boot/vmlinuz-$KVERSION \
echo "NBD TEST SETUP: Starting DHCP/NBD server"
$testdir/run-qemu -hda server.ext2 -hdb nbd.ext2 -hdc encrypted.ext2 \
- -m 512M -nographic \
+ -m 128M -nographic \
-net nic,macaddr=52:54:00:12:34:56,model=e1000 \
-net socket,mcast=230.0.0.1:1234 \
-serial udp:127.0.0.1:9999 \
return 1
fi
- $testdir/run-qemu -hda flag.img -m 512M -nographic \
+ $testdir/run-qemu -hda flag.img -m 128M -nographic \
-net nic,macaddr=$mac,model=e1000 \
-net socket,mcast=230.0.0.1:1234 \
-kernel /boot/vmlinuz-$KVERSION \
rm -rf overlay
# Invoke KVM and/or QEMU to actually create the target filesystem.
- $testdir/run-qemu -hda flag.img -hdb encrypted.ext2 -m 512M \
+ $testdir/run-qemu -hda flag.img -hdb encrypted.ext2 -m 128M \
-nographic -net none \
-kernel "/boot/vmlinuz-$kernel" \
-append "root=/dev/dracut/root rw quiet console=ttyS0,115200n81" \