How to run the DTL-T hard disk in QEMU?
Bash:
qemu-system-i386 -drive format=raw,file=/path/to/disk/image -m 1008 -display curses -net nic,model=i82557b -net bridge,br=virbr0
-display curses
argument will make it run in terminal
Replace
/path/to/disk/image
with path to disk image
-net bridge,br=virbr0
sets bridged networking. You may need to adjust this specific argument, depending on your system/network configuration
-net nic,model=i82557b
sets the correct network card for compatibility with the disk image.
1008
is memory of 1008MB. Do not make
1008
higher or you will get kernel panic. This is a bug with the Linux kernel used in Red Hat Linux 5.2.
Do not add
-accel kvm
argument, it won't work.
To shut down, execute
shutdown -h now
in VM, wait for "auto-poweroff" message, then kill the
qemu-system-i386
process.
Skipping the
shutdown -h now
step may result in corruption
And don't forget to enable DHCP inside the virtual machine. Adjust
/etc/sysconfig/network-scripts/ifcfg-eth0
, set BOOTPROTO to dhcp
so the file looks like this
Code:
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes